Welcome Guest, Not a member yet? Register   Sign In
Use encrypted string in URL
#1

[eluser]darrenm[/eluser]
Hi there

I wan't to disguise a database ID in a url so that instead of /orders/view/123/ I have /orders/view/ENCRYPTED/ where ENCRYPTED is $this->encrypt->encode(123).

Problem is that the resulting string contains characters that are not allowed by default in URLs - and I don't really want to change the allowance.

Does anyone know of a way to get two-way encryption that only produces alphanumeric output?

thanks
#2

[eluser]Unknown[/eluser]
Convert it from 10 to a 36 base.

edit: forget it, I read again, you want encryption.
#3

[eluser]lovinglgz[/eluser]
i got the same problem with you.
anyone who can help me handler that?

thanks in advance.
#4

[eluser]TheFuzzy0ne[/eluser]
Funny that. I wrote two functions earlier today to deal with the exact same problem. http://ellislab.com/forums/viewthread/107741/.




Theme © iAndrew 2016 - Forum software by © MyBB