This commit is contained in:
2018-11-13 14:25:33 +01:00
parent 5f5ee87661
commit d097a6127a
3 changed files with 5 additions and 1 deletions

View File

@@ -41,7 +41,10 @@ def decrypt_AES_CBC(inputfilename, encryptedContent):
inputfilename)]
key = generatekey()
decipher = AES.new(key, AES.MODE_CBC)
temp = open("hash34.txt", "r").read()
print(type(temp))
print(type(key))
decipher = AES.new(temp, AES.MODE_CBC)
decryptedcontent = decipher.decrypt(encryptedContent)
ivlength = 16