![]() |
mcrypt encode and decode - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18) +--- Thread: mcrypt encode and decode (/showthread.php?tid=64620) |
mcrypt encode and decode - sasatozovic - 03-13-2016 I am using codeigniter 2x, and I need to decode string I have been given, and that string containes array. For that I got a key, iv, cipher and mode. I figure out how to set key, cipher and mode: Code: $this->load->library('encrypt'); On net I did found only this: Code: $o = $this->encrypt->decode($o,$key); RE: mcrypt encode and decode - comp_nerd26 - 04-21-2016 Hi This is correct. Just ensure you set the same params in setting/retreiving the encryption string, that way you return the data as is. I use this same method when encrypting get in url sending to emails ![]() |