Verification number
| From: | Emil Edeholt | Date: | Thu, 24 Jan 2008 11:37:20 +0000 |
| Subject: | Verification number | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-267979@lists.php.net to get a copy of this message | ||
Hi
Sorry if this is considered off topic. Please ignore the post in that case.
My site uses ten digit numbers as ID:s for our products. I would like the last digit to be a verification/check digit. I was just about to just make some simple function that would add the other values together into a one digit verification digit. But I thought maybe there are better or worse ways of doing this, since some algorithms probably produce a more even distribution of verification digits than others do. I.e. it would be a shame if I later on notice that half of my ID:s get 9 as verification.
Any ideas?
Regards Emil