Skip to main content
Version: 0.3.0

PKCS5 PBKDF1

Note from Crypyto++ Wiki: New applications should consider using a modern KDF, like HKDF. HKDF is state of the art extract-then-expand derivation function with provable security properties.

const { pkcs5_pbkdf1 } = Cryptopp.keyDerivation;
const derived = pkcs5_pbkdf1(str, 'salt', 'SHA256', 1024);

Parameters

ParameterTypeRequired
datastring
ArrayBuffer
saltstring
ArrayBuffer
hashName of any supported hash
iterationsnumber

Returns: Based on data input type: ArrayBuffer or string