100分!!!!!!!! asp.net 2.0里的问题!!!!!!!!!!!!!!!!!!!11
我用的是asp.net 2.0自带的用户系统数据库aspnetdb
默认情况下用户注册后密码是用 "SHA1 "加密的,我现在要让用户注册时生成的密码是MD5的,在web.config里怎么设置呀?
我在web.config里把hashAlgorithmType= "MD5 " 运行时提示属性未被识别为“hashAlgorithmType”
具体配置如下:
<membership defaultProvider= "SQLMembershipProvider ">
<providers>
<add name= "SQLMembershipProvider "
type= "System.Web.Security.SqlMembershipProvider "
connectionStringName= "SQLMembershipConnString "
applicationName= "/ "
enablePasswordRetrieval= "false "
enablePasswordReset= "true "
requiresQuestionAndAnswer= "false "
requiresUniqueEmail= "false "
maxInvalidPasswordAttempts= "5 "
minRequiredPasswordLength= "7 "
minRequiredNonalphanumericCharacters= "0 "
passwordAttemptWindow= "10 "
passwordStrengthRegularExpression= " "
hashAlgorithmType= "MD5 "
passwordFormat= "Hashed " />
</providers>
</membership>
请大家帮忙看看。
谢谢了!
------解决方案-------------------- <membership hashAlgorithmType= "SHA1 " />
------解决方案--------------------mark
------解决方案--------------------up
------解决方案--------------------没用过自带的
------解决方案--------------------没有用过。