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