摘要: private static String encoding = "utf-8"; public static void readTxt(String filePath) throws IOException { File file = new File(filePath); if (file.isFile() && file.exists()) { ... 阅读全文
posted @ 2016-04-26 21:48 Ryan.Miao 阅读(283) 评论(0) 推荐(0) 编辑
摘要: package com.test.util.encrypt; import org.apache.commons.lang3.StringUtils; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; import javax.crypto.Cipher; import javax.crypto.KeyGenerato... 阅读全文
posted @ 2016-04-26 21:38 Ryan.Miao 阅读(465) 评论(0) 推荐(0) 编辑