Module: MultiPassword::Strategy

Class Method Summary collapse

Instance Method Summary collapse

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, _options = {})
  raise MethodNotImplemented, 'create'
end

#validate_options(_options) ⇒ Object



21
22
23
# File 'lib/multi_password/strategy.rb', line 21

def validate_options(_options)
  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