encryptString static method

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

Encrypts a string message with a key and a nonce.

Implementation

static Uint8List encryptString(String value, Uint8List nonce,
        Uint8List publicKey, Uint8List secretKey) =>
    encrypt(utf8.encoder.convert(value), nonce, publicKey, secretKey);