Is there any way by which we can encrypt data before INSERT or UPDATE query and decrypt the same when SELECT query fire dynamically in Mysql ? I have done this by using "Hooks" feature of php but am looking for some efficient way other then this, and i know it can be done using AES_ENCRYPT() but for that i have to change everywere in my query which i dont want to do that in such large system, also i cant use "Encryption at rest" because my saved data will keep on changing.
From Comments:
Actually I am working on a system which is already developed, but for some security reasons now I need to encrypt all column data of a specific table without manually modifying all queries, so you can say "how to encrypt within MySQL" ?