Function
password_hash
Synopsis
password_hash(string, mixed ...): string
- Area
Runtime\PS\Crypto\password_hashareas
Description
password_hash returns a salted hash of $password under $algo, which is PASSWORD_BCRYPT, PASSWORD_ARGON2ID or PASSWORD_ARGON2I. $options takes "cost" for bcrypt and "memory_cost", "time_cost" and "threads" for argon2. The salt comes from the system CSPRNG.
Usage
$value = password_hash($arguments);
$fn = password_hash(...);