I have a field that will contain a user specific information that I want to encrypt when it gets placed inside the database. That information is later being accessed ONLY by me (the admin). What is the best way to have that information encrypted inside the database and view-able by me within the admin area?
The field will contain only numbers.
Site built with PHP, MySQL, an example code?
Best way to use PHP to encrypt and decrypt?
This archived question explains how to encrypt you data pre storage and decrypt it after retrieval enabling you to modify / display it as plain text.
Mcrypt Reference may also come in use.
Hope this helps