decrypt static method

Uint8List decrypt(
  1. Uint8List cipherText,
  2. Uint8List nonce,
  3. Uint8List key
)

Verifies and decrypts a cipher text produced by encrypt.

Implementation

static Uint8List decrypt(
        Uint8List cipherText, Uint8List nonce, Uint8List key) =>
    Sodium.cryptoSecretboxOpenEasy(cipherText, nonce, key);