decryptDetached static method

Uint8List decryptDetached(
  1. Uint8List cipher,
  2. Uint8List mac,
  3. Uint8List nonce,
  4. Uint8List publicKey,
  5. Uint8List secretKey,
)

Verifies and decrypts a detached cipher text and tag.

Implementation

static Uint8List decryptDetached(Uint8List cipher, Uint8List mac,
        Uint8List nonce, Uint8List publicKey, Uint8List secretKey) =>
    Sodium.cryptoBoxOpenDetached(cipher, mac, nonce, publicKey, secretKey);