2017年1月10日

使用正则表达式提高用户密码的复杂度和安全性

摘要: public class PassWordUtil { static String regex_number = "[\\p{Digit}]+";// 数字 static String regex_lower = "[\\p{Lower}]+";// 正则表达式 密码:小写字母 static String regex_upper = "[\\p{Uppe... 阅读全文

posted @ 2017-01-10 10:51 悄悄的来,匆匆的走 阅读(1640) 评论(1) 推荐(0) 编辑

java base64编码和解码

摘要: 通过反射使用java 中不对外公开的类: /*** * encode by Base64 */ public static String encodeBase64(byte[]input) throws Exception{ Class clazz=Class.forName("com.sun.or 阅读全文

posted @ 2017-01-10 10:26 悄悄的来,匆匆的走 阅读(1406) 评论(0) 推荐(0) 编辑

导航