Module: MultiPassword::Strategy
- Included in:
- MultiPassword::Strategies::Argon2, MultiPassword::Strategies::BCrypt, MultiPassword::Strategies::SCrypt
- Defined in:
- lib/multi_password/strategy.rb
Class Method Summary collapse
Instance Method Summary collapse
- #create(_password, _options = {}) ⇒ Object
- #validate_options(_options) ⇒ Object
- #verify(_password, _encrypted_password) ⇒ Object
Class Method Details
.included(klass) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/multi_password/strategy.rb', line 5 def self.included(klass) klass.class_eval do def self.register(algorithm) MultiPassword.register(algorithm, self) end end end |
Instance Method Details
#create(_password, _options = {}) ⇒ Object
13 14 15 |
# File 'lib/multi_password/strategy.rb', line 13 def create(_password, = {}) raise MethodNotImplemented, 'create' end |
#validate_options(_options) ⇒ Object
21 22 23 |
# File 'lib/multi_password/strategy.rb', line 21 def () raise MethodNotImplemented, 'validate_options' end |
#verify(_password, _encrypted_password) ⇒ Object
17 18 19 |
# File 'lib/multi_password/strategy.rb', line 17 def verify(_password, _encrypted_password) raise MethodNotImplemented, 'verify' end |