Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Engine Yard Programming Contest - Win an iPhone 3GS PLUS $2k in Cloud Credit. Parent comment
If you use a library function to do your SHA-1, you're doing it wrong.
Pad out your test strings to a fixed length of 448 bits (assuming that the words in their dictionary allow this).
Use a custom hashing algorithm that skips the "pre-processing" step by assuming a fixed length string and skips the for loop since it only needs to process one chunk. http://en.wikipedia.org/wiki/SHA_hash_functions#SHA-1_pseudo...
There are no comments on this comment yet.
If you use a library function to do your SHA-1, you're doing it wrong.
Pad out your test strings to a fixed length of 448 bits (assuming that the words in their dictionary allow this).
Use a custom hashing algorithm that skips the "pre-processing" step by assuming a fixed length string and skips the for loop since it only needs to process one chunk. http://en.wikipedia.org/wiki/SHA_hash_functions#SHA-1_pseudo...