Extracted from Pike v8.0 release 164 as of 2016-02-09.
   

Method __builtin.Nettle.Hash()->crypt_hash()


Method crypt_hash

string crypt_hash(string password, string 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).

See also

crypt_md5()