class Trocla::Formats::Bcrypt
Public Instance Methods
format(plain_password,options={})
click to toggle source
# File lib/trocla/formats/bcrypt.rb, line 4 def format(plain_password,options={}) BCrypt::Password.create(plain_password, :cost => options['cost']||BCrypt::Engine.cost).to_s end