# [RFC][Accepted] Password Mechanism Registry

- Thread: https://staging.externals.io/message/103463
- Original archive: https://news-web.php.net/php.internals/103463
- Started by Sara Golemon on 2018-11-20T19:05:10+00:00
- Messages: 2
- RFC: Password Hash Registry (Implemented (PHP 7.4)) — https://staging.externals.io/rfc/password_registry.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://staging.externals.io/search.md?q={query} · RFCs at https://staging.externals.io/rfc.md · JSON API at https://staging.externals.io/api · documentation at https://staging.externals.io/llms.txt

---

## #103463 — Sara Golemon — 2018-11-20T19:05:10+00:00

URL: https://staging.externals.io/message/103463#103463

https://wiki.php.net/rfc/password_registry has been accepted
unanimously 21:0 with the supplemental vote on maintaining BC for the
integer based mechanism parameters passing 19:1.

Implementation will be forthcoming.

-Sara

---

## #107910 — Nikita Popov — 2019-12-12T09:11:13+00:00

URL: https://staging.externals.io/message/103463#107910 · In reply to: #103463

> https://wiki.php.net/rfc/password_registry has been accepted
> unanimously 21:0 with the supplemental vote on maintaining BC for the
> integer based mechanism parameters passing 19:1.
>
> Implementation will be forthcoming.
>
> -Sara
>

Hey Sara,

After seeing
https://stackoverflow.com/questions/59273258/identifying-what-password-default-will-be-in-php-7-4,
I'm wondering what the rationale is for making `PASSWORD_DEFAULT` null,
rather than giving it the value of whatever PASSWORD_* is the default?
Checking `PASSWORD_DEFAULT` == `PASSWORD_BCRYPT` doesn't seem like an
unreasonable thing to do...

Nikita
