decryptDetached static method

Uint8List decryptDetached(
  1. Uint8List cipher,
  2. Uint8List mac,
  3. Uint8List nonce,
  4. Uint8List key,
)

Verifies and decrypts a detached cipher text and tag.

Implementation

static Uint8List decryptDetached(
        Uint8List cipher, Uint8List mac, Uint8List nonce, Uint8List key) =>
    Sodium.cryptoSecretboxOpenDetached(cipher, mac, nonce, key);