Skip to content

VaultParams

The settings that turn a password into a key. They are not secret. Keep them next to what the key protects, because you need them to make the same key again.

readonly kdf: "scrypt";

The key derivation function, which turns the password into a key. It is always scrypt.


readonly N: number;

The cost parameter of scrypt: a power of two that determines how much work is required. It is never lower than 2^15.


readonly p: number;

The parallelization parameter of scrypt. It is never lower than 1.


readonly r: number;

The block size parameter of scrypt. It is never lower than 8.


readonly salt: string;

A random text that is different for each key. It ensures that two identical passwords produce different keys.