Skip to content

[D10][SR] Deprecate or wrap existing functions in password.inc around the password_hash() function (built into PHP 5.5+) #5655

@ghost

Description

This is the respective issue as Replace custom password hashing library with PHP 5.5 password_hash() for Drupal.

password.inc seems to be quite old and, possibly, no longer necessary/safe...

For example, the comment at the top says:

Based on the Portable PHP password hashing framework.

That site says:

At this time, if your new project can afford to require PHP 5.5+, which it should, please use PHP's native password_hash() / password_verify() API instead of phpass.

Additionally, the documentation for BACKDROP_HASH_COUNT says:

This should increase by 1 every Backdrop version in order to counteract increases in the speed and power of computers available to crack the hashes.

Now admittedly this was written for Drupal, and presumably refers to their major versions (6, 7, 8, etc.), but even so, the last time this was updated was back in Drupal - Backdrop's never updated this value.

So I'm wondering if we should remove (or deprecate) this file and its functions in favour of PHP's built-in functions, or at the very least keep it updated and secure. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions