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

version» Context lines:

pike.git/lib/modules/Crypto.pmod/Password.pmod:345:    break;       default:    error("Unsupported hashing scheme: %O\n", scheme);    }       if (!rounds) rounds = default_rounds;       // NB: The salt must be printable.    string(7bit) salt = -  MIME.encode_base64(Crypto.Random.random_string(salt_size))[..salt_size-1]; +  MIME.encode_base64(random_string(salt_size))[..salt_size-1];       string(8bit) hash = crypt_hash(password, salt, rounds);       return render_hash([string(7bit)]scheme, salt, hash, rounds);   }