
內容簡介
這個外掛程式可以將 WordPress 核心的密碼雜湊機制替換為 PHP 5.5 的 password_hash() 及其相關的函數。預設情況下,PHP 使用 bcrypt 來雜湊密碼。如果可用,這個外掛程式將使用現代化的 Argon2 演算法。轉換將是透明的。
將使用加密安全的偽隨機數生成器 (CSPRNG) 來產生密碼鹽。
因為會為每個密碼產生安全的密碼鹽,所以密碼雜湊不會成為字典攻擊或任何其他預先計算的雜湊列表的攻擊對象。
將加密多次以提高抵抗暴力攻擊的強度。
密碼檢查的方式可以減緩時間攻擊。
您無需重設所有使用者的密碼。已經在資料庫中雜湊的密碼會在下次使用者登入時自動且透明地重新雜湊。
PHP 可能會開發出更新的密碼雜湊演算法,這些演算法將自動支援,而不需要重設所有的密碼。
我們最初製作這個外掛程式是因為我們的某個應用程式使用 WordPress 進行身份驗證,但我們需要直接從資料庫中使用外部系統驗證密碼。由於 WordPress 有自己的密碼雜湊演算法,我們決定製作這個外掛程式來解決這個問題。
有了這個外掛程式,由 WordPress 和其他自訂應用程式產生的密碼現在都使用 PHP 的預設 password_hash() 函數,而不會影響任何應用程式的安全性。
外掛標籤
開發者團隊
原文外掛簡介
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.
