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

Abandoned → [bordoni/phpass](/?search=bordoni%2Fphpass)Library[Security](/categories/security)

hautelook/phpass
================

Portable PHP password hashing framework

0.3.6(13y ago)242.6M↑51.6%28[1 issues](https://github.com/bordoni/phpass/issues)[1 PRs](https://github.com/bordoni/phpass/pulls)20Public DomainPHPPHP &gt;=5.3.3

Since Aug 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bordoni/phpass)[ Packagist](https://packagist.org/packages/hautelook/phpass)[ Docs](http://github.com/bordoni/phpass/)[ RSS](/packages/hautelook-phpass/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (20)

### This repository is a fork from the original [hautelook/phpass](https://github.com/hautelook/phpass) which seems to have been deleted on *2021-09-09*.

[](#this-repository-is-a-fork-from-the-original-hautelookphpass-which-seems-to-have-been-deleted-on-2021-09-09)

Openwall Phpass, modernized
===========================

[](#openwall-phpass-modernized)

This is Openwall's [Phpass](http://openwall.com/phpass/), based on the 0.3 release, but modernized slightly:

- Namespaced
- Composer support (Autoloading)
- PHP 5 style
- Unit Tested

The changes are minimal and only stylistic. The source code is in the public domain. We claim no ownership, but needed it for one of our projects, and wanted to make it available to other people as well.

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

[](#installation)

Add this requirement to your `composer.json` file and run `composer.phar install`:

```
{
    "require": {
        "bordoni/phpass": "dev-main"
    }
}

```

Usage
-----

[](#usage)

The following example shows how to hash a password (to then store the hash in the database), and how to check whether a provided password is correct (hashes to the same value):

```
