學習之路 发表于 2012-10-25 23:59:30

使用 One way hash function 對字串作 hash 的動作

可以用 FormsAuthentication.HashPasswordForStoringInConfigFile 方法來作
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:f16f79b5-20f3-4f87-ad1f-8cd1f4b1ed49" class="wlWriterEditableSmartContent">string HashString = FormsAuthentication.HashPasswordForStoringInConfigFile(txtBeforeHash.Text, "MD5"); //可選用MD5 or SHA1txtAfterHash.Text = HashString;
页: [1]
查看完整版本: 使用 One way hash function 對字串作 hash 的動作