title: How can I encrypt a querystring in asp.net?
body: <p>I need to encrypt and decrypt a querystring in ASP.NET. </p>
  
  <p>The querystring might look something like this:</p>
  
  <blockquote>
    <p><a href="http://www.mysite.com/report.aspx?id=12345&amp;year=2008" rel="noreferrer">http://www.mysite.com/report.aspx?id=12345&amp;year=2008</a></p>
  </blockquote>
  
  <p>How do I go about encrypting the entire querystring so that it looks something like the following?</p>
  
  <blockquote>
    <p><a href="http://www.mysite.com/report.aspx?crypt=asldjfaf32as98df8a" rel="noreferrer">http://www.mysite.com/report.aspx?crypt=asldjfaf32as98df8a</a></p>
  </blockquote>
  
  <p>And then, of course, how to I decrypt it? What's the best encryption to use for something like this? TripleDES?</p>