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);