Added pulling key from text file.

This commit is contained in:
Cutieguwu
2024-04-11 13:10:35 -04:00
parent e655ca38d9
commit 9d8bd03878

View File

@@ -41,4 +41,9 @@ def decrypt(dataEncoded: str, keyDecrypt: str):
with open("dataEncoded.txt", "r") as f:
data = "".join(c for c in f.readlines() if c != "\n")
print(decrypt(data, "qwertyuiopasdfghjklzxcvbnm"))
with open("key.txt", "r") as f:
key = "".join(c for c in f.realines() if c != "\n")
key = "qwertyuiopasdfghjklzxcvbnm" # Temporary faux testing key.
print(decrypt(data, key))