cbc-aes-example Example using BouncyCastle to encrypt/decrypt strings with AES in CBC and CTR mode. Can be used with data keys obtained from AWS KMS: http://docs.aws.amazon.com/kms/latest/developerguide/programming-keys.html See the unit test for usage. Inspired by: http://www.mytechnotes.biz/2012/08/aes-256-symmetric-encryption-with.html http://www.itcsolutions.eu/wp-content/uploads/2011/08/BouncyCastleProvider_AES_CBC.java.txt http://www.thecodingforums.com/threads/using-randomly-generated-iv-for-encryption.647129/