https://www.ory.sh/ logo
#talk-hydra
Title
# talk-hydra
h

hallowed-postman-21092

03/04/2022, 5:16 AM
@User Following from the performance issue that I ask you before about
BCRYPT_COST
. I was wondering if it better to set it with a high number, right?
BCRYPT_COST=8
to
BCRYPT_COST=10
p

proud-plumber-24205

03/04/2022, 7:06 AM
Hi @User Yes you can start high and go lower. From the configurations document,
bcrypt
is by default 10
## hashers ##
#
# Configures hashing algorithms. Supports only BCrypt at the moment.
#
hashers:
## bcrypt ##
#
# Configures the BCrypt hashing algorithm used for hashing Client Secrets.
#
bcrypt:
## cost ##
#
# Sets the BCrypt cost. The higher the value, the more CPU time is being used to generate hashes.
#
# Default value: 10
#
# Minimum value: 4
#
# Maximum value: 31
#
# Set this value using environment variables on
# - Linux/macOS:
_# $ export OAUTH2_HASHERS_BCRYPT_COST=<value>_
# - Windows Command Line (CMD):
_# > set OAUTH2_HASHERS_BCRYPT_COST=<value>_
#
cost: 4
https://www.ory.sh/docs/hydra/reference/configuration
h

high-optician-2097

03/04/2022, 7:09 AM
Higher is slower
h

hallowed-postman-21092

03/04/2022, 4:10 PM
Ok, thanks
2 Views