Wrappers, such as Comeonin.Bcrypt.hashpwd/2 accept keyword options as the second param, but only the log_rounds value was used. That made it necessary to use functions from Bcrypt directly to generate legacy style hashes.
This patch adds support for the legacy option in Bcrypt.hash_pwd_salt/2, making it possible to generate legacy passwords with a single function.
Wrappers, such as
Comeonin.Bcrypt.hashpwd/2
accept keyword options as the second param, but only thelog_rounds
value was used. That made it necessary to use functions fromBcrypt
directly to generate legacy style hashes.This patch adds support for the
legacy
option inBcrypt.hash_pwd_salt/2
, making it possible to generate legacy passwords with a single function.