RustCrypto / password-hashes

Password hashing functions / KDFs
677 stars 84 forks source link

argon2: add `Params::DEFAULT` constant #439

Closed tarcieri closed 1 year ago

tarcieri commented 1 year ago

Allows for accessing default parameters in const contexts

C0D3-M4513R commented 1 year ago

Yes, but not as customizable. I cannot store a custom const default Params object

tarcieri commented 1 year ago

That seems at odds with the notion of a default, especially in this context: we have specially selected the OWASP recommended parameters specifically so you don't have to customize them.

If you want customization, by definition you are not using the default.