53 points · by mlissner · 11y ago · 31 comments
For a slightly out there and arguably more interesting financial checksum algorithm, and one that is actually amazingly effective, do some statistics on mod97's performance. Realizing how good it was, a few years back for a cool hack in my IBAN library I wrote a mistranscription error suggestion system, which plays off the strengths of mod97. See https://github.com/globalcitizen/php-iban/blob/master/trunk/... and https://github.com/globalcitizen/php-iban/blob/master/trunk/... - for a quick hack, it's amazingly effective.
PS. I am available for remote gigs doing creative or challenging stuff in finance-land at the moment, if anyone appreciates this sort of thing.
I still have some of those files I suppose (downloaded on a dozen floppy disks I carried with me everywhere from cyber café to the other).
For a few years people could get Compuserve access by using a fake number and fake details.
The pages were obviously intended to be used for phishing. However, what really made me go "wow" was the extra mile they went: one of the Javascript files contained methods that took the credit card number from the fake registration page and checked its validity w/ the Luhn algorithm before emailing it to a random email address. If the number was invalid, the user got an error and they forced him to re-enter.
I didn't know about the algorithm at the time (this was around 2005), so I was a bit baffled what the heck they are trying to do.
It's a nice one because it is easy to understand and you can TDD it fairly easily.