Skip to content

Commit 013019e

Browse files
authored
fixed hash issue
1 parent c2862fb commit 013019e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

main.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,28 @@
33
import sys
44
import os.path
55
import platform
6+
import hashlib
67
from time import sleep
78
from datetime import datetime
89

910
# watch setup video if you need help https://www.youtube.com/watch?v=L2eAQOmuUiA
1011
os.system("cls")
1112
os.system("title Python Example")
1213
print("Initializing")
14+
def getchecksum():
15+
path = os.path.realpath(__file__)
16+
md5_hash = hashlib.md5()
17+
a_file = open(path, "rb")
18+
content = a_file.read()
19+
md5_hash.update(content)
20+
digest = md5_hash.hexdigest()
21+
return digest
1322
keyauthapp = api(
1423
name = "",
1524
ownerid = "",
1625
secret = "",
1726
version = "1.0",
27+
hash_to_check = getchecksum()
1828
)
1929
print ("""
2030
1.Login
@@ -34,7 +44,7 @@
3444
print(f"Current Session Validation Status: {keyauthapp.check()}")
3545
sleep(1.5) # rate limit
3646
print(f"Blacklisted? : {keyauthapp.checkblacklist()}") # check if blacklisted, you can edit this and make it exit the program if blacklisted
37-
47+
sleep(1.5)
3848
ans=input("Select Option: ")
3949
if ans=="1":
4050
user = input('Provide username: ')

0 commit comments

Comments
 (0)