CodeIgniter Forums
How use key for aes_encrypt wihtout accessible - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: How use key for aes_encrypt wihtout accessible (/showthread.php?tid=69168)



How use key for aes_encrypt wihtout accessible - omid_student - 10-16-2017

I need to use AES_ENCRYPT in mysql for decrypt data
We know that need key for encrypt and decrypt data
If i use this key in sql query from php and execute it,maybe database show error that contain my query that in query my key exist
How use this key without accessible user?


RE: How use key for aes_encrypt wihtout accessible - InsiteFX - 10-16-2017

Read the database record and then decrypt it in code.

Youcould store the key like CodeIgniter does in the config file.