Pbes2EncryptionOptions
Pbes2EncryptionOptions
Input for encryptPbes2.
ts
interface Pbes2EncryptionOptions {
readonly password: string;
readonly iterations?: number;
readonly salt?: Uint8Array;
readonly iv?: Uint8Array;
readonly cipher?: Pbes2EncryptionScheme;
readonly prf?: Pbes2Prf;
}Properties
readonlypassword:string— Password fed to PBKDF2 for key derivation.readonlyiterations?:number— PBKDF2 iteration count, an integer from 1 to 4294967295. Default:100_000.readonlysalt?:Uint8Array— PBKDF2 salt. Default: 16 cryptographically random bytes.readonlyiv?:Uint8Array— AES-CBC initialization vector. Default: 16 cryptographically random bytes.readonlycipher?:Pbes2EncryptionScheme— AES-CBC cipher. Default:'AES-256-CBC'.readonlyprf?:Pbes2Prf— PBKDF2 PRF. Default:'HMAC-SHA-256'.