jlouis / enacl

Erlang bindings for NaCl / libsodium
MIT License
197 stars 59 forks source link

Allow specifying algorithm for pwhash #49

Closed kuon closed 4 years ago

kuon commented 4 years ago

While default should be fine for most usage, it might be needed to be backward compatible with earlier libsodium version which used argon2i13 instead of the newer argon2id13 hash algorithm.

This PR add a fifth argument to the pwhash function that accepts default, argon2i13 and argon2id13 atoms.