Open zigazajc007 opened 4 months ago
Argon2 in Bun.password.hash function does not allow to change Hash Length and Parallelism Factor.
Expose parallelismFactor and hashLength parameters in Bun.password.hash function
await Bun.password.hash(data.password, { algorithm: 'argon2id', memoryCost: 64*1024, timeCost: 1, parallelismFactor: 4, hashLength: 32 });
No response
https://www.rfc-editor.org/rfc/rfc9106.html#name-parameter-choice
parallelismFactor 4 is recommended by RFC.
What is the problem this feature would solve?
Argon2 in Bun.password.hash function does not allow to change Hash Length and Parallelism Factor.
What is the feature you are proposing to solve the problem?
Expose parallelismFactor and hashLength parameters in Bun.password.hash function
What alternatives have you considered?
No response