Class: Sequel::Plugins::Password::BCryptHasher

Inherits:
BCryptSHA256Hasher show all
Defined in:
lib/sequel_password.rb

Instance Attribute Summary

Attributes inherited from Hasher

#algorithm

Instance Method Summary collapse

Methods inherited from BCryptSHA256Hasher

#encode, #salt, #verify

Methods inherited from Hasher

#encode, #must_update, #salt, #verify

Constructor Details

#initializeBCryptHasher

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