# [Patch] Implement PBKDF2 in the Hash package

- Thread: https://externals.io/message/57435
- Original archive: https://news-web.php.net/php.internals/57435
- Started by Anthony Ferrara on 2012-01-19T22:05:43+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #57435 — Anthony Ferrara — 2012-01-19T22:05:43+00:00

URL: https://externals.io/message/57435#57435

Hi all,

I've implemented a patch (attached to the bug, but in a gist as well
here https://gist.github.com/1641725 ) that implements a `hash_pbkdf2()`
function.  The patch also slightly refactors `hash_hmac()` to split out
a little bit of common functionality (since pbkdf2 relies upon hmac).

https://bugs.php.net/bug.php?id=60813

I've targeted the patch towards trunk for now, but I'd like to see if
it could get into 5.3 and 5.4 as well (in a point release).

Let me know your thoughts,

Thanks,

Anthony
