WordPress Password Hash Generator

Generate a WordPress-compatible hash (starts with $P$) for wp_users.user_pass. The hash is safe to paste directly into phpMyAdmin as plain text.

How to set the password in phpMyAdmin

This replaces the stored password hash for a user so they can log in with the plain password you entered above.

  1. Open phpMyAdmin and select the correct WordPress database.
  2. Open wp_users. Your table prefix may differ, for example wp7_users or abc_users.
  3. Find the user row by user_login or user_email, then click Edit.
  4. Locate the user_pass field.
  5. Paste the generated hash (it starts with $P$).
  6. In the Function dropdown for that field, choose None.
  7. Save. The user can now log in with the plain password you used in this tool.

Why WordPress uses hashes like this

WordPress does not store plain passwords. It stores a one way hash, so even database administrators cannot read user passwords directly. When a user logs in, WordPress hashes the password they type and compares it to the stored hash.

The $P$ format is a portable hashing scheme (phpass). It uses a unique salt and many repeated hashing rounds. Salt makes the same password produce different hashes, and repeated rounds slow down guessing attempts.

This helps protect users if a database is ever exposed, because attackers still have to spend significant effort to crack passwords.

Web Host Pro tools