From: Brian Candler Date: 2008-11-21T06:15:00+09:00 Subject: Re: create a md5 / md5 passwd with a salt Peter Woodsky wrote: > From the first solution given it works as it should. All that was > required was "" for the vars password and salt. > > md5_w_salt = Digest::MD5.hexdigest(Digest::MD5.hexdigest("#{password}") > + "#{row[0]}") Glad it works. Note that if password and row[0] are Strings, you should not need to wrap them in "#{..}" since you are just interpolating a String into another String. -- Posted via http://www.ruby-forum.com/.