1 2 3 4 5 6
# salted crypt class Trocla::Formats::Md5crypt def format(plain_password,options={}) plain_password.crypt('$1$' << Trocla::Util.salt << '$') end end