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
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=1in 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