<@U010F2N7G2X> Following from the performance issu...
# talk-hydra
h
@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
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
Higher is slower
h
Ok, thanks