class Devise::Encryptors::AuthlogicSha512

the default behavior.
Warning: it uses Devise’s stretches configuration to port Authlogic’s one. Should be set to 20 in the initializer to simulate
Simulates Authlogic’s default encryption mechanism.
= AuthlogicSha512

def self.digest(password, stretches, salt, pepper)

incoming password.
Generates a default password digest based on salt, pepper and the
def self.digest(password, stretches, salt, pepper)
  digest = [password, salt].flatten.join('')
  stretches.times { digest = Digest::SHA512.hexdigest(digest) }
  digest
end