pwfoo

pwfoo is a gem that provides random password generation, password strength calculation, and a random seed generator.

Examples

Generate password of length 12 with lower case, upper case, numbers, and special characters with a minimum strength score of 80:

require ‘generate_password’ generate_password = PwFoo::GeneratePassword.new(12, PwFoo::GeneratePassword.LOWER_CASE, PwFoo::GeneratePassword.UPPER_CASE, PwFoo::GeneratePassword.NUMBERS, PwFoo::GeneratePassword.SPECIALS ) my_new_password = generate_password.generate_with_min_strength 80 Determine the strength of your password: require ‘password_strength’ my_pw = ‘secret’ my_pw_score = PwFoo::PasswordStrength.new.calculate_score(my_pw)

INSTALL

$ sudo gem install gemcutter
$ gem tumble
$ sudo gem install pwfoo

or add the following to your environment.rb config.gem ‘pwfoo’