Class: DeviseMeteor::BCryptHasher
- Inherits:
-
BCryptSHA256Hasher
- Object
- Hasher
- BCryptSHA256Hasher
- DeviseMeteor::BCryptHasher
- Defined in:
- lib/devise_meteor/strategies/hasher.rb
Overview
BCryptHasher implements a BCrypt password hasher.
Instance Attribute Summary
Attributes inherited from Hasher
Instance Method Summary collapse
-
#initialize ⇒ BCryptHasher
constructor
A new instance of BCryptHasher.
Methods inherited from BCryptSHA256Hasher
#encode, #get_password_string, #salt, #verify
Methods inherited from Hasher
#encode, #must_update, #salt, #verify
Constructor Details
#initialize ⇒ BCryptHasher
Returns a new instance of BCryptHasher.
85 86 87 88 89 |
# File 'lib/devise_meteor/strategies/hasher.rb', line 85 def initialize @algorithm = :bcrypt @cost = 10 @digest = nil end |