title: How to hash password using Membership API
body: <p>I use the following code to hash passwords:</p>
  
  <pre><code>string passw = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text, "SHA1");
  </code></pre>
  
  <p>Above works just fine but I get a warning which says:
  Warning 103 </p>
  
  <pre><code>'System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(string, string)' is obsolete: 'The recommended alternative is to use the Membership APIs, such as Membership.CreateUser. 
  </code></pre>
  
  <p>So far I have not being able to find the equivalent code using the membership API.</p>