<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - MMDeveloper</title>
<link>http://snipplr.com/users/MMDeveloper/tags/url</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 18:43:34 GMT</pubDate>
<item>
<title>(PHP) obfuscated query string</title>
<link>http://snipplr.com/view/9169/obfuscated-query-string/</link>
<description><![CDATA[ <p>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&amp;page=2&amp;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);

or

$unobfuscated = decompressCrypt($_SERVER["QUERY_STRING"]);



//update
I just now noticed that the site stripped out the PHP part in the link</p> ]]></description>
<pubDate>Tue, 21 Oct 2008 16:11:38 GMT</pubDate>
<guid>http://snipplr.com/view/9169/obfuscated-query-string/</guid>
</item>
</channel>
</rss>