TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

WordPress still uses MD5 for hashing passwords

5 pointsby lkurtzabout 9 years ago

5 comments

CiPHPerCoderabout 9 years ago
This is actually incorrect.<p>It&#x27;s using Phpass by Solar Designer, which is not the same thing as merely &quot;using MD5&quot;. Typically, I reserve that choice of words for constructions like this:<p><pre><code> $hash = md5($password); $hash = md5($password . $salt); &#x2F;&#x2F; etc </code></pre> This MD5 code is still bad. They really should migrate to just using password_hash() and password_verify(), but they won&#x27;t. They&#x27;re committed to supporting PHP 5.2.x forever (or at least until every shared host in existence stops supporting 5.2, which is effectively forever).<p><a href="https:&#x2F;&#x2F;github.com&#x2F;WordPress&#x2F;WordPress&#x2F;blob&#x2F;6edbcc88ff5ba0acaba8a8e1d2490ed64ff33b63&#x2F;wp-includes&#x2F;class-phpass.php#L225-L239" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WordPress&#x2F;WordPress&#x2F;blob&#x2F;6edbcc88ff5ba0ac...</a><p>Note that, on newer versions of PHP, bcrypt will be used instead of the method linked by this HN submission.
creshalabout 9 years ago
We wrote a plugin for this a while ago that uses crypt(3) with 5000 rounds SHA-256 and a 96 bit salt – it&#x27;s the safest method I found that fit within Wordpress&#x27; password hash column without altering it, even if I&#x27;d have preferred scrypt (argon2 wasn&#x27;t out yet).<p>I guess we should open source it after all.
cryptosabout 9 years ago
I&#x27;m shocked! WordPress, the security pioneer under all the PHP based apps, uses MD5 ...
throwaway2016aabout 9 years ago
Please do not judge all PHP apps based on this.. there are plenty of PHP apps that use better methods :(
lkurtzabout 9 years ago
Passwords crack at a rate of 5000&#x2F;second on my 3 year old, super bad GPU laptop :-&#x2F;