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 cycles ENV var #40

Open
kaievns opened this issue Aug 3, 2016 · 2 comments
Open

Bcrypt cycles ENV var #40

kaievns opened this issue Aug 3, 2016 · 2 comments

Comments

@kaievns
Copy link

kaievns commented Aug 3, 2016

I think this service should accept an ENV var that will specify how many encryption cycles bcrypt should use.

Basically the problem is that production grade bcrypt takes quite a bit of time and it slows down tests significantly. I want to be able to specify something like ENCRYPT_CYCLES=1 in a test environment and make the auth service to create new records faster.

Also this will allow us to use more cycles in security critical apps

@davidbanham
Copy link
Contributor

👍

@davidbanham
Copy link
Contributor

The var we use on other projects is HASH_ROUNDS. I think it'd make sense to mirror that here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants