MySQL database encryption using public/private keys
As an additional security measure you can encrypt sensitive data in your database. When a hacker obtains access to your database, the hacker will find the encrypted data. You want your web application to enter new encrypted data into the database and you want to grant users of your web app access to the sensitive data without exposing the decryption key to the hacker.