Shortest way to encrypt and decrypt email address PHP
<p>I'm looking on a little guidance on the best way to encrypt and decrypt a email address using PHP. </p>

<p>The reason: </p>

<p>I have a referral script set on my site and it has a GET variable in the URL that represents an email address converted using base64_encode(). The only problem I am having with this is I am getting a really long URL link. Not necessarily ideal for sharing. Do I have any better alternatives to generate a shorter URL link rather than using base64_encode() and base64_decode()?</p>

<p>What I am getting: <a href="http://www.domain.com/r/?r=dGhlam9yZGFuZ2FtZUBzYmNnbG9iYWwubmV0" rel="nofollow">http://www.domain.com/r/?r=dGhlam9yZGFuZ2FtZUBzYmNnbG9iYWwubmV0</a></p>

<p>Basically, is there a easier way to shorten the URL without a DB? </p>
