decryptString static method

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

Verifies and decrypts a cipher text produced by encrypt.

Implementation

static String decryptString(Uint8List cipherText, Uint8List nonce,
    Uint8List publicKey, Uint8List secretKey) {
  final m = decrypt(cipherText, nonce, publicKey, secretKey);
  return utf8.decode(m);
}