From 4e3ff7c8e2cdd11ad8dc18339e7acbb811cb43d4 Mon Sep 17 00:00:00 2001 From: Harshil Darji Date: Sun, 14 Aug 2016 12:18:30 +0530 Subject: [PATCH] Initial --- other/password_generator.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 other/password_generator.py diff --git a/other/password_generator.py b/other/password_generator.py new file mode 100644 index 000000000..4cc4ace10 --- /dev/null +++ b/other/password_generator.py @@ -0,0 +1,13 @@ +import string +from random import * + +letters = string.ascii_letters +digits = string.digits +symbols = string.punctuation +chars = letters + digits + symbols + +min_length = 8 +max_length = 16 +password = ''.join(choice(chars) for x in range(randint(min_length, max_length))) +print('Password: %s' % password) +print('[ If you are thinking of using this passsword, You better save it. ]')