Skip to content

friartuck6000/phpass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPass

A delicately modified port of the original PHPass hashing framework, made Composer-friendly.

Installation

composer install friartuck6000/phpass

Usage

use Phpass\PasswordHash;

$hasher = new PasswordHash(8, false);

// Generate a hash
$hash = $hasher->HashPassword('abc12345');

// Check a hash
if (!$hasher->CheckPassword('abc12345', $hash)) {
    die('Incorrect password!');
}

About

Composer-ready port of PHPass

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages