This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Roughly based on: http://code.activestate.com/recipes/576980-authenticated-encryption-with-pycrypto/ | |
""" | |
import hashlib | |
import hmac | |
from Crypto.Cipher import AES | |
from Crypto.Random import random |