接口 AsymmetricCryptoProcessor
public interface AsymmetricCryptoProcessor
Description: 非对称加密
- 作者:
- : gengwei.zheng
- Date:
- : 2022/5/1 15:06
-
方法概要
-
方法详细资料
-
createSecretKey
cn.herodotus.engine.assistant.core.domain.SecretKey createSecretKey()创建非对称算法,公钥私钥对。- 返回:
- 非对称算法,公钥私钥对
-
decrypt
用私钥解密- 参数:
privateKey- 非对称算法 KeyPair 私钥content- 待解密数据- 返回:
- 解密后的数据
-
encrypt
用公钥加密- 参数:
publicKey- 非对称算法 KeyPair 公钥content- 待加密数据- 返回:
- 加密后的数据
-