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

feat: add "rounds" possibility #66

Merged
merged 3 commits into from
Jan 17, 2023
Merged

Conversation

furiozo-ga
Copy link
Contributor

a slight modification of the salt extraction to allow verification of hashes of the form $id$rounds=yyy$salt$encrypted, as documented in the crypt(3) man page.
the encrypt method is fine as you can call it as :
crypt.encrypt('pass','rounds=99999$'+crypt.createSalt())
and it works

@jimmyolo
Copy link
Owner

jimmyolo commented Dec 9, 2022

@furiozo-ga LGTM, can you write a simple test & update the document (add an example should be fine)

@jimmyolo jimmyolo merged commit 3d5a183 into jimmyolo:master Jan 17, 2023
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.

2 participants