Does the crypt() function in PHP return the salt if you let crypt() generate the salt? [closed]

Right out of the PHP Doc (emphasis mine):

Parameters:

str
The string to be hashed.

salt
An optional salt string to base the hashing on. If not provided, the behaviour is defined by the algorithm implementation and can lead to unexpected results.

Leave a Comment