I have a url with several parameters is use for a http request. It looks like this:
http://www.url.com/site.php?parameter1=x¶meter2=y
I would like to make sth like this in javascript:
http://www.url.com/data=wafseghsgse or http://www.url.com/site/?data=wafseghsgse
And in php I would get the “old” url back to work with it.
I am looking for the fastest way to do this, not the most secure one. To save a key for encryption I would use the database or maybe session (safe?).
Looking for your great ideas.
If you just want a fast obfuscate method with no care about security, you can use ROT13, you have javascript ROT13 implementations in Where is my one-line implementation of rot13 in JavaScript going wrong? and then in PHP you have str_rot13() to decrypt the javascript version.