How can I encrypt / decrypt PHP GET parameters?

I have a regular request, for example:

http://myserver.com/index.php?var1=85842.23&var2=212.235&name=Teddie&valid=1

I would like these $ _GET parameters to be encrypted with something like (not real, just an example :)):

http://myserver.com/index.php?eParam=ks883d48223v2czozoz227272j2nn2dn2d2du3dh4hn4f4f4f4h3383xh8383s38s3j83sj8s3j92h2s89hs387h2s87hs287h2s87h2ui2c3iuhc287z9m2389f

Of course, I need a built-in key on each side that can decrypt this information. Is there any function that can make this possible? I'm not interested in the client side, since it will be a running application, not a web page or something that would be easy to reconstruct.

Thank!

+5
source share
2 answers

SSL (.. HTTPS HTTP). , DNS, ip-, , .

+9

... /, . script, . , ... :

  • /
  • ,
  • , PHP, urlencode() , , , .
  • urldecode(), , .
+1

All Articles