CodeIgniter Forums
Encryption Library and Migrating Servers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Encryption Library and Migrating Servers (/showthread.php?tid=5155)



Encryption Library and Migrating Servers - El Forum - 01-08-2008

[eluser]codejedi[/eluser]
I recently migrated a client's website to a new server. I use the Encryption library to encrypt data that's stored in a MySQL database. After the migration to the new server, the decryption of the data now fails, returning garbage characters. I use the encryption key stored in the config.php file, so the key hasn't arbitrarily changed. Has anyone encountered a situation like this?


Encryption Library and Migrating Servers - El Forum - 01-08-2008

[eluser]nirbhab[/eluser]
hi,
I haven't encountered such a problem before but check for mcrypt library in php installed in new server, check for phpinfo of the server. by default if mcrypt is not available than encrypt class id CI uses base decoding.


Encryption Library and Migrating Servers - El Forum - 01-08-2008

[eluser]codejedi[/eluser]
Yep. That was it. The old server had mcrypt installed and the new one doesn't. Another thing I have to look for now Smile Thanks.