Class: Sequel::Plugins::Password::BCryptHasher
- Inherits:
-
BCryptSHA256Hasher
- Object
- Hasher
- BCryptSHA256Hasher
- Sequel::Plugins::Password::BCryptHasher
- Defined in:
- lib/sequel_password.rb
Instance Attribute Summary
Attributes inherited from Hasher
Instance Method Summary collapse
-
#initialize ⇒ BCryptHasher
constructor
A new instance of BCryptHasher.
Methods inherited from BCryptSHA256Hasher
Methods inherited from Hasher
#encode, #must_update, #salt, #verify
Constructor Details
#initialize ⇒ BCryptHasher
Returns a new instance of BCryptHasher.
160 161 162 163 164 |
# File 'lib/sequel_password.rb', line 160 def initialize @algorithm = :bcrypt @cost = 12 @digest = nil end |