java中使用公钥加密私钥解密原理.KeyGenerater类:publicclassKeyGenerater{privatebyte[]priKey;privatebyte[]pubKey;publicvoidgenerater(){try{KeyPairGeneratorkeygen=KeyPairGenerator.getInstance("RSA");SecureRandomsecrand=newSecureRandom();secrand.setSeed("www.川江号子.cn".getBytes());//初始化随机产生器keygen