How to hash a UTF-8 string in Classic ASP

后端 未结 6 1971
终归单人心
终归单人心 2021-01-15 19:33

I\'ve been looking for a Classic ASP script that allows me to hash a string using the MD5 algorithm. I need to match this hashed string against the same string in an ASP.NET

6条回答
  •  南笙
    南笙 (楼主)
    2021-01-15 19:51

    If you want exactly what .Net does , You can decompile ComputeHash method from HashAlgorithm class(also consider MD5CryptoServiceProvider class) from .Net assembly mscorlib.dll (from the path like this in your computer :C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\mscorlib.dll) and then convert the codes to ASP-Classic. Some good (free)Decompilers are:

    1- http://www.reflector.net/

    2- http://www.telerik.com/products/decompiler.aspx

提交回复
热议问题