Sha256: 44a1a5be9481a73dd165391c1e5639f05bc66f71897028e76ecfa548b48958da

Contents?: true

Size: 482 Bytes

Versions: 5

Compression:

Stored size: 482 Bytes

Contents

# vim:ft=ruby:fileencoding=utf-8

# 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
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

5 entries across 5 versions & 1 rubygems

Version Path
to_pass-1.0.1 lib/to_pass/integration.rb
to_pass-1.0.0 lib/to_pass/integration.rb
to_pass-0.9.0 lib/to_pass/integration.rb
to_pass-0.8.0 lib/to_pass/integration.rb
to_pass-0.7.0 lib/to_pass/integration.rb