decrypt static method

Uint8List decrypt(
  1. Uint8List cipherText,
  2. Uint8List nonce,
  3. Uint8List publicKey,
  4. Uint8List secretKey,
)

Verifies and decrypts a cipher text produced by encrypt.

Implementation

static Uint8List decrypt(Uint8List cipherText, Uint8List nonce,
        Uint8List publicKey, Uint8List secretKey) =>
    Sodium.cryptoBoxOpenEasy(cipherText, nonce, publicKey, secretKey);