0

I want to use SHA256 as the hashalgorithmtype in my Membership Provider instead of the default SHA1.

<membership defaultProvider="AspNetSqlMembershipProvider" hashAlgorithmType="SHA256">
<providers>
   passwordFormat="Hashed"
   hashAlgorithmType="SHA256"/>
</providers>

This gives me the following error when I want to save to the Membership table: "Attribute not recognized 'hashAlgorithmType'"

Is there any way to solve this? Can't seem to find anything on the net...

1
  • Your XML looks wrong. You've got a close tag (/>) after your algorithm type Commented May 30, 2013 at 9:28

1 Answer 1

1

I think it should look like this:

<membership defaultProvider="AspNetSqlMembershipProvider" hashAlgorithmType="yourAlgorithmType">
<providers>
   <!-- optional provider information here. just leave empty if you wish -->
</providers>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.