Skip to content

Instantly share code, notes, and snippets.

@perryqh
Created November 12, 2009 23:21
Show Gist options
  • Save perryqh/233414 to your computer and use it in GitHub Desktop.
Save perryqh/233414 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment