New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PBKDF2 support #62782
Comments
The patch is a proof of concept for PBKDF2 support for the OpenSSL variant of hashlib. It's a thin wrapper around PKCS5_PBKDF2_HMAC() and is deliberately designed as low level API with bytes and input and output types. High level wrappers can do the conversation and choose sensible values for salt, iterations and key length. |
Please use the "y*" format, not "y#". |
Done |
The patch looks good at first sight. It still needs docs and tests :) Just one thing: are we sure PKCS5_PBKDF2_HMAC is defined on old OpenSSL versions, or does it need a #ifdef? |
Here is a new patch with tests, documentation and some minor improvements. The last argument is now called dklen. If dklen is omitted or None than dklen is set to digest size of the hash algorithm. |
Fixed copy n' paste bug in docs. |
New changeset 5fd56d6d3fce by Christian Heimes in branch 'default': |
Thanks Antoine! |
New changeset 0a26ef834a49 by Christian Heimes in branch 'default': |
New changeset 88fac1574049 by Christian Heimes in branch 'default': |
New changeset a15fcb847515 by Christian Heimes in branch 'default': |
New changeset 07fa1ed0d551 by Christian Heimes in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: