Wrapper for PHP mcrypt encryption algorithms.
- AES in CBC mode with [PKCS7 padding](http://en.wikipedia.org/wiki/Padding_(cryptography\)#PKCS7)
- Encryption strength is determined by key length. Key lengths 16, 24, 32 corresponds with 128, 192, 256 bit encryption.
use Keboola\Encryption\AesEncryptor;
$encryptor = new AesEncryptor('UfhZPgPLpz7YVjXwNGTpUD8WpoddfpXn'); // 256 bit key
$encryptedMessage = $encryptor->encrypt($inputMessage);- https://gist.github.com/RiANOl/1077723
- http://php.net/manual/en/function.mcrypt-encrypt.php
- https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation
- http://www.coderelic.com/2011/10/aes-256-encryption-with-php/
- http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
- http://blog.agilebits.com/2013/03/09/guess-why-were-moving-to-256-bit-aes-keys/
