best-plumber-65600
03/04/2025, 3:19 AMbrief-egg-61061
03/04/2025, 3:19 AMbrief-egg-61061
03/04/2025, 3:19 AMbest-plumber-65600
03/04/2025, 3:20 AMbrief-egg-61061
03/04/2025, 3:21 AMbrief-egg-61061
03/04/2025, 3:21 AMconfig.yml
file. By default, Ory Kratos uses the BCrypt algorithm for hashing passwords, but you can change this to another supported algorithm like Argon2id. However, SSHA512 is not listed as a configurable option for password hashing during user creation in the provided knowledge sources. Here is how you can configure the BCrypt or Argon2id algorithm: ### BCrypt Configuration yaml hashers: algorithm: bcrypt bcrypt: cost: 12
### Argon2id Configuration yaml hashers: algorithm: argon2 argon2: parallelism: 1 memory: 128MB iterations: 3 salt_length: 16 key_length: 32
For more details on configuring password hashing algorithms, you can refer to the [Ory Kratos Passwords Settings documentation](https://www.ory.sh/docs/self-hosted/kratos/configuration/password). If you need to use SSHA512 specifically, it might be necessary to handle it as part of an import process rather than during user creation, as the configuration for user creation does not explicitly support SSHA512.best-plumber-65600
03/04/2025, 3:23 AMbrief-egg-61061
03/04/2025, 3:23 AMbrief-egg-61061
03/04/2025, 3:23 AMjson { "schema_id": "<preset://email>", "traits": { "email": "[email protected]" }, "credentials": { "password": { "config": { "hashed_password": "{SSHA512}xPUl/px+1cG55rUH4rzcwxdOIPSB2TingLpiJJumN2xyDWN4Ix1WQG3ihnvHaWUE8MYNkvMi5rf0C9NYixHsE6Yh59M=" } } } }
This example shows how to import a user with an SSHA512 hashed password. The hashed password is provided directly, and Ory Kratos can handle it during the import process. For more information on importing identities and supported hashing algorithms, you can refer to the [Ory Kratos documentation on importing identities](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#hashed-passwords).