summaryrefslogtreecommitdiff
path: root/lib/trocla/formats/sha512crypt.rb
blob: d57b93dd3055dccac913e3ca513d9bbff9e9a8f8 (plain)
1
2
3
4
5
6
# salted crypt
class Trocla::Formats::Sha512crypt
  def format(plain_password,options={})
     plain_password.crypt('$6$' << Trocla::Util.random_str(8) << '$')
  end
end