encryptSync abstract method

SecretBox encryptSync(
  1. List<int> clearText, {
  2. required SecretKeyData secretKey,
  3. List<int>? nonce,
  4. List<int> aad = const <int>[],
  5. int keyStreamIndex = 0,
})

Synchronous version of encrypt.

Implementation

SecretBox encryptSync(
  List<int> clearText, {
  required SecretKeyData secretKey,
  List<int>? nonce,
  List<int> aad = const <int>[],
  int keyStreamIndex = 0,
});