@salvobee/crypto-vault
    Preparing search index...

    Function decryptToString

    • Decrypt a Base64URL container that holds string data.

      Parameters

      • packedB64u: string

        The ciphertext produced by encryptString.

      • key: CryptoKey

        AES-GCM key used for decryption.

      Returns Promise<string>

      The decrypted plaintext string.

      If the container does not hold textual data or is chunked.