Auth0 Home Blog Docs

Bulk Import tool with hashed password

I am trying to import users using webtask - auth0-user-import-export/import which accepts json file.
below is json i am uploading:


but it gives error like

Unable to import user "":
            	Error in passwordHash property - String does not match pattern ^\$2[ab].........

when i generated hash using below script it says “Password is valid” using bcrypt algo.

$options = [
    'cost' => 10,

$hash=password_hash("ABC123", PASSWORD_BCRYPT, $options);
echo $hash;

Without “password_hash” script works fine.

please guide in this how can i make it work.
Thank you in advance!

Your hashes have a $2y prefix which suggest they originate from the crypt_blowfish (PHP) implementation which is the one I believe that uses those prefixes in order to distinguish between hashes generated by a previous version of the same implementation which had a bug. (see

It should be doable for you to just replace $2y with $2a and try again; this should meet the format requirement and still allow to verify the passwords correctly.

Thank you sou much :slight_smile:
this prefix update works fine.