Tool
PHP Hash Generator
Compute a SHA-256, SHA-384, or SHA-512 digest in your browser, and see why that is not a PHP password hash.
Limitations. A browser SHA digest is not password_hash(), bcrypt, or Argon2id. Do not store it as a password. Do not paste a password you still use.
How to use it
Enter non-secret text, choose a SHA algorithm, and hash it locally. The PHP password_hash() example is documentation only and is not executed.
What PHP password storage actually uses
The lesson on password hashing says to store passwords with password_hash($password, PASSWORD_DEFAULT) and check them with password_verify(). A SHA digest from this page is the fast kind of hash that lesson says not to use for passwords. The snippet below is documentation. This page does not run PHP.
<?php
$hash = password_hash($password, PASSWORD_DEFAULT);
$ok = password_verify($password, $hash);
// hash('sha256', $password) is not a substitute.