Forum Moderators: coopster

Message Too Old, No Replies

best way to encrypt query part of url

         

lethal0r

12:16 am on Sep 22, 2006 (gmt 0)

10+ Year Member



i need to be able to encrypt the query string part of the url, which I can then download from my referral logs and decrypt.

It does not need to be strong encryption, just so the original string is not visible.

Is my best option mycrypt? If so, is there is a way to make the encrypted string just use ASCII characters? I have been playing around a little with it and it uses all manner of crazy unicode characters.

eelixduppy

3:02 am on Sep 22, 2006 (gmt 0)



What are you trying to do? This doesn't seem like the best way to achieve what you want. But if you want to still do this, Mcrypt would probably be a good choice for encryption.

lethal0r

9:28 am on Sep 22, 2006 (gmt 0)

10+ Year Member



im passing a parameter using GET that I want to disguise. It must use GET as it will need to pass this data across sites. There is no requirement for it to be hard to crack though, just so that the original is not visible.

dreamcatcher

11:49 am on Sep 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could use base64_encode [uk2.php.net].

dc

lethal0r

2:13 pm on Sep 23, 2006 (gmt 0)

10+ Year Member



this works great, thanks :)