Skip to content

Easy interface for generating a hash for a plain text password. Type a plain text password and get his password_hash() hash.

License

Notifications You must be signed in to change notification settings

cavo789/php_password

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Password interface

php 8.2

Banner

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:

  1. The function used is password_hash() which is native in PHP, therefore there are no dependencies with an external library.
  2. 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.
  3. The generated hash will start with $2y$ when the BCRYPT has been used and with $argon2i$ when Argon2i was used. Argon2i is used when the site is running under PHP 7.2.0 and when the PHP constant PASSWORD_ARGON2I is defined (seems not the default configuration).

Table of Contents

Install

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.

Usage

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.

Demo

Interface with provided sample code

Interface

License

MIT

About

Easy interface for generating a hash for a plain text password. Type a plain text password and get his password_hash() hash.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages