We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
crypt does not use Base64, hence providing a crypt hash to parseHash fails with a Base64 exception Crypt uses it's own keymap (see e.g. here).
crypt transposes the hash bytes before encoding them (see sha512-crypt.c, sha256-crypt.c, and md5-crypt.c).
parseHash does not handle $round=10000$ parameters as 2nd component
$round=10000$
You might want to add the following test case
$6$rounds=10000$tGiXIng0KHBPBHhk$84T63BF34OMoG4TeoGV7ReJ/U/OAtfa9iFOXQ/Wsd4s3N2wBcdUCPllpkzgYbFfagBcIZxyjqcfvL.KjdiBFJ1
which encrypts the password mypass. Also passlib might be a useful inspiration for a correct implementation.
mypass
The text was updated successfully, but these errors were encountered:
No branches or pull requests
crypt does not use Base64, hence providing a crypt hash to parseHash fails with a Base64 exception
Crypt uses it's own keymap (see e.g. here).
crypt transposes the hash bytes before encoding them (see sha512-crypt.c, sha256-crypt.c, and md5-crypt.c).
parseHash does not handle
$round=10000$
parameters as 2nd componentYou might want to add the following test case
which encrypts the password
mypass
.Also passlib might be a useful inspiration for a correct implementation.
The text was updated successfully, but these errors were encountered: