Utility for generating passwords according to a given template that supports the CLI interface.
The script supports the following CLI options:
- [ -n ] - Set length of password and generate random password from set {small lateral ASCII, big lateral ASCII, digit}
- [ -t, --template ] - Set template for generate passwords (for future development)
- [ -f, --file ] - Getting list of patterns from file and generate for each random password (for future development)
- [ -c, --count ] - Number of passwords
- [ -v, --verbose ] - Verbose mode (-v |-vv |-vvv ) (for future development)
- [ -S, --set ] - Character set
- [ -p, --permute ] - Randomly permute characters of password (for future development)
Run script from CLI with arguments:
python password_generator.py -n 12 -c 1 -S xyz
Input data:
Use characters from set {small lateral ASCII, big lateral ASCII, digit, punctuation}? (y/yes): yes
Output data:
Password: /2hEpf|7!%*E
Run script from CLI with arguments:
python password_generator.py -n 10 --count 3 --set xyz
Input data:
Use characters from set {small lateral ASCII, big lateral ASCII, digit, punctuation}? (y/yes): yes
Output data:
List of passwords: ['sWKb`[qf5K', 'H$+}x]g4#c', 'ZJp;ia/)d@']