pwqgen.rb is a Ruby implementation of passwdqc's pwqgen, a random pronouncable password generator.
pwqgen.rb is a Ruby implementation of passwdqc's pwqgen, a random pronouncable password generator.
gem install pwqgen.rb
You can generate a random password from the command line.
$ pwqgen.rb --help
Usage: pwqgen.rb [options] [<length>]
Options:
-h, --help show this help message and exit
-v, --version show version and exit
<length>: Number of words in the passphrase. [default: 3]
You can require
it within your app:
require 'rubygems'
require 'pwqgen'
p Pwqgen.generate # => "Image&Both-action"
p Pwqgen.generate 5 # => "Alaska_Union9Calf=domain&ever"
pgen = Pwqgen.new # => #<Pwqgen::Generator:0x9f6ec40 ...>
p pgen.generate # => "String5Rebel+horse"
p pgen.generate 2 # => "Easily2desist"
git checkout -b feature/my-new-feature
)git commit -am 'Add some feature'
)git push origin feature/my-new-feature
)