January 20th, 2006, 02:52 PM
Ruby hashing tools
I am wanting to use things like md5 or sha. However there doesn't seem to be any librarys that will allows this. Anyone know of where I can find one at?
January 20th, 2006, 05:24 PM
From searches on google, people have done:
Last edited by †Yegg†; January 20th, 2006 at 05:28 PM.
January 20th, 2006, 11:50 PM
sorry Yegg but I was talking about ruby not python.
January 21st, 2006, 12:07 AM
Ok I figured it out. I found it in one of my books. It doesn't seem to be documented well in english yet.
Use use the Digest Module
so something like:
That works for MD5, RIPEMD-160, SHA1 and SHA2 according to what I read. However I cannot get SHA2 to work right. It loads it right during the requie call however it fails at the Digest::SHA2. I wonder why.
hash_class = Digest::MD5
January 21st, 2006, 01:21 PM