riverrun/pbkdf2_elixir

Custom rounds number option not taken

andrew92010 opened this issue · 1 comments

Hi,
I've added the config line to set a custom number of rounds as a test but it's not working.
config :pbkdf2_elixir, rounds: 1

(I'm in DEV mode, does it only works in TEST mode?)

It should work in dev env as well. You can also try setting the rounds as an option when calling hash_password or hash_pwd_salt.

For example:

hash = Pbkdf2.hash_pwd_salt("password", rounds: 1)