1

After searching for quite a while here in SO, I only found topics with regards to MySQL's AES with "ECB" method and not "CBC". That's why I decided to open this question.

What is the equivalent of MySQL's AES_ENCRYPT ECB method in PHP? Should I use openssl? mcrypt? Or is there any chance that the encryption made in PHP could be decrypted with the use of MySQL and vice versa?

Thanks in advanced for possible answers, help and solutions!

Irvin
  • 820
  • 5
  • 13
  • According to the [docs](https://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html) its `RIJNDAEL-128`. And on the question if you should use the abandoned software `mcrypt` vs `openssl`, well. Your choice. – Xorifelse Dec 07 '16 at 06:04
  • I have an `openssl` solution here: https://stackoverflow.com/a/49926582/2137316. Doesn't quite answer the question here, but it may help. – kmuenkel Apr 19 '18 at 17:10

0 Answers0