pike.git / lib / modules / Crypto.pmod / Password.pmod

version» Context lines:

pike.git/lib/modules/Crypto.pmod/Password.pmod:260:   //! @note   //! This function was added in Pike 7.8.755.   //!   //! @seealso   //! @[verify()], @[predef::crypt()], @[Nettle.crypt_md5()],   //! @[Nettle.Hash()->crypt_hash()]   string(7bit) hash(string(8bit) password, string(7bit)|void scheme,    int|void rounds)   {    function(string(8bit), string(7bit), int:string(8bit)) crypt_hash; -  int salt_size = 16; +  int(0..) salt_size = 16;    int default_rounds = 5000;       string(7bit) render_crypt_hash(string(7bit) scheme, string(7bit) salt,    string(8bit) hash, int rounds)    {    if (rounds != default_rounds) {    salt = "rounds=" + rounds + "$" + salt;    }       // We claim this to be a string(7bit) string, even though we add