summaryrefslogtreecommitdiff
path: root/lib/trocla/formats/bcrypt.rb
blob: 4b6fb33adad808c76dd153144e888a103b622514 (plain)
1
2
3
4
5
6
class Trocla::Formats::Bcrypt < Trocla::Formats::Base
  require 'bcrypt'
  def format(plain_password,options={})
    BCrypt::Password.create(plain_password).to_s
  end
end