Package: securepasswordgenerator
This is a tool for generating random secure passwords. It provides both command line utility (CLI) and underlying python module.SecurePasswordGeneratorTable of ContentsPrerequisitesInstallationUsagePython ModuleCommand Line UtilityLicensePrerequisitesYou'll need to have Python installed in order to runSecurePasswordGenerator. Start by downloading and installingPython.Note: Python 3 is recommended, howeverSecurePasswordGeneratorhas been successfully tested with Python 2.6+InstallationYou can install this package from PyPI using pip:python -m pip install securepasswordgeneratorUsageModuleTo use this package in your Python program, simply import thesecurepasswordgeneratormodule and call thegeneratefunction with the desired options. Or call predefined functions. Here is an example:fromsecurepasswordgenerator.passwordimportgeneratepassword=generate(length=12,use_lower_case=True,use_upper_case=True,use_numbers=True,use_special=True,use_hex=False)This will generate a password that is 12 characters long and includes lowercase letters, uppercase letters, numbers, and special characters.securepasswordgeneratorprovides the following methods:securepasswordgenerator.generate()# defaults to 8 characters long that includes atleast 1 lowercase, 1 uppercase, 1 number and 1 special character.securepasswordgenerator.generate(length=8,use_lower_case=True,use_upper_case=True,use_numbers=True,use_special=True,use_hex=False)# optins can be provided to generate as you please.securepasswordgenerator.decent()# Generate Memorable Passwords - Perfect for securing your computer or mobile device, or somewhere brute force is detectable.securepasswordgenerator.strong()# Generate Strong Passwords - Robust enough to keep your web hosting account secure.securepasswordgenerator.fort_knox()# Generate Fort Knox Passwords - Secure enough for almost anything, like root or administrator passwords.securepasswordgenerator.ci_key()# Generate CodeIgniter Encryption Keys - Can be used for any other 256-bit key requirement.securepasswordgenerator.wep_64()# Generate 64-bit WEP Keyssecurepasswordgenerator.wep_128()# Generate 128-bit WEP Keyssecurepasswordgenerator.wep_152()# Generate 152-bit WEP Keyssecurepasswordgenerator.wep_256()# Generate 256-bit WEP Keyssecurepasswordgenerator.wpa_160()# Generate 160-bit WPA Keysecurepasswordgenerator.wpa_504()# Generate 504-bit WPA KeySample code:>>>importsecurepasswordgeneratorasspw>>>spw.generate()'ZgnoiV*Q'>>>spw.generate(15,use_lower_case=False,use_numbers=False,use_special=True)'<)G,{IH~NDGZ+D@'>>>spw.decent()'CONt8xy4Vw'>>>spw.strong()'m?c$t?WP<y|}vVf'>>>spw.fort_knox()"'>[&;6L8?->vXiKWh>Uoe<Uo-.x,Zb">>>spw.ci_key()'I9MMEnszZO4mKGJayBXe9kKsEGg7JXBs'>>>spw.wep_64()'866EE'>>>spw.wep_128()'9EBD3954549FC'>>>spw.wep_152()'D5CB8A9668F2153D'>>>spw.wep_256()'E775C1FA7D96CF94DFB19CB9ED534'>>>spw.wpa_160()'1XkW\\eHu5,ox9I&K`I<R'>>>spw.wpa_504()"AkW~Z9/)d2rf`JWPU}CcUq*`BTsq8%'i+,~BAp2nf@*t!W&~rlpxq(Grh6>$1rj"Command Line UtilityTo generate a password from the command line, simply run thesecurepasswordgeneratorcommand and specify the desired options. Here are a few examples:securepasswordgeneratorThis will generate a password that is 8 characters long that includes atleast 1 lowercase, 1 uppercase, 1 number and 1 special character.securepasswordgenerator 11 -l -n -s -x -pThis will generate a password that is 15 characters long and includes lowercase letters, numbers, special characters, and hex characters.Here are the available options:usage: securepasswordgenerator [-h] [-l] [-u] [-n] [-s] [-x] [-p {decent,strong,fort_knox,wpa_160,wpa_504,wep_64,wep_128,wep_152,wep_256}] [length]

positional arguments:
  length                Length of password (default is 8 characters)

optional arguments:
  -h, --help            show this help message and exit
  -l, --lower-case      Use lowercase characters
  -u, --upper-case      Use uppercase characters
  -n, --numbers         Use numbers
  -s, --special         Use special characters
  -x, --hex             Use hex characters
  -p {decent,strong,fort_knox,wpa_160,wpa_504,wep_64,wep_128,wep_152,wep_256}, --password-strength {decent,strong,fort_knox,wpa_160,wpa_504,wep_64,wep_128,wep_152,wep_256}
                        Generate a password with a predefined strengthNote:securepasswordgenerator -p [option]orsecurepasswordgenerator --password-strength [option]doesn't require any other argumentsChanglogSee the change log hereLicenseThis package is licensed under the MIT License. See theLICENSEfile for details.