# Bulk user import using "scrypt algorithm" does not allow to login to Auth0 universal login

**URL:** <https://community.auth0.com/t/bulk-user-import-using-scrypt-algorithm-does-not-allow-to-login-to-auth0-universal-login/87503>\
**Category:** Get Help\
**Tags:** api, passwordless, login, auth0\
**Created:** [July 22, 2022, 8:44pm UTC](https://community.auth0.com/t/bulk-user-import-using-scrypt-algorithm-does-not-allow-to-login-to-auth0-universal-login/87503 "2022-07-22T20:44:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pythonandfriday](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pythonandfriday/32/37822_2.png) [@pythonandfriday](https://community.auth0.com/u/pythonandfriday)\
**Post date:** [July 22, 2022, 8:44pm UTC](https://community.auth0.com/t/bulk-user-import-using-scrypt-algorithm-does-not-allow-to-login-to-auth0-universal-login/87503/1 "2022-07-22T20:44:18Z")

</div>

Hello everyone!

I’m using endpoint `/api/v2/jobs/users-imports` for importing users.

```auto
[
  {
    "email": "ilovefreethrows@nba.com",
    "name": "Shaquille O’Neal",
    "email_verified": false,
    "custom_password_hash": {
      "algorithm": "scrypt",
      "hash": {
        "value": "1e75a814d5e810dd4b4b6e4ad8bd58d09fc8ab28dbf250d74dee42146fa1310c",
        "encoding": "hex"
      },
      "salt": {
        "value": ".fGIyA/yOjE=",
        "encoding": "base64"
      },
      "keylen": 32,
      "cost": 16384
    }
  }
]

```

original password - `qweqwe123`

the password looks like this in the original db - `16384$8$1$.fGIyA/yOjE=$1e75a814d5e810dd4b4b6e4ad8bd58d09fc8ab28dbf250d74dee42146fa1310c`

After API call, users are created successfully

 ![Screenshot 2022-07-22 at 23.35.00](https://global.discourse-cdn.com/auth0/original/3X/a/0/a0a931e84fe965de2c4f900674980705b93f956e.png)

But I cannot log in to Auth0 universal login

 ![Screenshot 2022-07-22 at 23.36.57](https://global.discourse-cdn.com/auth0/original/3X/0/a/0a520560b1aabfb16755504b5e59b7cb2f9166ea.png)

Could you help me sort out this scrypt hash algorithm?

---

<div class="post-metadata">

**Author:** ![pythonandfriday](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pythonandfriday/32/37822_2.png) [@pythonandfriday](https://community.auth0.com/u/pythonandfriday)\
**Post date:** [July 23, 2022, 5:15am UTC](https://community.auth0.com/t/bulk-user-import-using-scrypt-algorithm-does-not-allow-to-login-to-auth0-universal-login/87503/2 "2022-07-23T05:15:27Z")

</div>

I got it

salt must first be converted to base64 format:

Before:

```auto
"salt": {
  "value": ".fGIyA/yOjE=",
  "encoding": "base64"
},

```

After:

```auto
"salt": {
  "value": "LmZHSXlBL3lPakU9",
  "encoding": "base64"
},

```

 ![Screenshot 2022-07-23 at 08.04.48](https://global.discourse-cdn.com/auth0/original/3X/a/d/ad3a0230404b93e1be01a389c0418b6a92e85153.jpeg)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 28, 2022, 1:57pm UTC](https://community.auth0.com/t/bulk-user-import-using-scrypt-algorithm-does-not-allow-to-login-to-auth0-universal-login/87503/3 "2022-07-28T13:57:20Z")

</div>

Woohooo perfect! Thanks for sharing that with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 28, 2022, 1:57pm UTC](https://community.auth0.com/t/bulk-user-import-using-scrypt-algorithm-does-not-allow-to-login-to-auth0-universal-login/87503/4 "2022-07-28T13:57:23Z")

</div>


