class Devise::Encryptors::Bcrypt
Uses the BCrypt hash algorithm to encrypt passwords.
= BCrypt
def self.digest(password, stretches, salt, pepper)
Gererates a default password digest based on stretches, salt, pepper and the
def self.digest(password, stretches, salt, pepper) ::BCrypt::Engine.hash_secret([password, pepper].join, salt, stretches) end
def self.salt
def self.salt ::BCrypt::Engine.generate_salt end