What type of hash does WordPress use for passwords?

If you look in to your WordPress database, you absolutely do not know what type of hash does WordPress use. You can find in users table passwords like this $P$BSs8sw1A8XAYtypu9qlldf0bviemIu1. As you see, this is not typical MD5 hash.

We have a word: wordpress
In MD5 hash: 1870a829d9bc69abf500eca6f00241fe
In WordPress hash: $P$BXb4SCf11vB9pPFJFbkDLzDqVq89ra/

The WordPress password hasher implements the Portable PHP password hashing framework. WordPress used MD5 in the older versions.

You can generate hashes using WordPress encryption scheme at WordPress password hasher: http://scriptserver.mainframe8.com/wordpress_password_hasher.php.

WordPress has the password encryption library located in /wp-includes/class-phpass.php. It is the Portable PHP Password hashing framework.

How to hash password by WordPress hash?

function wordpress_hash_password( $password ) {
 require_once( '/path/to/wp-includes/class-phpass.php' );
 $wp_hasher = new PasswordHash( 8, TRUE );
 $hashed_password = $wp_hasher->HashPassword( $password );
 return $hashed_password;
}

UNLIMITED DOWNLOADS: 50+ Million Website Templates & Design Assets

All the Website Templates you need and many other design elements, are available for a monthly subscription by subscribing to Envato Elements. The subscription costs $16.50 per month and gives you unlimited access to a massive and growing library of over 50 million items that can be downloaded as often as you need (stock photos too)!

Recent Articles

How to Change WordPress Theme If It Does Not Work (No Access to wp-admin) Through phpMyAdmin

Something is wrong. Your WordPress theme has got a blank screen and you can not log in to your admin through /wp-admin/...

How to Bulk Deactivate WordPress Plugins (No Access to WP-Admin) Through phpMyAdmin

Sometimes happens that you don't have any backups of your WordPress site (ups) and after your plugins update nothing works (ups, twice!),...

Landco – Garden & Landscaping WordPress Theme [Free WordPress theme download]

Demo Download Landco – Garden & Landscaping WordPress Theme Landco – Garden & Landscaping...

Optrica – Optometrist & Eye Care WordPress Theme [Free WordPress theme download]

Demo Download Optrica – A Premium WordPress Theme for all kind of optometrist...

Qwery – Multi-Purpose Business WordPress Theme + RTL [Free WordPress theme download]

Demo Download Giant Multi-Purpose Business Elementor WordPress Theme v1.0.4 Qwery is an innovative responsive...

Get in touch

Be our first-class reader, build a community and follow us on social media!

Leave A Reply

Please enter your comment!
Please enter your name here