PHP Password interface
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.
- 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
BCRYPThas been used and with
Argon2iis used when the site is running under PHP 7.2.0 and when the PHP constant
PASSWORD_ARGON2Iis defined (seems not the default configuration).
Table of Contents
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
You'll then obtain the generated hash and, also, a PHP sample code for showing you how to use the hash.