Skip to content
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

Allow for larger and variable length salts in the check function - fixes #13 #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eigenraven
Copy link

This patch fixes #13 by allowing for variable length salts, it also allows for longer salts by separating out the default salt length (which remains at 16) ,used for encrypting new passwords in the module, from the maximum salt length (set to 64 - same as the max DK size for sha512, as larger salts would most likely be meaningless) that is used during verification against existing records.

This is a cleaned up version of a patch I've been using for the last year or so in an LDAP directory populated by data (including password hashes in pbkdf2) from a Django database, and it has been working well so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Salt size is hardcoded for check function?
1 participant