Class: PassGen::Memorable::Password

Inherits:
String
  • Object
show all
Defined in:
lib/passgen/memorable.rb

Constant Summary collapse

SYMBOLS =
%w(% & $ £ @ !)

Instance Method Summary collapse

Constructor Details

#initializePassword

Returns a new instance of Password.



9
10
11
12
# File 'lib/passgen/memorable.rb', line 9

def initialize
  @dictionary = Dictionary.new
  super(random_words_symbols_and_numbers)
end

Instance Method Details

#hexedObject



14
15
16
# File 'lib/passgen/memorable.rb', line 14

def hexed
  Digest::SHA1.hexdigest(self)
end