Argon2 hash() method will not accept a `salt` kwarg
On the documentation page for Argon2 it seems like the hash function should accept a passed salt (rather than autogenerating one).
However, when I try to do something like pwd_context.hash("blah", salt="hi")
(where pwd_context
is a CryptContext
set to Argon2), I get a TypeError: hash() got an unexpected keyword argument 'salt'
.
I took a look at what I think the code is that is preventing the salt kwd
and it looks like it is not setup to accept a salt
kwd.
I would advocate that the hash()
method for Argon2 should be able to accept that kwd.