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