PHPackages                             pentagonal/phpass - 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. pentagonal/phpass

ActiveLibrary[Security](/categories/security)

pentagonal/phpass
=================

PHP password hashing library original by open wall PhPass

1.1.0(9y ago)121.6kPublic DomainPHPPHP &gt;=5.2

Since Jan 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/pentagonal/phpass)[ Packagist](https://packagist.org/packages/pentagonal/phpass)[ Docs](http://github.com/pentagonal/phpass/)[ RSS](/packages/pentagonal-phpass/feed)WikiDiscussions master Synced 4w ago

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

Password Hash Library
=====================

[](#password-hash-library)

[![Build Status](https://camo.githubusercontent.com/765f4e9c922fb6077d981d20fb6ef2f33e5f72b839b92d49a4ff24b0be419f95/68747470733a2f2f7472617669732d63692e6f72672f70656e7461676f6e616c2f7068706173732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pentagonal/phpass)

Script base on OpenWall's [PhPass](http://openwall.com/phpass/), based on the 0.3 release, change to ready for:

- Name Space
- Composer (Autoload)
- PHP 5
- Unit Tested

There was make some changes and add 2 methods &amp; Name Space , to make the password hash could use install on composer and Name Space Support.

We are not claim of the projects, but we just add some comments and make more compatible with new version of PHP for our projects.

Change &amp; Additional
-----------------------

[](#change--additional)

```
VERSION 1.1.0

- Add 1 static method `isMaybeHash` for checking is hashed string
- Add `VERSION` constant

VERSION 1.0

- Dump version to 1.0.0
- Add Comments
- Adding visibility on methods & property
- Add 2 methods alternative `verify` & `hash`
- Remove /dev/urandom , that maybe thrown of error as random state ( default uses loop )

```

Installation
------------

[](#installation)

Add requirement to the `composer.json` file and run `composer install`:

```
    {
        "require": {
            "pentagonal/phpass": "1.1"
        }
    }
```

Usage
-----

[](#usage)

```
