Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def decrypt(encrypted, passphrase):
- IV = ''.join(chr(x) for x in [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00])
- aes = AES.new(passphrase, AES.MODE_CBC, IV)
- decrypted = aes.decrypt(base64.b64decode(encrypted))
- return decrypted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement