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.



49
50
51
# File 'lib/merb-auth-more/mixins/salted_user.rb', line 49

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