Information on how to generate the key from a passphrase.

interface PassphraseInfo {
    algorithm: "m.pbkdf2";
    bits?: number;
    iterations: number;
    salt: string;
}

Properties

algorithm

The algorithm to be used to derive the key.

bits?: number

The number of bits to generate. Defaults to 256.

iterations: number

The number of PBKDF2 iterations to use.

salt: string

The salt to be used for PBKDF2.