Corrected: HashPasswordforstoringInConfigFile MD5 algorithm and very useful MD5 algorithm

zhaozj2021-02-16  53

Source: http://www.kehui.org/index.php? Op = Article & File = Read & Aid = 16367 I also thought that the MD5 in system.Web.Security.FormSauthentication.hashpasswordforstoringInConfigfile can be trial today, the result Very different, such as Test, HashpasswordforstoringInconfigfile encodes C8059E2EC7419F590E79D7F1B774BFE6 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.

??