diff --git a/randomPwd.py b/randomPwd.py new file mode 100644 index 0000000..3397d43 --- /dev/null +++ b/randomPwd.py @@ -0,0 +1,21 @@ +import random +import string + +def randomPwd(length): + chars = string.ascii_letters + string.digits + pwd = ''.join(random.choice(chars) for i in range(length)) + print(pwd) + +# 10 Random Passwords +randomPwd(18) +randomPwd(18) +randomPwd(18) +randomPwd(18) +randomPwd(18) +randomPwd(18) +randomPwd(18) +randomPwd(18) +randomPwd(18) +randomPwd(18) +randomPwd(18) +####################### \ No newline at end of file diff --git a/random_passwords/random18.py b/random_passwords/random18.py deleted file mode 100644 index fc9f28e..0000000 --- a/random_passwords/random18.py +++ /dev/null @@ -1,20 +0,0 @@ -import random -import string - -def random_password(length): - chars = string.ascii_letters + string.digits - password = ''.join(random.choice(chars) for i in range(length)) - print(password) - - -random_password(18) -random_password(18) -random_password(18) -random_password(18) -random_password(18) -random_password(18) -random_password(18) -random_password(18) -random_password(18) -random_password(18) -random_password(18)