Skip to content

bCrypt is very slow, how to solve #1485

Closed

Description

@lenew

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?

Activity

  1. framp commented on Apr 14, 2016

    @framp
    Contributor

    bcrypt is slow by design

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

  2. drew-gross commented on Apr 14, 2016

    @drew-gross
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions