News for hackers. Stuff that matters.
Re:Coding Horror: Why Isn't My Encryption.. Encrypting? by tptacek on Monday May 18, 2009 @12:25PM (#615218)
I don't know why you'd debate trivia when his key derivation function is just MD5(keystream), and even that is optional (why-oh-why would you have a "bool useHashing"?).

In this case, the "salt" is completely irrelevant, because there's no precomputed dictionary you can build for this function.

But I still dispute that a distinction needs to be drawn between the word "salt" and "nonce".

Re:Coding Horror: Why Isn't My Encryption.. Encrypting? by durin42 on Monday May 18, 2009 @12:57PM (#615270)
Personally, I was curious. Why doesn't a distinction need to be made between a random salt and the same salt used every time? Don't they have dramatically different results in terms of security?

And yeah, his choice of MD5 is an abomination, but that wasn't something that I thought was even nonobvious.

Re:Coding Horror: Why Isn't My Encryption.. Encrypting? by amalcon on Monday May 18, 2009 @01:42PM (#615334)
If you're trying to crack a specific password, there's no difference: you still need to hash (password + salt) for all passwords. If you're trying to crack all passwords out of a database, however, you need to hash (password + salt) for all salt. In the latter case, increasing the number of distinct salts in use increases the time-complexity of cracking, without doing anything to the time-complexity of authentication (though requiring O(n) space).