oucem / checkdigits

Automatically exported from code.google.com/p/checkdigits
Other
0 stars 0 forks source link

Testvectors are missing #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Since it is not that hard to implement a Check Digit Scheme incorrectly it 
would be very helpful to 
publish a canonic set of "Testvectors" showing the checkdigits as calculated by 
several algorithms. 
This would it make easier to check if a new implementation or tweaking of an 
existing 
implementation broke anything.

This seems to be most urgently needed with Verhoeff's Dihedral Check Digit 
since the different 
implementations available on the net produce different results.

Original issue reported on code.google.com by mdorns...@gmail.com on 29 Oct 2007 at 6:14

GoogleCodeExporter commented 8 years ago
Is there an authoritative reference on the proper check digits for the Verhoeff
algorithm?  The "Numerical Recipes" version of the algorithm generates different
check digits than the "checkdigits" implementation, though most other 
implementations
I've run into agree with "checkdigits".

I believe these numbers were generated by the "Numerical Recipes" algorithm:
http://www.mit.edu/~kenta/three/verhoeff-checksum.html.gz

Original comment by pline...@gmail.com on 31 May 2008 at 2:40