Corrected: HashPasswordforstoringInConfigFile MD5 algorithm and very useful MD5 algorithm

zhaozj2021-02-16  50

Originally I thought System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile the MD5 and commonly available today as a test, the results are very different, such as test, HashPasswordForStoringInConfigFile encoded into C8059E2EC7419F590E79D7F1B774BFE6 but should be 098f6bcd4621d373cade4e832627b4f6

And different machines have different results, some results look at MSDN's explanation correctly, originally given a password and a string idetrib, the Hash Type, this Routine Produces a Hash Password Suitable for Storing In a configuration file. To compatible with previous code Compatible with the platform, I have to rewrite the MD5 algorithm, using the system.seircyptography.md5cryptoserviceProvider code as follows, everyone will know, I will not say much.

转载请注明原文地址:https://www.9cbs.com/read-28059.html

New Post(0)