How to import customers from an external system, which stores the passwords hashes without a salt?

thank you guy,
how to only use MD5, not salt?
because password from other system.Only md5.

You need:

  1. Add an attribute to the customer entity type, which will contain the information whether a customer is imported from an external system (which stores the customers password md5 hashes without a salt).
  • Import the customers from the external system.
  • Create a plugin to the standard customer authentication procedure, which will check whether the currently authenticated customer is impoorted from the external system, and will authenticate it without a salt.

Here is how a password’s hash is generated in Magento 2:

https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Encryption/Encryptor.php#L155-L162


thank you very much.