PHP 8 · Web, security and database
Hash a password
Hash passwords with a strong algorithm and a built-in salt. Never store plain text.
$hash = password_hash($password, PASSWORD_DEFAULT);
PHP 8 · Web, security and database
Hash passwords with a strong algorithm and a built-in salt. Never store plain text.
$hash = password_hash($password, PASSWORD_DEFAULT);
Was this page helpful?