VaultOptions
Defined in: vault.ts:126
Properties
Section titled “Properties”crypto?
Section titled “crypto?”
optionalcrypto?:Crypto
Defined in: vault.ts:137
Defaults to globalThis.crypto; injectable for tests.
iterations?
Section titled “iterations?”
optionaliterations?:number
Defined in: vault.ts:131
PBKDF2 iterations for v1 envelopes (default and minimum VAULT_DEFAULT_ITERATIONS).
optionalkdf?:"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).
onProgress?
Section titled “onProgress?”
optionalonProgress?: (fraction) =>void
Defined in: vault.ts:135
Progress of the scrypt derivation, 0..1 — the unlock screen’s bar.
Parameters
Section titled “Parameters”fraction
Section titled “fraction”number
Returns
Section titled “Returns”void
scrypt?
Section titled “scrypt?”
optionalscrypt?: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
Section titled “storage”storage:
VaultStorage
Defined in: vault.ts:127