Module: ToPass::Integration

Defined in:
lib/to_pass/integration.rb

Overview

Any Object can be a password, as long as it has a string representation.

This Module provides a shortcut to the password-conversion.

String.send(:include, ToPass::Integration)
puts "Da steht ein Pferd auf dem Flur".to_pass => 'Ds1P@dF'

See ToPass::Base for more details

Instance Method Summary collapse

Instance Method Details

#to_pass(algorithm = 'basic_de') ⇒ Object

simplified password-creation



13
14
15
# File 'lib/to_pass/integration.rb', line 13

def to_pass( algorithm = 'basic_de' )
  ToPass::Base.new(self.to_s, algorithm).to_s
end