title: Approaches to encrypt a string inside asp.net mvc
body: <p>I am working on an ASP.NET MVC 5 web application inside VS 2012 and I am using IIS 8 to deploy the web application.</p>
  
  <p>I have a security token which I am using to call a third party WebAPI. Currently inside my controller class, I define and use the token as follows:</p>
  
  <pre><code>string token = "D12356"; 
  string url = currentURL + "resources?AUTHTOKEN=" + token;
  </code></pre>
  
  <p>Is there is a way to encrypt this value, so if anyone accesses the code inside VS or anyone reverse engineers the .dll files on IIS they won't see the actual token value, but will instead see the encrypted value?</p>