PKCS5 PBKDF2 HMAC
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_pbkdf2 } = Cryptopp.keyDerivation;
const derived = pkcs5_pbkdf2(str, 'salt', 'SHA256', 1024);
Parameters
| Parameter | Type | Required |
|---|---|---|
| data | string ArrayBuffer | ✅ |
| salt | string ArrayBuffer | ✅ |
| hash | Name of any supported hash | ✅ |
| iterations | number | ✅ |