国产探花免费观看_亚洲丰满少妇自慰呻吟_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收集整理,歡迎訪問。
  • 發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 泰来县| 翁牛特旗| 门源| 宝兴县| 博野县| 宁陵县| 炎陵县| 增城市| 平罗县| 富宁县| 鄢陵县| 黎城县| 淮南市| 福泉市| 河北省| 辽宁省| 阳原县| 广南县| 浏阳市| 淮阳县| 全州县| 东源县| 谷城县| 泉州市| 新沂市| 大洼县| 武宁县| 滦南县| 巴里| 天全县| 新余市| 兴仁县| 富阳市| 彰武县| 凉山| 易门县| 桃源县| 穆棱市| 西乌| 禹州市| 陇西县|