摘要:
/** * RSA公钥加密 * * @param str * 加密字符串 * @param publicKey * 公钥 * @return 密文 * @throws Exception * 加密过程中的异常信息 */ public static String encrypt( String str 阅读全文
摘要:
public static Map<Integer, String> genKeyPair() throws NoSuchAlgorithmException { //保存用户级别公钥和私钥对 Map<Integer, String> keyMap = new HashMap<Integer, St 阅读全文