Module: Merb::Authentication::Mixins::SaltedUser::ClassMethods

Defined in:
lib/merb-auth-more/mixins/salted_user.rb

Instance Method Summary collapse

Instance Method Details

#encrypt(password, salt) ⇒ Object

Encrypts some data with the salt.



52
53
54
# File 'lib/merb-auth-more/mixins/salted_user.rb', line 52

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