Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 2, 2024 via composer

ircmaxell/password-compat v1.0.4

A compatibility library for the proposed simplified password hashing algorithm: https://wiki.php.net/rfc/password_hash
Package summary
Share
0
issues
1
license
1
MIT
Package created
12 Sep 2012
Version published
20 Nov 2014
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
ircmaxell/password-compat@v1.0.4
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of ircmaxell/password-compat 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does ircmaxell/password-compat do?

The "ircmaxell/password-compat" is a PHP package designed to assist developers handle password hashing in a secure way. It is a compatibility library for the proposed simplified password hashing algorithm. The main purpose of this package is to provide forward compatibility with the password_* functions that come with PHP 5.5.

How do you use ircmaxell/password-compat?

The package "ircmaxell/password-compat" can be used by PHP developers through simple function calls for creating password hashes, verifying hashes, and determining if a password hash needs to be rehashed.

Here is how you can create a password hash:

$hash = password_hash($password, PASSWORD_BCRYPT);

To verify a password hash, use:

if (password_verify($password, $hash)) {
    /* Valid */
} else {
    /* Invalid */
}

To check if a password hash needs to be rehashed, use:

if (password_verify($password, $hash)) {
    if (password_needs_rehash($hash, $algorithm, $options)) {
        $hash = password_hash($password, $algorithm, $options);
        /* Store new hash in db */
    }
}

Where are the ircmaxell/password-compat docs?

The documentation for the "ircmaxell/password-compat" package is essentially contained within its readme file in the GitHub repository. The README.md file contains the requirements for using the library, how to install it, and examples of usage. The documentation also provides a link to the PHP RFC for the password hashing API which offers more detailed information on the subject. For more guidance and usage scenarios, developers can consult the source code and issue queue in the GitHub repository.