module Devise::Models::DatabaseAuthenticatable

def password_digest(password)

of other hashing engines.
See https://github.com/heartcombo/devise-encryptable for examples

this method to apply their own algorithm.
Hashes the password using bcrypt. Custom hash functions should override
def password_digest(password)
  Devise::Encryptor.digest(self.class, password)
end