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