I am trying to write a python code which has same functionarities of AES_ENCRYPT and AES_DECRYPT of MySQL.
https://dev.mysql.com/doc/refman/5.6/ja/encryption-functions.html
I want to encrypt and decrypt data between MySQL and Python.
For example, I want to decrypt data by python, which is encrypted by AES_ENCRYPT of MySQL.
And I want to decrypt data by AES_DECRYPT of MySQL, which is encrypted by Python vice versa.
I found a example of AES_ENCRYPT in Python.
https://www.maykinmedia.nl/blog/2012/nov/15/mysql-aes_encrypt-python/
Does anyone know how to implement the decryption part?