There was a server on Ubuntu with Apache and PHP. The site was authenticated (Apache Basic Authentication). Passwords were generated in PHP like this:
$password=crypt($password); What hash method was configured, and how, I was not interested. Generates passwords, yes and good.
Transferred the site to a new server with Ubuntu 15.04, PHP 5.6.4, Apache 2.4.10. And he stopped letting passwords like:
user1:$6$CB/mFomB$7RPHkrzaOAzxqkUYQXccePVACerVsZfED.hoDofBnHNSfx5NOUnhtcKB6ImOrE.d/xDNMU6B7tqipWm1Qzw3k. user2:$6$rbBZzWeo$lmBqIwiLcYEblULhc.oUhYCEC.YEokOJ1lpnyyUgCjWs6B4e6JXOOe0fVPAa9TasdpvWJgd8xeoi.VYHtfc3j/ Determined that this is a SHA-512 hash.
I tried to generate a hash using htpasswd, the hash is short, but everything works.
Can you please tell Apache to check passwords in SHA-512?
$password = crypt ($password,'$6$');probably on different systems different hashing algorithms are supported. ... or I do not quite understand the essence of the problem - Nikola Tesla