Package com.wechat.pay.java.core.cipher
Interface AeadCipher
- All Known Implementing Classes:
AbstractAeadCipher
,AeadAesCipher
public interface AeadCipher
认证加密器
-
Method Summary
-
Method Details
-
encrypt
加密并转换为字符串- Parameters:
associatedData
- AAD,额外的认证加密数据,可以为空nonce
- IV,随机字符串初始化向量plaintext
- 明文- Returns:
- Base64编码的密文
-
decrypt
解密并转换为字符串- Parameters:
associatedData
- AAD,额外的认证加密数据,可以为空nonce
- IV,随机字符串初始化向量ciphertext
- 密文- Returns:
- UTF-8编码的明文
-