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

    Interface BaseMeta

    Metadata stored in the clear alongside the ciphertext.

    In format v2 the clear meta is intentionally minimal — only the fields the reader needs before decryption are kept here (type, alg, iv, single/chunked). Sensitive fields (mime, size, compressed, chunkSize) live inside the encrypted payload and are surfaced only after authentication.

    Legacy v1 containers also carried mime/size/compressed/chunkSize in this object; those fields remain optional so the reader can parse them when decoding v1 blobs. They are never written by current writers.

    interface BaseMeta {
        alg: string;
        chunked?: boolean;
        chunkSize?: number;
        compressed?: boolean;
        iv?: string;
        mime?: string;
        single?: boolean;
        size?: number;
        type: "text" | "blob";
    }
    Index

    Properties

    alg: string
    chunked?: boolean
    chunkSize?: number

    v1 only — never written by v2 writers.

    compressed?: boolean

    v1 only — never written by v2 writers.

    iv?: string
    mime?: string

    v1 only — never written by v2 writers.

    single?: boolean
    size?: number

    v1 only — never written by v2 writers.

    type: "text" | "blob"