Index of /pub/projects/passwdqc/pam_passwdqc/contrib/ruby/easy_passwords

      Name                           Last modified       Size  

[DIR] Parent Directory 23-Jun-2016 07:54 - [TXT] README.txt 23-Jun-2016 07:59 1k [   ] easy_passwords-0.4.1.gem 25-Mar-2016 13:16 21k [   ] easy_passwords-20160325.tar.gz 23-Jun-2016 07:54 17k [   ] easy_passwords-20160325.zip 23-Jun-2016 07:54 19k

Easy password is a Ruby implementation of passwdqc's easy_passwords, a random
pronouncable password generator.  Probably don't use it in banks.  By Pete.

https://github.com/piotrze/easy_passwords
https://rubygems.org/gems/easy_passwords

Installation

gem install easy_passwords

#Gemfile
gem 'easy_passwords'

Goals

Passwords are easily to read
You can setup max password length in characters(useful when sending password in sms message)
You can define separators list

Usage

Ruby App

You can  require  it within your app:
require 'rubygems'
require 'easy_passwords'

p EasyPassword.generate             # => "employ7Royal"
p EasyPassword.generate 5           # => "Peach"
p EasyPassword.generate 7, '|'      # => "cat|eat"
p EasyPassword.generate 15          # => "soggy*Apart9Odd"
p EasyPassword.generate 2           # => raise error, min length is 3

gen = EasyPassword.new             # => #<EasyPasswords::Generator:0x9f6ec40 ...>
p gen.generate                     # => "employ7Royal"
p gen.generate 15                  # => "soggy*Apart9Odd"


my_gen = EasyPassword.new('|')  # => #<EasyPasswords::Generator:0x9f6ec40 ...>
p my_gen.generate               # => "employ|Royal"
p my_gen.generate 15            # => "soggy|Apart|Odd"