Created
November 13, 2009 00:30
-
-
Save perryqh/233456 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get ready to generate passwords of length *12* with lower case letters and numbers | |
generate_password = PwFoo::GeneratePassword.new(12, PwFoo::GeneratePassword.LOWER_CASE, PwFoo::GeneratePassword.NUMBERS ) | |
# generate password with a minimum strength score of 80 | |
my_new_password = generate_password.generate_with_min_strength 80 | |
# generate password with a minimum strength score of 100 | |
my_new_password = generate_password.generate_with_min_strength 100 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment