Crypto Edge
    Preparing search index...

    Function decrypt

    • Decrypt AES-GCM ciphertext produced by encrypt.

      Expects format: iv (12 bytes) || ciphertext || tag

      Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>

      The decrypted plaintext bytes.

      const plaintext = await decrypt({ key, ciphertext: encrypted.ciphertext });