January 20th, 2006, 03: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, 06:24 PM
From searches on google, people have done:
Last edited by †Yegg†; January 20th, 2006 at 06:28 PM.
January 21st, 2006, 12:50 AM
sorry Yegg but I was talking about ruby not python.
January 21st, 2006, 01: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, 02:21 PM