摘要: public static void main(String[] args) { try { String plainText = "duwenlei"; KeyPairGenerator keyPairGenerator = KeyPair... 阅读全文
posted @ 2015-02-26 13:23 哎呦喂,我的小祖宗╰つ 阅读(1650) 评论(0) 推荐(0) 编辑
摘要: SecureRandom sr = new SecureRandom();byte[] bytes = new byte[8];bytes = sr.generateSeed(8);System.out.println(new String(Hex.encode(bytes)));其中Hex.eco... 阅读全文
posted @ 2015-02-26 11:23 哎呦喂,我的小祖宗╰つ 阅读(980) 评论(0) 推荐(0) 编辑