# Custom hash function - import possible?

**URL:** <https://community.auth0.com/t/custom-hash-function-import-possible/42933>\
**Category:** Get Help\
**Tags:** password-hash, jwt, hashing\
**Created:** [May 13, 2020, 2:59pm UTC](https://community.auth0.com/t/custom-hash-function-import-possible/42933 "2020-05-13T14:59:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![qutorial](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/qutorial/32/21250_2.png) [@qutorial](https://community.auth0.com/u/qutorial)\
**Post date:** [May 13, 2020, 2:59pm UTC](https://community.auth0.com/t/custom-hash-function-import-possible/42933/1 "2020-05-13T14:59:00Z")

</div>

Dear community, we use a special argon2-based hashing function for our customer logins.  
Could we migrate to Auth0 by providing the hashing algorithm implementation (in any language you prefer) and the database?  
Could we serve as a federated auth provider to enable auth0?

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [May 14, 2020, 2:43pm UTC](https://community.auth0.com/t/custom-hash-function-import-possible/42933/2 "2020-05-14T14:43:57Z")

</div>

You could use lazy migration.

> **[Configure Automatic Migration from Your Database](https://auth0.com/docs/manage-users/user-migration/configure-automatic-migration-from-your-database)**
>
> Learn how to enable automatic user migration with your custom database.

This will import the user into Auth0 with their existing password, using your custom hashing function on the legacy credentials DB and using the standard Auth0 hashing function once they are imported.

John
