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

bCrypt is very slow, how to solve #1485

Closed
lenew opened this issue Apr 14, 2016 · 2 comments
Closed

bCrypt is very slow, how to solve #1485

lenew opened this issue Apr 14, 2016 · 2 comments

Comments

@lenew
Copy link

lenew commented Apr 14, 2016

User Login api is very slow due to bCrypt. About 4 queries per sec on Amazon EC2 single core machine. Node prof tools shows that about 89% cpu cycles are used by bCrypt function "encipher".
Any good solution to this?

@framp
Copy link
Contributor

framp commented Apr 14, 2016

bcrypt is slow by design

Maybe parse-server could offer some ENV_VARS to configure bcrypt?

@drew-gross
Copy link
Contributor

Thats correct, this is by design. Tuning bcrypt might be a reasonable solution, but making it work with existing passwords would not be easy. It's not in our roadmap but we would welcome PRs!

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

No branches or pull requests

3 participants