Class: PassGen::Memorable::Password
- Inherits:
-
String
- Object
- String
- PassGen::Memorable::Password
- Defined in:
- lib/passgen/memorable.rb
Constant Summary collapse
- SYMBOLS =
%w(% & $ £ @ !)
Instance Method Summary collapse
- #hexed ⇒ Object
-
#initialize ⇒ Password
constructor
A new instance of Password.
Constructor Details
#initialize ⇒ Password
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
#hexed ⇒ Object
14 15 16 |
# File 'lib/passgen/memorable.rb', line 14 def hexed Digest::SHA1.hexdigest(self) end |