随笔分类 -  Security

Password Rule
摘要:代码源自 Microsoft.AspNet.Identity 程序集. 1 using System; 2 using System.Net; 3 using System.Security.Cryptography; 4 using System.Text; 5 6 namespace Authe 阅读全文
posted @ 2016-03-02 14:00 奔跑的Code 阅读(464) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-03-01 16:36 奔跑的Code 阅读(267) 评论(0) 推荐(0)
摘要:string pattern = @"^(?=.*[0-9])(?=.*[!@#$%^&*])[0-9a-zA-Z!@#$%^&*0-9]{10,}$"; string msg = "Password should have one numeral and one special character 阅读全文
posted @ 2016-03-01 15:01 奔跑的Code 阅读(3058) 评论(0) 推荐(0)