国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

DotNet中密碼的加密(轉)

2024-07-21 02:20:18
字體:
來源:轉載
供稿:網友
<%@ import namespace="system.web.security" %>
<html>
<head>
<script language="vb" runat=server>
' this function encrypts the input string using the sha1 and md5
' encryption algorithms
sub encryptstring(src as object, e as eventargs)
   sha1.text = cookieauthentication.hashpasswordforstoringinconfigfile(txtpassword.text, "sha1")
   md5.text = cookieauthentication.hashpasswordforstoringinconfigfile(txtpassword.text, "md5")
end sub
</script>
</head>
<body>

<form runat=server>

<p><b>original clear text password: </b><br>
  <asp:textbox id="txtpassword" runat=server />
  <asp:button runat="server" text="encrypt string" onclick="encryptstring" /></p>

<p><b>encrypted password in sha1: </b>
  <asp:label id="sha1" runat=server /></p>

<p><b>encrypted password in md5: </b>
  <asp:label id="md5" runat=server /></p>

</form>

</body>
</html>
  • 本文來源于網頁設計愛好者web開發社區http://www.html.org.cn收集整理,歡迎訪問。
  • 發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 定结县| 昭苏县| 抚松县| 芜湖县| 华池县| 抚顺县| 丁青县| 甘谷县| 兴隆县| 德钦县| 新民市| 固始县| 龙州县| 犍为县| 璧山县| 万山特区| 图们市| 鄄城县| 伊川县| 卓尼县| 阳信县| 仙游县| 昆山市| 中牟县| 阳江市| 张家口市| 新津县| 子长县| 阜新市| 临江市| 吴忠市| 舒兰市| 肥城市| 龙里县| 施甸县| 洞口县| 紫云| 安阳市| 蒙山县| 利川市| 乌恰县|