PHPackages                             lablnet/hashing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. lablnet/hashing

ActiveLibrary[Security](/categories/security)

lablnet/hashing
===============

PHP Hashing package.

1.0.1(7y ago)41401MITPHP

Since Feb 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Lablnet/PHP-Hashing)[ Packagist](https://packagist.org/packages/lablnet/hashing)[ RSS](/packages/lablnet-hashing/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

PHP Hashing
===========

[](#php-hashing)

This Package provides secure Bcrypt and Argon2 hashing for storing user passwords.

Requirement
-----------

[](#requirement)

1. PHP 7 (7.3 Recommanded).
2. Composer.

> The Argon2i driver requires PHP 7.2.0 or greater and the Argon2id driver requires PHP 7.3.0 or greater.

> Bcrypt is a great choice for hashing passwords because its "work factor" is adjustable, which means that the time it takes to generate a hash can be increased as hardware power increases.

Insallation
-----------

[](#insallation)

Installing this package is very simple, first ensure you have the right PHP version and composer installed then in your terminal/(command prompt) run: `composer require lablnet/hashing`

Basic Usage
-----------

[](#basic-usage)

You may hash a password by calling the `make` method on the Hashing Class:

```
