/pwd-generator

A basic password generator using the random, string and sys modules in Python 3..

Primary LanguagePython

Random Password Generator

A basic password generator using the secrets, string and sys modules in Python.

Requirements:

  • Python 3.x

Instructions on how to run this file: 1.) Run the script with the command-line arguments, number and password length, respectively.

Example run: "$ python3 pwd-generator.py [number of passwords] [password length]"

- example test:
$ python3 pwd-generator.py 5 8
Printing 5 password(s) of length 8:
B4dvUTHi
FnYpAMrX
&RGAfvd5
#7Gh@d$D
gsE79D8a

- example test:
$ python3 pwd-generator.py 6 9
Printing 6 password(s) of length 9:
tPqh4sDUE
sxBz7ZHi2
RCEXIxm#l
zhBA*MYtw
MNtVy4x?j
$b%xT5!hE

- example test:
$ python3 pwd-generator.py 5 10
Printing 5 password(s) of length 10:
EkS0PN4laI
Yph2joxFkJ
xaeywIq?%C
f03omgevix
ipCD8c%A!0