encrypt
//d1-client-java/io.cybercrypt.d1.serviceClients/Encrypt/encrypt
encrypt
[d1]\
public abstract EncryptResponseencrypt(Array<byte>plaintext, Array<byte>associatedData)
Encrypt an object with associated data.
Return
an instance of EncryptResponse.
Parameters
d1
plaintext | the plaintext to encrypt. |
associatedData | the attached associated data. |
[d1]\
public abstract EncryptResponseencrypt(Array<byte>plaintext, Array<byte>associatedData, List<String>groupIds)
Encrypt an object with associated data.
Return
an instance of EncryptResponse.
Parameters
d1
plaintext | the plaintext to encrypt. |
associatedData | the attached associated data. |
groupIds | additional groups to add to the access list. |