
#Pwgen specs install
W, -skip-url-unsafe Skip the use of url (Web) unsafe characters in passwordsĪfter checking out the repo, run bin/setup to install dependencies. U, -skip-upper-case Skip the use of upper case letters in passwords S, -skip-symbols Skip the use of symbols in passwords P, -skip-phonetic Skip creation of the phonetic password L, -skip-lower-case Skip the use of lower case letters in passwords D, -skip-digits Skip the use of digits in passwords C, -skip-confusables Skip the use of letters which are easily confused e.g. s, -symbols string Minimum number of symbols to use. l, -length string The length of the password (default 12) d, -digits string Minimum number of digits to use. There is also an executable linked to this gem which allows you to generate passwords within bash scripts etc. You can also pass the options parameter to the 'generate_password' method to override the settings for a specific password creation. configure ( :skip_lower_case => true, :digits => 4 )

:skip_symbols true | false - No symbols in password.:skip_digits true | false - No digits in password.:skip_upper_case true | false - No upper case letters in password.:skip_lower_case true | false - No lower case letters in password.There are a number of options that can be password: Pwgen :: Password.

generate_password ( length ) puts Pwgen :: Password. Usage Basic password generation require ' pwgen ' Pwgen :: Password. Or install it yourself as: $ gem install pwgen InstallationĪdd this line to your application's Gemfile: gem ' pwgen ' A full featured ruby gem for password creation.
