Added pulling key from text file.
This commit is contained in:
@@ -41,4 +41,9 @@ def decrypt(dataEncoded: str, keyDecrypt: str):
|
|||||||
with open("dataEncoded.txt", "r") as f:
|
with open("dataEncoded.txt", "r") as f:
|
||||||
data = "".join(c for c in f.readlines() if c != "\n")
|
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))
|
||||||
Reference in New Issue
Block a user