Method: Authlogic::CryptoProviders::BCrypt.encrypt

Defined in:
lib/authlogic/crypto_providers/bcrypt.rb

.encrypt(*tokens) ⇒ Object

Creates a BCrypt hash for the password passed.



76
77
78
# File 'lib/authlogic/crypto_providers/bcrypt.rb', line 76

def encrypt(*tokens)
  ::BCrypt::Password.create(join_tokens(tokens), cost: cost)
end