类 RsaUtil
java.lang.Object
cn.hamm.airpower.util.RsaUtil
RSA加解密助手类
- 作者:
- Hamm.cn
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final @NotNull StringprivateKeyDecode(String encryptedContent) 私钥解密final StringprivateKeyEncode(String sourceContent) 私钥加密final @NotNull StringpublicKeyDecode(String encryptedContent) 公钥解密final StringpublicKeyEncode(String sourceContent) 公钥加密
-
构造器详细资料
-
RsaUtil
public RsaUtil()
-
-
方法详细资料
-
publicKeyEncode
公钥加密
- 参数:
sourceContent- 原文- 返回:
- 密文
-
privateKeyDecode
私钥解密
- 参数:
encryptedContent- 密文- 返回:
- 原文
-
privateKeyEncode
私钥加密
- 参数:
sourceContent- 原文- 返回:
- 密文
-
publicKeyDecode
公钥解密
- 参数:
encryptedContent- 密文- 返回:
- 原文
-