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

    Function decryptToBlob

    • Decrypt a Base64URL container that holds binary data.

      Parameters

      • packedB64u: string

        Ciphertext produced by encryptBlob.

      • key: CryptoKey

        AES-GCM key used for decryption.

      • Optionaloptions: DecryptBlobOptions

        Output selection and progress configuration.

      Returns Promise<Blob>

      The decrypted binary content in the requested format.

    • Decrypt a Base64URL container that holds binary data.

      Parameters

      • packedB64u: string

        Ciphertext produced by encryptBlob.

      • key: CryptoKey

        AES-GCM key used for decryption.

      • options: DecryptBlobOptions & { output: "uint8array" }

        Output selection and progress configuration.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      The decrypted binary content in the requested format.

    • Decrypt a Base64URL container that holds binary data.

      Parameters

      • packedB64u: string

        Ciphertext produced by encryptBlob.

      • key: CryptoKey

        AES-GCM key used for decryption.

      • options: DecryptBlobOptions & { output: "buffer" }

        Output selection and progress configuration.

      Returns Promise<NodeBuffer>

      The decrypted binary content in the requested format.