[thelist] php javascrip CC validation

Joshua Olson joshua at waetech.com
Fri Apr 12 08:58:01 CDT 2002


----- Original Message -----
From: "sasha" <sasha at bittersweet2.com>
Sent: Friday, April 12, 2002 9:12 AM
Subject: Re: [thelist] php javascrip CC validation


> Would this even be a wise thing to do?  Any shmuck who
> reads the source could make up their own "valid" credit
> card number.

sasha,

Good morning (at least it is over here, rainy though)!

The main purpose of the CC validation algorithm is to reduce the number of
trips to the server-side cc authorization system when somebody mistypes a CC
number, not keep people from entering bogus, yet technically correct, CC
numbers.  The algorithm is widely know, so exposing it via JS isn't giving
away any secrets.

-joshua





More information about the thelist mailing list