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

Encrypt passwords using bcrypt, keep sha256 for backwards compatibility #26

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

Conversation

Jonny007-MKD
Copy link

The number of rounds can be specified by BCRYPT_ROUNDS environment variable. The default value is 14, as it takes 600 ms on my machine. As we currently only support bcrypt and plain sha256 hashes, we can distinguish them by the leading '$' of bcrypt hashes. Upgrading hashes on login is not yet implemented.

@sonicnkt
Copy link
Owner

Thanks for the contribution. As i merged some other PRs first there is now a VERY minimal conflict. If you have the time to fix this in your branch i will merge it right away otherwise i will probably do it myself in the next days as i want to get into glauth-ui dev again.

Any plans for implementing automatic password migration? Otherwise i will add a function for this to the login mechanism myself :)

The number of rounds can be specified by BCRYPT_ROUNDS environment variable. The default value is 14, as it takes 600 ms on my machine.
As we currently only support bcrypt and plain sha256 hashes, we can distinguish them by the leading '$' of bcrypt hashes.
Upgrading hashes on login is not yet implemented.
@Jonny007-MKD
Copy link
Author

done :)

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