title: Encrypt with PHP Mcrypt and Decrypt with MySQL aes_decrypt?
body: <p>Is it possible to Encrypt data with PHP <code>mcrypt</code> and decrypt it in the database with MySQL <code>AES_DECRYPT</code>? At the moment, I'm using <code>RIJNDAEL_128</code> for <code>mcrypt</code> on PHP. I've also made sure that the encrypted fields in the database have data type <code>blob</code>. Yet, <code>AES_DECRYPT</code> with the correct key still returns <code>NULL</code>. Any suggestions on how to get this to work?</p>