public interface AeadCipher
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decrypt(byte[] associatedData,
byte[] nonce,
byte[] ciphertext)
解密并转换为字符串
|
java.lang.String |
encrypt(byte[] associatedData,
byte[] nonce,
byte[] plaintext)
加密并转换为字符串
|
java.lang.String encrypt(byte[] associatedData,
byte[] nonce,
byte[] plaintext)
associatedData - AAD,额外的认证加密数据,可以为空nonce - IV,随机字符串初始化向量plaintext - 明文java.lang.String decrypt(byte[] associatedData,
byte[] nonce,
byte[] ciphertext)
associatedData - AAD,额外的认证加密数据,可以为空nonce - IV,随机字符串初始化向量ciphertext - 密文