decrypt static method

Uint8List decrypt(
  1. Uint8List cipherText,
  2. Uint8List nonce,
  3. Uint8List key, {
  4. Uint8List? additionalData,
})

Verifies and decrypts a cipher text produced by encrypt.

Implementation

static Uint8List decrypt(Uint8List cipherText, Uint8List nonce, Uint8List key,
        {Uint8List? additionalData}) =>
    Sodium.cryptoAeadChacha20poly1305Decrypt(
        null, cipherText, additionalData, nonce, key);