Skip to main content

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

plaintextthe plaintext to encrypt.
associatedDatathe 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

plaintextthe plaintext to encrypt.
associatedDatathe attached associated data.
groupIdsadditional groups to add to the access list.