Pick a password longer than 72 bytes and PHP's default hash keeps only the first...

@ProjektGopher@phpc.social

Pick a password longer than 72 bytes and PHP's default hash keeps only the first 72, so a shortened password can still log you in. This week Sjoerd Langkemper proposed that password_hash() refuse instead, and the list can't agree it's worth the break.

This Week in PHP Internals, October 1, 2026: 14 stories, about 12 minutes.

youtu.be/3Hp0E0SbusM

#PHP #PHPInternals #PHP87