From: Thomas E Enebo Date: 2005-02-25T07:49:05+09:00 Subject: Re: MD5 Password creation On Fri, 25 Feb 2005, Thomas E Enebo defenestrated me: > On Fri, 25 Feb 2005, Ian Macdonald defenestrated me: > > > > Can you show me your output? > > > > It works for me: > > > > [ianmacd@foobar]$ irb > > irb(main):001:0> require 'password' > > => true > > irb(main):002:0> "foo".crypt('$1$abcdefgh') > > => "$1$abcdefgh$XxzGe9Muun7wTYbZO4sdr0" > > > > A smaller salt works, too: > > > > irb(main):003:0> "foo".crypt('$1$ab') > > => "$1$ab$KdoFYgkGJOZ629oOkVUuD." > > Should they both output the same length digest (128 bit)? > Your second one looks a little short... Whoops I just noticed this is prepending the salt :) Nevermind.... -Tom -- + http://www.tc.umn.edu/~enebo +---- mailto:enebo@acm.org ----+ | Thomas E Enebo, Protagonist | "A word is worth a thousand | | | pictures" -Bruce Tognazzini |