Module: UmbrellioUtils::Passwords
Instance Method Summary collapse
Instance Method Details
#check(hash, password) ⇒ Object
7 8 9 |
# File 'lib/umbrellio_utils/passwords.rb', line 7 def check(hash, password) SCrypt::Password.new(hash).is_password?(password) end |
#create_hash(password) ⇒ Object
11 12 13 |
# File 'lib/umbrellio_utils/passwords.rb', line 11 def create_hash(password) SCrypt::Password.create(password).to_s end |