Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. def decrypt(encrypted, passphrase):
  2. IV = ''.join(chr(x) for x in [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00])
  3. aes = AES.new(passphrase, AES.MODE_CBC, IV)
  4. decrypted = aes.decrypt(base64.b64decode(encrypted))
  5. return decrypted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement