PHP Native Password Hash
Makes WordPress use PHP's native password_hash() functions for portable, stronger, and time-attack safe bcrypt and Argon2 hashes.
Considere uma alternativa
PHP Native Password Hash shows warning signs in 2026 — compare the alternatives below before installing. It runs on 1K+ sites, is rated 5/5 and was last updated 2 years ago, and scores 39/100 on our health check.
- Momentum — downloads up 21.3% vs the previous 30 days
- Nenhuma atualização em 2 anos
- Only tested up to WordPress 6.5 (latest is 7.1)
Downloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where PHP Native Password Hash stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| argon2 | #3 |
| bcrypt | #5 |
| password | >100 |
| password hashing | #10 |
| password_hash | #1 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★ ★★★★★ 5 de 6 comentários
About PHP Native Password Hash
From the official readme · v3.0Descrição
This plugin swaps out WordPress core’s password hashing mechanism with PHP 5.5’s password_hash() and its accompanying functions. By default, PHP uses bcrypt to hash the passwords. If available, this plugin will use modern Argon2 algorithm. The transition will be transparent.
- A password salt will be generated using a Cryptographically Secure Pseudo-Random Number Generator (
CSPRNG) - Password hashes are safe from dictionary attacks with rainbow tables or any other precomputed hash lists, because a secure salt is generated for each password.
- The password hashing is iterated multiple times to provide a good resistance against brute-force attacks.
- Password checks are made in a way that it mitigates time-attacks.
- You do not have to reset passwords of all users. Passwords already hashed in the database will be rehashed automatically and transparently the next time the user logs in.
- PHP might come up with newer password hashing algorithms, and they will be automatically supported without having to reset all the passwords.
This plugin was made initially because one of our applications used WordPress for authentication, but we needed to use an external system
to verify the passwords directly from the database too. Since WordPress has its own password hashing algorithm, we decided to make this plugin to address that problem.
With this plugin, passwords generated by both WordPress and other custom applications now use the PHP’s default password_hash() functions without compromising any of the applications’ security.
This plugin is designed to be as minimal and fast as possible, and can be considered a must-use for EVERY WordPress application given the minimal footprint of this plugin, and considering the importance of using a secure hashing algorithm for passwords.
Instalação
- Carregue os arquivos do plugin no diretório
/wp-content/plugins/password-hashou instale o plugin por meio da tela de plugins WordPress diretamente. - Ative o plugin através da tela 'Plugins' em WordPress.
- You are all set! There is nothing to configure. All existing users passwords will be rehashed on their next successful login. There is no configuration UI; it just works.
Log de Changes
1.0
- Lançamento inicial.
1.1
- Fixed a bug for PHP 5.5 users whose PHP core lacks the time-safe hash_equals function, resulting in a fatal error. This version introduces a polyfill to add that functionality for PHP 5.5 users. Users with newer PHP versions will use PHP-provided hash_equals() function.
1.2
- This plugin now requires WordPress minimum version 3.9.2 the least, and uses the hash_equals() function polyfill provided by WordPress core.
1.4
- Skipped 1.3 version because a WIP Argon2i support conflicted with the bug fix (#2). Argon2i support will be added in a future release.
- Fixes an error with password validation when the PasswordHash class from WordPress core is not loaded. See https://github.com/Ayesh/wordpress-password-hash/pull/2
1.5
- Fix a security issue with the password verification when updating from a password_hash()-compatible hashing algorithm to another. Thanks to Steve Thomas (Sc00bz on GitHub).
2.0
This is a major rewrite of the plugin. This version still requires PHP 5.5, but WordPress 5.2+ now requires PHP version 5.6 to function, and this is enforced at plugin level as well.
Core functionality of the plugin is extracted to a separate class. This plugin aims to be as light-weight as possible, and this version cuts the main plugin file size to less than half the v1.x size.
There is a new namespaced PasswordHash class that is cleaner and well-structured compared to our v1 code base.
- Fixes a bug that the hook-provided hash cost changes did not trigger a password rehash. Thanks to Steve Thomas (Sc00bz on GitHub).
- Adds support for Argon2I, Argon2ID and any future hashing algorithms PHP will introduce. See the updated FAQ item on how to use the new hashing algorithms.
- Removed a helper function used to trigger an admin warning if the plugin cannot properly work. The notices are now shown with help of lambda functions (which further reduces the code bloat and load).
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
FAQ
PHP Native Password Hash: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is PHP Native Password Hash free?
Yes. PHP Native Password Hash is free to download and use from the official WordPress.org plugin directory.
Is PHP Native Password Hash safe to use in 2026?
PHP Native Password Hash shows warning signs in 2026 — compare the alternatives below before installing. It runs on 1K+ sites, is rated 5/5 and was last updated 2 years ago, and scores 39/100 on our health check.
How many websites use PHP Native Password Hash?
PHP Native Password Hash is active on 1K+ WordPress websites and has been downloaded 25,667 times since it launched in January 2017. It was downloaded 502 times in the last 30 days.
Does PHP Native Password Hash work with WordPress 7.1?
PHP Native Password Hash is officially tested up to WordPress 6.5.15, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does PHP Native Password Hash need?
PHP Native Password Hash requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was PHP Native Password Hash last updated?
The latest version, 3.0, was released on June 10, 2024 (2 years ago).
Who makes PHP Native Password Hash?
PHP Native Password Hash is developed and maintained by Ayesh Karunaratne.
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito
