module UmbrellioUtils::Passwords

Public Instance Methods

check(hash, password) click to toggle source
# File lib/umbrellio_utils/passwords.rb, line 7
def check(hash, password)
  SCrypt::Password.new(hash).is_password?(password)
end
create_hash(password) click to toggle source
# File lib/umbrellio_utils/passwords.rb, line 11
def create_hash(password)
  SCrypt::Password.create(password).to_s
end