title: How do I create a custom asp.net sql membership provider to save hashed passwords in SHA256?
body: <p>I'm building a web application using the ASP.net Membership Provider to manage, Authentication/Authorisation. I've done this a bunch of times, but this time I need to store the hashed password in SHA256, instead of the standard password hash which is SHA1.</p>
  
  <p>Looking at the overridable methods on the SQLMembershipProvider there is at least one that I think I'm going to have to override in order to get this puppy to work:</p>
  
  <pre><code>byte[] EncryptPassword(byte[] password)
  </code></pre>
  
  <p>I'll also have to change the aspnet_Membership.Password field cope with the newly hashed password, currently it's only nvarchar(128).</p>
  
  <p>I was hoping that someone with a little more experience on extending the SqlMembershipProvider might be able to give me some pointers.</p>
  
  <p>Thanks.</p>
  
  <p>note: Although I'm using the .net 2.0 membership provider, I'm actually running .net 3.5</p>