Easy interface for generating a hash for a plain text password. Type a plain text password and get his password_hash() hash.
For the maximum security, the Argon2 hashing algorithm will be used as from PHP 7.2.0 or greater, BCrypt otherwise.
Notes:
- The function used is
password_hash()
which is native in PHP, therefore there are no dependencies with an external library. - The password in plain text is sent to the server since the hash is done by PHP. Nothing is stored of course on the server but make sure you're using a SSL connection i.e. the https protocol so everything is encrypted before being sent by your browser.
- The generated hash will start with
$2y$
when theBCRYPT
has been used and with$argon2i$
whenArgon2i
was used.Argon2i
is used when the site is running under PHP 7.2.0 and when the PHP constantPASSWORD_ARGON2I
is defined (seems not the default configuration).
Clone this repository or just get a copy of the index.php and store the file, f.i., on your localhost.
You can also use the interface online without installing anything.
Just type a password in the text box and click on the Hash
button.
You'll then obtain the generated hash and, also, a PHP sample code for showing you how to use the hash.