MD5 Hash in Ruby

30 Apr 2008

The top three google links I got for this seemed to require a lot of junk I didn’t think I needed. I kept searching and found that it is exactly as ridiculously simple as I have come to expect from Ruby:

require 'md5'
puts Digest::MD5.hexdigest("This is what I want to hash")