Class: Sequel::Plugins::Password::Hasher
- Inherits:
-
Object
- Object
- Sequel::Plugins::Password::Hasher
show all
- Defined in:
- lib/sequel_password.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm.
79
80
81
|
# File 'lib/sequel_password.rb', line 79
def algorithm
@algorithm
end
|
Instance Method Details
#encode(password, salt) ⇒ Object
90
91
92
|
# File 'lib/sequel_password.rb', line 90
def encode(password, salt)
raise NotImplementedError
end
|
#must_update(encoded) ⇒ Object
94
95
96
|
# File 'lib/sequel_password.rb', line 94
def must_update(encoded)
false
end
|
#salt ⇒ Object
81
82
83
84
|
# File 'lib/sequel_password.rb', line 81
def salt
SecureRandom.hex(9)
end
|
#verify(password, encoded) ⇒ Object
86
87
88
|
# File 'lib/sequel_password.rb', line 86
def verify(password, encoded)
raise NotImplementedError
end
|