(.Net 1.1)SHA1與MD5雜湊函數的快速取得法
作者: Ahan 日期: 2007-01-17 11:29
Using System.Web.FormsAuthentication.HashPasswordForStoringInConfigFile
Example:
FormsAuthentication.HashPasswordForStoringInConfigFile(password , passwordFormat )
參數
- password
- 要做雜湊演算的密碼。
- passwordFormat
- 要使用的雜湊演算。選擇為「sha1」或「md5」。
傳回值
傳回包含雜湊密碼的 String 。
備註
所支援的密碼演算法為 SHA1 和 MD5。.Net FrameWork 2.0 已支援更多密碼演算法。
發表評論
訂閱
上一篇
返回
下一篇
