-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli.py
42 lines (26 loc) · 1.33 KB
/
cli.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
import random
import string
print('''\033[92m
____________ __ ____________
\_____ / /_ \ \ _____/
\_____ \____/ \____/ _____/
\_____ _____/
\________________________/
____ ___ _ _ _ _ _
| _ \ / _ \| \ | | | | | |_ _ _ __ | |_ ___ _ __
| | | | | | | \| | | |_| | | | | '_ \| __/ _ \ '__|
| |_| | |_| | |\ | | _ | |_| | | | | || __/ |
|____/ \___/|_| \_| |_| |_|\__,_|_| |_|\__\___|_|
Created By </Don Randeep>
''')
chars = "abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(_+)=[{}]|\/.,?""':;"
# chars = string.printable
chars_list = list(chars)
password = input("Enter Password : ")
guess_password = ""
while(guess_password != password):
guess_password = random.choices(chars_list, k=len(password) )
print("\033[96m<=================="+ str(guess_password)+ "==================>")
if(guess_password == list(password)):
print("\033[33mYour password is : "+ "".join(guess_password))
break