How to encrypt a specific column in a MySQL table?

前端 未结 3 965
故里飘歌
故里飘歌 2020-12-08 21:38

I am experimenting with creating a simple message system (PHP) page that uses a MySQL table to store the entries. The rough outline of the columns I\'ll use in the table are

3条回答
  •  攒了一身酷
    2020-12-08 22:04

    You can also encrypt the data prior to the query to insert it, so that MySQL doesn't even know it's encrypted, and decrypt it on retrieval in the application. For that, you should store it in a varbinary or blob column though.

提交回复
热议问题