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.