Hi

On 2026-10-01 13:02, Sjoerd Langkemper wrote:
However, I was under the impression that this was problematic, seeing the lack of progress on yescrypt. Perhaps bcrypt-sha256 is different since we already have both fundamental functions built in?

The problems are with including extra libraries. A minimal build of PHP should be possible without installing any extra libraries, which means that libraries are vendored into php-src as necessary. This comes with the usual problems of vendoring, such as keeping libraries up to date. Yescrypt likely doesn't provide enough benefit for the extra maintenance effort.

For bcrypt-sha256 this situation is different, since all the necessary primitives are already always-available.

For reference to the other readers, Sjoerd already opened a PR with an implementation: https://github.com/php/php-src/pull/24073. There are some technical nits, but I don't see anything fundamentally wrong with it.

Best regards
Tim Düsterhus

Reply via email to