Skip to content

Commit c8e6ed8

Browse files
authored
pyauto
Hi,it is a sample program made out of a module named 'pyautogui'. Hope you liked it 👍 . Please accept my pull request sir/ma'am.
1 parent ebfd55d commit c8e6ed8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pyauto.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#Author-Slayking1965
2+
#email-kingslayer8509@gmail.com
3+
import random
4+
import pyautogui
5+
import string
6+
7+
8+
chars = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
9+
10+
chars = string.printable
11+
chars_list = list(chars)
12+
13+
14+
password = pyautogui.password("Enter a password : ")
15+
16+
guess_password = ""
17+
18+
while(guess_password != password):
19+
guess_password = random.choices(chars_list, k=len(password))
20+
21+
print("<=================="+ str(guess_password)+ "==================>")
22+
23+
if(guess_password == list(password)):
24+
print("Your password is : "+ "".join(guess_password))
25+
break

0 commit comments

Comments
 (0)