For those sites/scripts that use the GET method a lot to send information from one page to another, you can use this functionality to obfuscate the data so it's not so easily readable by people, helps prevent tampering of data.
Just send the query string to the compressCrypt function and it will return the obfuscated result, for example
$obfuscatedQueryString = compressCrypt("string=asdf&page=2&id=1998"); (a href="search.php?$obfuscatedQueryString")link(/a)
which would turn into: href="eNorLinKzEu3TSxOSVMrSExPtTVSy0yxNbS0tAAAgnoIsA=="
To go back to the original, take the obfuscated string and run it through the other function
$unobfuscated = decompressCrypt($encryptedquerystring);
$unobfuscated = decompressCrypt($SERVER["QUERYSTRING"]);
//update I just now noticed that the site stripped out the PHP part in the link
CommentsSubscribe to comments
You need to login to post a comment.