encryptStringDetachedAfternm static method

DetachedCipher encryptStringDetachedAfternm(
  1. String value,
  2. Uint8List nonce,
  3. Uint8List k
)

Encrypts a string message with a key and a nonce, returning the encrypted message and authentication tag

Implementation

static DetachedCipher encryptStringDetachedAfternm(
        String value, Uint8List nonce, Uint8List k) =>
    encryptDetachedAfternm(utf8.encoder.convert(value), nonce, k);