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