decryptStringDetached static method

String decryptStringDetached(
  1. Uint8List cipher,
  2. Uint8List mac,
  3. Uint8List nonce,
  4. Uint8List key,
)

Verifies and decrypts a detached cipher text and tag.

Implementation

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