Class: DeviseMeteor::BCryptHasher

Inherits:
BCryptSHA256Hasher show all
Defined in:
lib/devise_meteor/strategies/hasher.rb

Overview

BCryptHasher implements a BCrypt password hasher.

Instance Attribute Summary

Attributes inherited from Hasher

#algorithm

Instance Method Summary collapse

Methods inherited from BCryptSHA256Hasher

#encode, #get_password_string, #salt, #verify

Methods inherited from Hasher

#encode, #must_update, #salt, #verify

Constructor Details

#initializeBCryptHasher

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