Skip to content

Instantly share code, notes, and snippets.

@tonyczeh
tonyczeh / aes256.py
Last active March 12, 2018 20:49
AES-256 envelope encryption
#!/usr/bin/env python3
import base64
import boto3
from argparse import ArgumentParser, FileType
from Crypto import Random
from Crypto.Cipher import AES
from sys import exit, stderr, stdout

Keybase proof

I hereby claim:

  • I am tonyczeh on github.
  • I am tonyczeh (https://keybase.io/tonyczeh) on keybase.
  • I have a public key ASB87LRIvKvaIBtEXqFB-IZdwdZ3RaSEPsp1DAGBhlV9qQo

To claim this, I am signing this object: