Module: XKPassword
- Defined in:
- lib/xkpassword.rb,
lib/xkpassword/version.rb
Defined Under Namespace
Classes: Generator, Store, Words
Constant Summary collapse
- VERSION =
'0.2.3'
Class Method Summary collapse
-
.generate(options = nil) ⇒ Object
Generates a random password by intializing a ‘XKPassword::Generator` instance.
Class Method Details
.generate(options = nil) ⇒ Object
Generates a random password by intializing a ‘XKPassword::Generator` instance. This accepts argumennts identcal to the above class.
If you are to generate multiple passwords (batch process lets say), you might as well directly use the ‘XKPassword::Generator` class as it will be faster since it will only need to load the dictionary once.
15 16 17 18 |
# File 'lib/xkpassword.rb', line 15 def self.generate( = nil) generator = XKPassword::Generator.new generator.generate() end |