encrypt static method

Uint8List encrypt(
  1. Uint8List value,
  2. Uint8List nonce,
  3. Uint8List publicKey,
  4. Uint8List secretKey,
)

Encrypts a message with a key and a nonce.

Implementation

static Uint8List encrypt(Uint8List value, Uint8List nonce,
        Uint8List publicKey, Uint8List secretKey) =>
    Sodium.cryptoBoxEasy(value, nonce, publicKey, secretKey);