title: How to decrypt Authentication Cookie From Javascript
body: <p>Say I have some Form's authentication Cookie:</p>
  
  <pre><code>FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1,
    "TESTTEST",
    DateTime.Now,
    DateTime.Now.AddMinutes(30),
    false,
    String.Empty,
    FormsAuthentication.FormsCookiePath);
  </code></pre>
  
  <p>Normally in C# we can decrypt this like so:</p>
  
  <pre><code>var authToken = FormsAuthentication.Decrypt(authCookie.Value);
  </code></pre>
  
  <p>I'm creating a tool for testing an I want to decrypt the cookie on the client-side.</p>
  
  <p>If my machine key is: GHFDK45sDFGSKj234 How can I decrypt the Authentication from Javascript?</p>