Module: Merb::Authentication::Mixins::SaltedUserWithAccount::ClassMethods

Defined in:
lib/heedley-merb-auth-with-account/mixins/salted_user.rb

Instance Method Summary collapse

Instance Method Details

#encrypt(password, salt) ⇒ Object

Encrypts some data with the salt.



50
51
52
# File 'lib/heedley-merb-auth-with-account/mixins/salted_user.rb', line 50

def encrypt(password, salt)
  Digest::SHA1.hexdigest("--#{salt}--#{password}--")
end