Given that the rule of thumb is to store salted hashes of the password string, rather than encrypted, why does PHP crypt()use DES-based algorithms? Isn't DES a cryptographic algorithm? The manual says:
... crypt () will return the hashed string using the standard Unix DES algorithm or alternative algorithms that may be available on the system ...
I understand that it crypt()uses only the algorithm implemented by the system. And, of course, DES is implemented as an encryption algorithm, not a custom hash algorithm for crypt.
PS - I know that DES was in the past, and no one else should use it.
source
share