Repository is archived
No commit activity in last 3 years
No release in over 3 years
Simple password generator to create pronounceable or random passowords. This gem comes with an executable and might also be required.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Simple Password Generator¶ ↑

This class will generate either a pronounceable or complete random password.

Installation¶ ↑

Simply install the generator with Rubygems:

$ gem install simple-password-gen

Example¶ ↑

You may require this file and generate some passwords, like:

require 'simple-password-gen'
puts Password.pronounceable # => "nduslihefrash"
puts Password.pronounceable(3) # => "ndu"
puts Password.pronounceable(5, visually_safe: true) # => "ukaje"
puts Password.random(4)     # => "w'ds"
pw = Password.new (1..10)   # => #<Password:0x9678514 ...>
pw.pronounceable            # => "t"
pw.pronounceable            # => "vostyhish"
pw.random                   # => "8+a"
...

Synopsis¶ ↑

Alternatively, you may simply run this file as command line application:

$ simple-password-gen -h
simple-password-gen [--length/-l LEN] [--number/-n NUM]
  Generates <NUM> password(s) with appox. length <LEN>.
  Will fail if NUM is less than 1 or LEN is less than 5.
  Defaults: LEN=10, NUM=3

Author and Contributors¶ ↑

Written by Dominik Menke, dominik(dot)menke(at)gmail(dot)com

Some typo fixes by @tanraya (Andrew).

License¶ ↑

Simplified BSD License. See the file LICENSE.