Index of /openwall/projects/passwdqc/pam_passwdqc/contrib/ruby/pwqgen.rb/

NameLast ModifiedSizeType
../ -  Directory
pwqgen-web-20151206.tar.gz2016-Jun-23 00:51:36312.6Kapplication/x-gtar-compressed
pwqgen-web-20151206.zip2016-Jun-23 00:51:33316.0Kapplication/zip
pwqgen.rb-0.0.5.gem2016-Feb-02 01:31:3485.0Kapplication/octet-stream
pwqgen.rb-20130501.tar.gz2016-Jun-23 00:44:2080.4Kapplication/x-gtar-compressed
pwqgen.rb-20130501.zip2016-Jun-23 00:44:1795.5Kapplication/zip
pwqgen.rb is a Ruby implementation of passwdqc's pwqgen, a random pronouncable password generator.  By Ronald Ip.

https://github.com/iphoting/pwqgen.rb
https://rubygems.org/gems/pwqgen.rb

Initial announcement, now out of date:
http://blog.iphoting.com/blog/2012/07/02/pwqgen-dot-rb-a-pronouncable-passphrase-generator/

Demo:
https://pwqgen.herokuapp.com
https://github.com/iphoting/pwqgen-web

Installation

gem install pwqgen.rb

Usage

CLI

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]

Ruby App

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"
lighttpd/1.4.53