-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathComplex-Passwordgenerator. Py
57 lines (50 loc) · 1.93 KB
/
Complex-Passwordgenerator. Py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import os
import time
from tqdm import tqdm
os.system("clear")
print("\033[1;32;40m password generator made by Anonmike \n")
print("\033[1;33;40m THIS TOOL WILL HELP YOU IN GENERATING STRONG AND UNCRACKABLE PASSWORD FOR ANY \n WEBSITE \n")
print('''\033[1;31;40m PASWORD GENERATOR V1.1.0 \n ''')
print("\033[95m Follow me on github: https://github.com/Anonmike \n")
print('\033[1;32;40m follow me on Instagram:@anon_mike1 https://www.instagram.com/invites/contact/?i=bcg5hm2eh8fk/n')
print("\033[1;37;40m welcome")
import random
import string
print("generating password please wait")
for _ in tqdm(range (100),
desc='generating....',
ascii = False, ncols = 75) :
time.sleep(0.05)
def get_random_string(length):
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D',
'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N',
'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8',
'9', '0', ' ', '!', '@', '#', '$', '%', '^', '&',
'*', '(', ')']
number = random.randint(1, 10)
result_str = ''.join(random.choice(letters) for i in range(length))
print("password according to lenght ", length, "is:", result_str)
for i in range(0,10):
get_random_string(15)
get_random_string(10)
get_random_string(8)
get_random_string(6)
get_random_string(4)
print()
print(" want more? Y for yes and N for no ")
more = input("> ")
if more ==("Y"):
print(" ok")
for i in range(0,10):
get_random_string(15)
get_random_string(10)
get_random_string(8)
get_random_string(6)
get_random_string(4)
print()
elif more == ("N"):
print ("ok thank you")
print("\033[1;32;40m THANK YOU FOR USING THIS PASSWORD GENERATOR CREATED BY ANONMIKE\n do not forget to follow Anon Mike on github and instagram")