2 ms·
One of the best aspects of gravatar is that fact that it takes one line of code to implement: "http://www.gravatar.com/avatar/#{MD5::md5(email.downcase)}"
by steveklabnik 16y ago
One of the best aspects of gravatar is that fact that it takes one line of code to implement:
"http://www.gravatar.com/avatar/#{MD5::md5(email.downcase)}"
If it wasn't that easy, I'd probably consider just doing something else. Maybe just have it use a stronger hashing algo?
- Estragon 16y ago...have it use a stronger hashing algo? The strength of the hashing algorithm is ancillary to this vulnerability. The OP was able to resolve the emails because they had a predictable format.
- steveklabnik 16y agoWhen I said 'stronger' what I really meant was 'one with a larger number of possible hashes', so it'd be harder to resolve them. Not that it'd stop it totally, because he still knows enough about the keyspace... Then again, crypto is not my strong point, so I should probably stop talking.