# Scrypt hash required for Firebase is not the Scrypt hash Auth0 has implemented

**URL:** <https://community.auth0.com/t/scrypt-hash-required-for-firebase-is-not-the-scrypt-hash-auth0-has-implemented/88412>\
**Category:** Get Help\
**Created:** [August 9, 2022, 1:07pm UTC](https://community.auth0.com/t/scrypt-hash-required-for-firebase-is-not-the-scrypt-hash-auth0-has-implemented/88412 "2022-08-09T13:07:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sosmani](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sosmani/32/29048_2.png) [@sosmani](https://community.auth0.com/u/sosmani)\
**Post date:** [August 9, 2022, 1:07pm UTC](https://community.auth0.com/t/scrypt-hash-required-for-firebase-is-not-the-scrypt-hash-auth0-has-implemented/88412/1 "2022-08-09T13:07:30Z")

</div>

This has been asked in the community previously and erroneously assumed that Auth0 since now supports Scrypt algorithm - Firebase users can be seamlessly imported without requiring password changes.

# [Support for scrypt hash algorithm when importing users?](https://community.auth0.com/t/support-for-scrypt-hash-algorithm-when-importing-users/68191)

However, that is not the case Firebase uses a [modified version of Scrypt](https://firebase.google.com/docs/reference/admin/java/reference/com/google/firebase/auth/hash/Scrypt)

So seamless import in this manner is not possible. A possible solution is to use custom database and write your own Scrypt hash matching using now open sourced Firebase Scrypt library.

---

<div class="post-metadata">

**Author:** ![dtsbg](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dtsbg/32/49364_2.png) [@dtsbg](https://community.auth0.com/u/dtsbg)\
**Post date:** [July 27, 2023, 8:09pm UTC](https://community.auth0.com/t/scrypt-hash-required-for-firebase-is-not-the-scrypt-hash-auth0-has-implemented/88412/2 "2023-07-27T20:09:26Z")

</div>

Did you happen to find a solution to this? I’m running into the same problems and not sure the best way around this.

---

<div class="post-metadata">

**Author:** ![sosmani](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sosmani/32/29048_2.png) [@sosmani](https://community.auth0.com/u/sosmani)\
**Post date:** [July 27, 2023, 9:34pm UTC](https://community.auth0.com/t/scrypt-hash-required-for-firebase-is-not-the-scrypt-hash-auth0-has-implemented/88412/3 "2023-07-27T21:34:08Z")

</div>

Yes there is a solution. The solution is to do this:

1. Export out all the Firebase user password hash and salt from the database.
2. Then use Firebase Scrypt algorithm in the get\_user script to validate (Firebase has open sourced the scrypt algo) [firebase-scrypt - npm](https://www.npmjs.com/package/firebase-scrypt)

And if the user successfully logins using the database connection they will get imported and become Auth0 users (Migration will look seamless)

---

<div class="post-metadata">

**Author:** ![dtsbg](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dtsbg/32/49364_2.png) [@dtsbg](https://community.auth0.com/u/dtsbg)\
**Post date:** [July 27, 2023, 10:48pm UTC](https://community.auth0.com/t/scrypt-hash-required-for-firebase-is-not-the-scrypt-hash-auth0-has-implemented/88412/4 "2023-07-27T22:48:51Z")

</div>

Appreciate the response on this. This would only work for a “Drip” migration as the users login but not for a “Bulk” migration, correct?

---

<div class="post-metadata">

**Author:** ![sosmani](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sosmani/32/29048_2.png) [@sosmani](https://community.auth0.com/u/sosmani)\
**Post date:** [July 27, 2023, 11:00pm UTC](https://community.auth0.com/t/scrypt-hash-required-for-firebase-is-not-the-scrypt-hash-auth0-has-implemented/88412/5 "2023-07-27T23:00:27Z")

</div>

That is correct. And that is your best bet as of now. There is no straight forward way unless Auth0 team moved in and creates a bulk mapping of email / salt / hash and then bakes in Firebase Scrypt. This may run afoul regulations also. Who knows?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 10, 2023, 11:00pm UTC](https://community.auth0.com/t/scrypt-hash-required-for-firebase-is-not-the-scrypt-hash-auth0-has-implemented/88412/6 "2023-08-10T23:00:52Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
