Replaced crypt($password, '$6$') with password_hash and password_verify in order to produce salted hashes from passwords.