CodeIgniter Forums
Encrypting DB Fields - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: Encrypting DB Fields (/showthread.php?tid=80829)



Encrypting DB Fields - Lipe_Bogaci - 12-23-2021

Hi bros,
is there any library for encrypting the data before i save them to database?


RE: Encrypting DB Fields - seunex - 12-23-2021

You can try the Encryption class https://codeigniter.com/user_guide/libraries/encryption.html


RE: Encrypting DB Fields - InsiteFX - 12-23-2021

You can also try Paragonie's Cipher Sweet Library.

Paragonie - CipherSweet


RE: Encrypting DB Fields - Lipe_Bogaci - 12-23-2021

(12-23-2021, 01:28 AM)seunex Wrote: You can try the Encryption class https://codeigniter.com/user_guide/libraries/encryption.html

With php 7.4 is not working: The Encrypt library requires the Mcrypt extension.