Post
Topic
Board Development & Technical Discussion
Re: PBKDF2 questions
by
ranochigo
on 31/03/2021, 13:52:28 UTC
Didn't know this website thank for sharing. Do you know what format are MESSAGE and SALT? I thought parameters must be in binary but inside github :

Code:
export function Pbkdf2HmacSha512(password: Uint8Array, salt: Uint8Array, count: number, length: number): Uint8Array {
  const hmac = new HmacSha512(password);

  return pbkdf2core(hmac, salt, length, count);
}
The format is defined in the BIP39 github specification which is UTF-8 NFKD[1].

[1] https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki#From_mnemonic_to_seed