Skip to content

Instantly share code, notes, and snippets.

View strongpapazola's full-sized avatar
💭
Call me

strongpapazola strongpapazola

💭
Call me
View GitHub Profile
#!/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