Method: Devise::Encryptors::Sha1.digest

Defined in:
lib/devise/encryptors/sha1.rb

.digest(password, stretches, salt, pepper) ⇒ Object

Gererates a default password digest based on stretches, salt, pepper and the incoming password.



10
11
12
13
14
# File 'lib/devise/encryptors/sha1.rb', line 10

def self.digest(password, stretches, salt, pepper)
  digest = pepper
  stretches.times { digest = self.secure_digest(salt, digest, password, pepper) }
  digest
end