assertchris/hash-compat

Provides forward compatibility with the hash_* functions that ship with PHP 5.5

Maintainers

👁 assertchris

Package info

github.com/assertchris/hash-compat

pkg:composer/assertchris/hash-compat

Statistics

Installs: 142 704

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2015-05-05 23:42 UTC

Requires

None

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 085131ed20472cf0716b969890d38e7ed2c8ccb0

  • Christopher Pitt <cgpitt.woop@gmail.com>

This package is auto-updated.

Last update: 2026-06-04 13:35:46 UTC


README

👁 Build Status
👁 Code Quality
👁 Code Coverage
👁 Version
👁 License

Provides forward compatibility with the hash_* functions that ship with PHP 5.5.

Installation

$ composer require assertchris/hash-compat

Usage

$salt = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM);

$pbkdf2 = hash_pbkdf2("sha256", "password", $salt, 1000, 20);

Caution

The PBKDF2 method should not be used for hashing passwords for storage. password_hash() or crypt() with CRYPT_BLOWFISH are better suited for password storage.

Security Vulnerabilities

If you have found a security issue, please contact the author directly at cgpitt@gmail.com.