CodeIgniter Forums
Why encryption in codeigniter working in local but not on the server? - 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: Why encryption in codeigniter working in local but not on the server? (/showthread.php?tid=1601)



Why encryption in codeigniter working in local but not on the server? - rameshfernandez - 03-24-2015

I used the below code in my local wamp server and everything is perfect
PHP Code:
$this->encryption->encode($result['wo_id']); 

But the same code is showing error when uploading to the web server online. Why?


RE: Why encryption in codeigniter working in local but not on the server? - techbat - 03-24-2015

CI Encryption library required mcrypt and openssl extensions, check on your server configuration, both extensions are available.
And what issue is show up on server, please elaborate more??


RE: Why encryption in codeigniter working in local but not on the server? - Narf - 03-25-2015

(03-24-2015, 10:47 PM)techbat Wrote: CI Encryption library required mcrypt and openssl extensions, check on your server configuration, both extensions are available.
And what issue is show up on server, please elaborate more??

Judging by the call to encode() instead of encrypt(), I'd say he's using CI2 and CI_Encrypt, which only supports Mcrypt and is deprecated in CI3.