刘旭

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
MD5和SHA1算法对数据进行加密


例:
'MD5加密
Dim UserPWD as String
UserPWD = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(UserPWD, "MD5")

'SHA1加密
UserPWD = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(UserPWD, "SHA1")
posted on 2006-12-20 15:47  刘旭  阅读(894)  评论(0编辑  收藏  举报