PHP Classes

PHP Password Hash Generator: Generate password, salt and hash for the password

Recommend this page to a friend!

  Author Author  
Picture of Boss Ibrahim Mussa
Name: Boss Ibrahim Mussa <contact>
Classes: 13 packages by
Country: Congo Congo
Innovation award
Innovation award
Nominee: 5x


  Detailed description   Download Download .zip .tar.gz  
This package can generate a password, salt, and hash for the password.

It can generate a password string with a given length of random letters, digits, and punctuation characters and returns a sha256 hash.

The class uses a salt of a given length value made of random byte values.

Details

PASSWORD_GENERATOR

auto generate password, salt and hash.

Installation

composer require password-generator

Integration

$simple_string = PasswordGenerator::randomString();
$strong_string = PasswordGenerator::randomString(10,true);

echo $simple_string . PHP_EOL;
echo $strong_string . PHP_EOL;
//eg: Lfw8oPDUhl 
//eg: N[:Lspg+Lw

$salt = PasswordGenerator::salt();
echo $salt . PHP_EOL;
// eg: 505ff561ca2a0d846e5713b6b00f6b38

$simple_string_no_salt = PasswordGenerator::make($simple_string);
echo $simple_string_no_salt . PHP_EOL;
// eg: 1fbbd6ad4db19d296e6d9680f28829fbb23bb63b6447f8ace9596ce258a073ed

$simple_string_salt = PasswordGenerator::make($simple_string,$salt);
echo $simple_string_salt . PHP_EOL;
// eg: 8553b800cd2dcd2646c7535e8675c7892872edf508440e268c9017fd15dbc93a

  Classes of Boss Ibrahim Mussa  >  PHP Password Hash Generator  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Password Hash Generator
Base name: pass-hash-generator
Description: Generate password, salt and hash for the password
Version: -
PHP version: 5
License: The PHP License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image Cryptography Encrypting, decrypting and hashing data View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder image.github (1 directory)
Files folder imageexample (1 file)
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .github  
File Role Description
Files folder imageworkflows (1 file)

  Files folder image Files  /  .github  /  workflows  
File Role Description
  Accessible without login Plain text file php.yml Data Auxiliary data

  Files folder image Files  /  example  
File Role Description
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files  /  src  
File Role Description
  Plain text file PasswordGenerator.php Class Class source

Download Download all files: pass-hash-generator.tar.gz pass-hash-generator.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  Files folder image Files  
File Role Description
Files folder image.github (1 directory)
Files folder imageexample (1 file)
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .github  
File Role Description
Files folder imageworkflows (1 file)

  Files folder image Files  /  .github  /  workflows  
File Role Description
  Accessible without login Plain text file php.yml Data Auxiliary data

  Files folder image Files  /  example  
File Role Description
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files  /  src  
File Role Description
  Plain text file PasswordGenerator.php Class Class source

Download Download all files: pass-hash-generator.tar.gz pass-hash-generator.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.