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... -Tom -- + http://www.tc.umn.edu/~enebo +---- mailto:enebo / acm.org ----+ | Thomas E Enebo, Protagonist | "A word is worth a thousand | | | pictures" -Bruce Tognazzini |