Domino Code Fragment
Code Name* Credit card validation function (ROT13) | Date* 11/25/98 | Source (or email address if you prefer)* Jamie Magee IP address:.18.222.240.21 | |
Description* Returns true if a string is a valid credit card number. | Type* LotusScript | Categories* Numeric Processing, Security |
Implementation: Modify constants | Required Client: 4.0 | Server: 4.0 |
Limitations: The main purpose of this algorithm is to avoid data entry errors, not as a security tool, since anybody can crack it. | Comments: "For a card with an even number of digits, double every odd numbered digit and substract 9 if the product is greater than 9. Add up all the even digits as well as the doubled odd digits, and the result must be a multiple of 10 or it's not a valid card. If a card has an odd number of digits, perform the same addition, doubling the even numbered digits instead..." |