public class RSAUtils
extends Object
RSA加密解密
- 作者:
- chunyang.leng
-
-
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
RSAUtils
public RSAUtils()
-
方法详细资料
-
encode
加密
- 参数:
src - 原始字符串
publicKey - 公钥
- 返回:
- 加密后的字符串
- 抛出:
Exception
-
decode
解密
- 参数:
src - 原始字符串
privateKey - 私钥
- 返回:
- 加密后的字符串
- 抛出:
Exception