title: Encrypt cookies in ASP.NET
body: <p>I would like to encrypt cookies in ASP.NET.</p>
  
  <p>I have followed <a href="http://www.codeproject.com/KB/web-security/HttpSecureCookie.aspx" rel="noreferrer">the method in this article</a>, but it has the drawback that is uses reflection on an internal method. This has caused it to be flagged in a code review -- it is not future-proof as the internal implementation may change. </p>
  
  <p>Is there a method with identical functionality which doesn't require using encryption on internal methods?</p>
  
  <p>I am using .NET Framework 3.5 SP1 (Assume I cannot change framework versions)</p>