Pike v8.0 release 1738

Method Nettle.Hash()->crypt_hash()


Method crypt_hash

string(7bit) crypt_hash(string(8bit) password, string(8bit) salt, int rounds)

Description

Password hashing function in crypt_md5()-style.

Implements the algorithm described in http://www.akkadia.org/drepper/SHA-crypt.txt.

This is the algorithm used by crypt(2) in methods $5$ (SHA256) and $6$ (SHA512).

The password memory will be cleared before released.

See also

crypt_md5()