CryptContext.verify() should only pass keywords listed in hash.context_kwds
*Created originally on Bitbucket by Anonymous* I have a CryptContext that has two hashes, one of which (HashA) supports a context keyword foo, and another (HashB) which does not. When calling context.verify(..., foo="test"), HashB's verify will raise an exception in the from_string method due to the unexpected keyword argument. It seems like CryptContext ought to be inspecting the context_kwds of a handler to see if it supports the arguments that it is about to pass. Supporting a legacy password scheme will be difficult without being able to use context keywords.
issue