摘要:
作为常用的非对称加密算法,本篇文章大致记录一下,在java代码中如何生成RSA的密钥对以及加密解密的使用。 1、生成密钥对 public class RSAUtils { // 填充方式 public static final String RSA_ALGORITHM_NOPADDING = "RS 阅读全文
摘要:
参照上上篇文章,JDK动态代理,继承InvocationHandler。 目标对象继承的接口:ICal.java public interface ICal { public int add(int n1, int n2); public int sub(int n1, int n2); publi 阅读全文