CodeIgniter Forums
2 way encryption with friendly url - 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: 2 way encryption with friendly url (/showthread.php?tid=12133)



2 way encryption with friendly url - El Forum - 10-07-2008

[eluser]FuzzyJared[/eluser]
I am working on a little app that requires a form submission and redirect to a form success page. What I would like to do is validate the form data, insert it into a database and then send them to a new page with the insert id encoded.

Example
submission/success/abef38asd3889

Is this possible within the encrypt library? I don't have an issue using the library, but I can't use $this->encrypt->encode($submit_id) if it kicks back a value that isn't url friendly, example mQbis7ya9J9ZYXhOcjXMozJeAFOh4dk2nSJ2nFi+Zjo=


2 way encryption with friendly url - El Forum - 10-07-2008

[eluser]jwright[/eluser]
you could urlencode the encrypted value... The only issues I can see is if the encryption contains a forward slash in it.