没错呀,我的代码
Dim strHash, strPass As String
strPass = "12345"
strHash = Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(strPass, "md5")Response.Write(strHash)结果是827CCB0EEA8A706C4C34A16891F84E7B
没发现什么问题,你具体是在什么上下文中使用的?问题是什么?
Dim strHash, strPass As String
strPass = "12345"
strHash = Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(strPass, "md5")Response.Write(strHash)结果是827CCB0EEA8A706C4C34A16891F84E7B
没发现什么问题,你具体是在什么上下文中使用的?问题是什么?
--------------------------------------------------------------------------------Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
--------------------------------------------------------------------------------Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.