摘要: public class BadWordFilter { #region 变量 private HashSet hash = new HashSet(); private byte[] fastCheck = new byte[char.MaxValue]; private byte[] fast... 阅读全文
posted @ 2015-02-06 10:04 余粮 阅读(1256) 评论(1) 推荐(0) 编辑
摘要: 方法一://须添加对System.Web的引用 usingSystem.Web.Security; ... /// /// SHA1加密字符串 /// /// 源字符串 /// 加密后的字符串 publicstringSHA1(stringsource) { returnFormsAuthent... 阅读全文
posted @ 2015-02-06 09:58 余粮 阅读(159) 评论(0) 推荐(0) 编辑