Methods

Files

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

Public Instance Methods

encrypt(password, salt) click to toggle source

Encrypts some data with the salt.

# File lib/merb-auth-more/mixins/salted_user.rb, line 52
def encrypt(password, salt)
  Digest::SHA1.hexdigest("--#{salt}--#{password}--")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.