Sunday, 7 November 2010

Digest::MD5.hexdigest produces wrong hash in Rails

I forgot to require the file 'digest/md5', and instead of barking out loud, rails just gave me some wrong hash value. So, shouldn't forget this line, if using MD5:
require 'digest/md5'
 

No comments:

Post a comment