Sha256: 2cb79db5844cc4bfd53121dfaa0716b1a9ab5ef41ba31421342dc8edbb3a6ed2

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

# 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'
#
module ToPass::Integration
  # simplified password-creation
  def to_pass( algorithm = 'basic_de' )
    ToPass::Base.new(self.to_s, algorithm).to_s
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
to_pass-0.2.3 lib/to_pass/integration.rb
to_pass-0.2.2 lib/to_pass/integration.rb