![]() |
about Encryption Library - 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: about Encryption Library (/showthread.php?tid=67584) |
about Encryption Library - seasenx6 - 03-12-2017 Hello, I have 2 function for encode and decode. So I upgrade php to php7.1 and I can not use encrypt old library. now I try to using encryption new library. and I get string / = + after encrypt because / it make can not pass string on url Pls, I need you help. PHP Code: public function encode_me($string, $key = '') { RE: about Encryption Library - seasenx6 - 03-12-2017 OK now I solution this way if you better way pls tel me thank you PHP Code: public function encode_me($string, $key = '') { RE: about Encryption Library - Narf - 03-12-2017 This is not a solution, it may corrupt the data. Use rawurlencode() RE: about Encryption Library - Narf - 03-12-2017 And on another note - if something's worth encrypting, it doesn't belong in a URL, so whatever you're doing it's deffinately wrong. RE: about Encryption Library - seasenx6 - 03-12-2017 Thank you so much Narf I will using rawurl. I must to send some data on url and must important data so I will back to find better anothor way such as pass encryption data on $this->load->view() Thank agian I will improve my seft thank you Narf. |