没错呀,我的代码
Dim strHash, strPass As String
strPass = "12345"
strHash = Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(strPass, "md5")Response.Write(strHash)结果是827CCB0EEA8A706C4C34A16891F84E7B
没发现什么问题,你具体是在什么上下文中使用的?问题是什么?

解决方案 »

  1.   

    编译的时候没有什么错误,但是在执行过程中错误提示是:Server Error in '/testit0' Application.
    --------------------------------------------------------------------------------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.
      

  2.   

    编译的时候没有什么错误,但是在执行过程中错误提示是:Server Error in '/testit0' Application.
    --------------------------------------------------------------------------------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.
      

  3.   

    你的问题好像是无法实例化,可能编译的时候和运行的时候调用的不是同一个库(dll)。