类 RsaUtils
java.lang.Object
com.cdkjframework.util.encrypts.RsaUtils
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static byte[]
decryptPrivateKey
(byte[] data, byte[] key) 私钥解密static byte[]
decryptPublicKey
(byte[] data) 公钥解密static byte[]
encryptPrivateKey
(byte[] data, byte[] key) 私钥加密static byte[]
encryptPublicKey
(byte[] data, byte[] key) 公钥加密
-
字段详细资料
-
KEY_ALGORITHM
非对称密钥算法- 另请参阅:
-
-
构造器详细资料
-
RsaUtils
public RsaUtils()
-
-
方法详细资料
-
encryptPrivateKey
私钥加密- 参数:
data
- 待加密数据key
- 密钥- 返回:
- byte[] 加密数据
- 抛出:
Exception
-
encryptPublicKey
公钥加密- 参数:
data
- 待加密数据key
- 密钥- 返回:
- byte[] 加密数据
- 抛出:
Exception
-
decryptPrivateKey
私钥解密- 参数:
data
- 待解密数据key
- 密钥- 返回:
- byte[] 解密数据
- 抛出:
Exception
-
decryptPublicKey
公钥解密- 参数:
data
- 待解密数据- 返回:
- byte[] 解密数据
- 抛出:
Exception
-