1import pyAesCrypt
2# encryption/decryption buffer size - 64K
3bufferSize = 64 * 1024
4password = "foopassword"
5# encrypt
6pyAesCrypt.encryptFile("data.txt", "data.txt.aes", password, bufferSize)
7# decrypt
8pyAesCrypt.decryptFile("data.txt.aes", "dataout.txt", password, bufferSize)
9