Skip to content
/ password Public

Collection of classes necessary for manipulation on passwords

License

Notifications You must be signed in to change notification settings

drmvc/password

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Build Status Total Downloads License PHP 7 ready Code Climate Scrutinizer CQ

DrMVC\Password

A small wrapper library for working with password hashes.

composer require drmvc/password

How to use

More examples you can find here.

<?php
require_once __DIR__ . '/../vendor/autoload.php';

$obj = new \DrMVC\Password();

// Generate hash from string
$hash = $obj->make('some_pass');

// Get info about current hash
$info = $obj->info($hash);

// Verify if password is valid
$verify1 = $obj->verify('some_pass', $hash); // true
$verify2 = $obj->verify('other_pass', $hash); // false

// Check if rehashing is required
$rehash = $obj->rehash($hash); // false

About PHP Unit Tests

First need to install all dev dependencies via composer update, then you can run tests by hands from source directory via ./vendor/bin/phpunit command.

Links

About

Collection of classes necessary for manipulation on passwords

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages