CodeIgniter Forums
Guide to get rid of Mcrypt dependancy (Encrypt) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: Guide to get rid of Mcrypt dependancy (Encrypt) (/showthread.php?tid=72627)



Guide to get rid of Mcrypt dependancy (Encrypt) - AustinGrey - 01-16-2019

I'm tasked with taking a codeigniter 3 application that used to be a codeigniter 2 application (is using encrypt) and used to run on PHP 5.2 and get it running on PHP 7.2

PHP 7.2 doesn't come with MCrypt anymore, and so that main blocking issue I have is that I get an error saying I need to install MCrypt, and the codeigniter documentation states I should probably just move from the Encrypt library to the Encryption library, then I can use OpenSSL.

Is there some sort of migration guide to move to Encryption? I'm not using most of the features of Encrypt (sessions are stored in the DB, not a cookie either). I just want to get off of MCrypt.


RE: Guide to get rid of Mcrypt dependancy (Encrypt) - InsiteFX - 01-16-2019

Read:

PHP Symmetric Cryptography Library Recommendations: Use the Paragonie Libsodium Lib

Paragonie - Secure Data Encryption in Web Applications with PHP