encrypt abstract method

List<int> encrypt(
  1. List<int> nonce,
  2. List<int> plaintext, {
  3. List<int>? associatedData,
  4. List<int>? dst,
})

Encrypts the provided plaintext along with a nonce, and optional associated data. Returns the ciphertext and may write the result into the dst if provided.

Implementation

List<int> encrypt(
  List<int> nonce,
  List<int> plaintext, {
  List<int>? associatedData,
  List<int>? dst,
});