buddy-hashers icon indicating copy to clipboard operation
buddy-hashers copied to clipboard

must-update? should also accept explicit parameters

Open coreagile opened this issue 1 year ago • 0 comments

For my uses, the default parameters for :argon2id aren't sufficient for my hardware, so I hash with an extra iteration. Sadly, when I verify a password, it always comes back with {:update true} because passwords are always hashed with custom parameters.

I should be able to pass those explicit parameters to verify, so it can then pass those along to must-update?

For example:

(hashers/verify attempt encrypted {:limit #{:argon2id}, :params {:iterations 3, :memory 65536, :parallelism 1}})

Alternatively, we should be able to reset the global parameters.

coreagile avatar Apr 22 '24 15:04 coreagile