Bulk importing unix crypt(1) md5 passwords

Hi, does anyone know if it’s possible to bulk import users with a custom_password_hash from the MD5 schema of the posix crypt(1) function?

The password hashes I have look like…
$1$saltsalt$qjXMvbEw8oaL.CzflDtaK/
…and were created by something like eg…
echo password | openssl passwd -1 -salt 'saltsalt' -stdin
…or…
php -r "print (crypt('password', '\$1\$saltsalt'));"

I can’t find this schema in the docs, but it’s reasonably standard, at least in older systems, so I was wondering whether I was missing something, or maybe whether there’s an ETA for auth0 supporting it.

1 Like

Hi @teasel.ian,

Welcome to the Auth0 Community!

I understand that you have questions regarding bulk importing your users.

First, it is possible to use MD5 as your custom password hashing algorithm. You’ll also be able to specify the salt value used to generate the hash.

In the example schema, look for the hash and salt objects in the custom_password_hash object. Defining these values according to your custom password hash should allow you to import your users.

Please let me know if you have any further questions or concerns.

Thank you.

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