https://github.com/drmvc/password
Collection of classes necessary for manipulation on passwords
https://github.com/drmvc/password
generator password validator
Last synced: 3 months ago
JSON representation
Collection of classes necessary for manipulation on passwords
- Host: GitHub
- URL: https://github.com/drmvc/password
- Owner: drmvc
- License: mit
- Created: 2018-04-06T09:06:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T17:03:18.000Z (over 8 years ago)
- Last Synced: 2025-03-02T21:42:46.578Z (over 1 year ago)
- Topics: generator, password, validator
- Language: PHP
- Homepage: https://drmvc.com/
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://packagist.org/packages/drmvc/password)
[](https://travis-ci.org/drmvc/password)
[](https://packagist.org/packages/drmvc/password)
[](https://packagist.org/packages/drmvc/password)
[](https://travis-ci.org/drmvc/password)
[](https://codeclimate.com/github/drmvc/password)
[](https://scrutinizer-ci.com/g/drmvc/password/)
# DrMVC\Password
A small wrapper library for working with password hashes.
composer require drmvc/password
## How to use
More examples you can find [here](extra).
```php
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
* [DrMVC Framework](https://drmvc.com)