Hacker News new | ask | show | jobs
by agl 3188 days ago
"Basically, the code recurses a sha256 computation 1714 times to get a lookup key, and then once more to get a password for decryption."

Other way around, no? The index is the hash of the decryption key (as it should be), it's just that the index is called "key" and the key is called "lookup".

If the decryption key was the hash of the index, then it would be trivial to decrypt every entry.

1 comments

You are right, and I made a huge blunder while "prettifying" the code and then commenting it. It should be corrected now!