decryptStringDetached static method

String decryptStringDetached(
  1. Uint8List cipher,
  2. Uint8List mac,
  3. Uint8List nonce,
  4. Uint8List publicKey,
  5. Uint8List secretKey,
)

Verifies and decrypts a detached cipher text and tag.

Implementation

static String decryptStringDetached(Uint8List cipher, Uint8List mac,
    Uint8List nonce, Uint8List publicKey, Uint8List secretKey) {
  final m = decryptDetached(cipher, mac, nonce, publicKey, secretKey);
  return utf8.decode(m);
}