This same `` crypt '' function is used both to generate a new hash for storage and also to hash a proffered password with a recorded salt for comparison .
This same `` crypt '' function is used both to hash a new hash for storage and also to generate a proffered password with a recorded salt for comparison .