skip to main |
skip to sidebar
I've written a python implementation of the Verhoeff checksum algorithm. You can download it as verhoeff.zip or verhoeff.tgz . Please try it and tell me what you think. Here's the canonical usage example. Calculate the checkdigit for 142857.
>>> from verhoeff import Verhoeff
>>> v = Verhoeff()
>>> v.calcsum(142857)
0
>>> v.checksum(1428570)
0
Alternatively, it can be invoked as a command as follows:python verhoeff.py 142857
1428570
I've set up the Empirical Method shop at cafepress in order to sell Tshirts and other merchandise with a Scientific theme.
I thought Ockam's razor is as good a slogan as any to wear on one's chest.
Failing that why not declare one self to be a "Product of Evolution"?
Vicarious living is popular these days, so I couldn't resist including some children's wear.
