Create User - Encrypting or hashing the pasword

Hi - I’m trying to create new users from my application using POST api/v2/users api. I didn’t find options to encrypt or sending an hash value for the password. Even if I try to send a hashvalue, it get’s rejected by Auth0. I’m not comfortable sending password as plain text.

Appreciate any help on this.

Thanks.

1 Like

If you want to send hashed passwords to Auth0, you can use the bulk import endpoint, there you’ll find the password_hash property.

When users are created, Auth0 uses bcrypt to secure the password. Importing hashed passwords lets users keep their passwords for a smoother experience. Compatible passwords should be hashed using bcrypt $2a$ or $2b$ and have 10 saltRounds.

Please check:
https://auth0.com/docs/users/guides/bulk-user-imports
https://auth0.com/docs/users/references/bulk-import-database-schema-examples