Skip to content
docs

VaultOptions

Defined in: vault.ts:126

optional crypto?: Crypto

Defined in: vault.ts:137

Defaults to globalThis.crypto; injectable for tests.


optional iterations?: number

Defined in: vault.ts:131

PBKDF2 iterations for v1 envelopes (default and minimum VAULT_DEFAULT_ITERATIONS).


optional kdf?: "scrypt" | "pbkdf2"

Defined in: vault.ts:129

KDF for NEW envelopes and re-seals. Default scrypt (v2); 'pbkdf2' writes v1 (tests, or a build that must stay FIPS-only).


optional onProgress?: (fraction) => void

Defined in: vault.ts:135

Progress of the scrypt derivation, 0..1 — the unlock screen’s bar.

number

void


optional scrypt?: object

Defined in: vault.ts:133

scrypt cost for v2 envelopes (default VAULT_SCRYPT; not below VAULT_MIN_SCRYPT).

N: number

p: number

r: number


storage: VaultStorage

Defined in: vault.ts:127