Using Google + Bing didn't yield an answer to what should be a simple question:
How are you supposed to use the HMAC module in Ruby to create a HMAC with MD5 (that uses a secret)?
The HMAC docs seem awfully thin.
Thanks!
Using Google + Bing didn't yield an answer to what should be a simple question:
How are you supposed to use the HMAC module in Ruby to create a HMAC with MD5 (that uses a secret)?
The HMAC docs seem awfully thin.
Thanks!
http://betterlogic.com/roger/?p=152
no?
Or I remember toying with it inside one of our Gems so maybe you can reverse engineer from it?
http://github.com/appoxy/aws/tree/master
Hope this helps.
Chad
This should be the easiest way:
Lookup "salting" a hash first. It depends on your usage, but adding a fixed string does help by making your hashes different than the hashes from other apps. Thus, a dictionary attack is harder. But that's just generally speaking.
The following gem should be installed: 'ruby-hmac'
This is what I did: