added frontend ui file

This commit is contained in:
Crimson Hawk 2024-05-29 14:21:05 +08:00
parent 4f6552b896
commit 5835f270c6
Signed by: CrimsonHawk
GPG key ID: 0804DD39BB9BF5AC
2 changed files with 22 additions and 1 deletions

22
frontend.py Normal file
View file

@ -0,0 +1,22 @@
import base64
import hashlib
import string
import time
#from libexam.py import *
def __init__():
print("test")
print("""
___ ___ __
/ / /__/ / /
/ / ___ / /___ ____ __ __ _____ __ __ __
/ / / / / __ / / _ / \\ \\/ / / __ / / / / /
/ / / / / /_/ / / /__/ / /\\ \\ / /_/ / / /__/ /
/__/ /__/ /_____/ /____/ /_/ \\_\\ /____/_/ /__/ /__/
Coded by Crimson Hawk
""")
print(f"libexam frontend UI initiated")

View file

@ -108,7 +108,6 @@ class libexam:
self.password = passwordf.readline() self.password = passwordf.readline()
if (rhash == ehash): if (rhash == ehash):
print(f"Hashes match: {rhash}\n") print(f"Hashes match: {rhash}\n")
break
else: else:
print( print(
f"Hashes does not match !\nExpected: {ehash}\nGot: {rhash}\n") f"Hashes does not match !\nExpected: {ehash}\nGot: {rhash}\n")