WordPress Password Generator

WordPress Password Generator creates the phpass hash that WordPress stores in the wp_users table. It is meant for direct database work, migrations, and account repairs rather than everyday logins.

Remove Ads
Remove Ads

Share this page:

WordPress Password Generator creates the phpass hash that WordPress stores in the wp_users table. It is meant for direct database work, migrations, and account repairs rather than everyday logins.

Why use WordPress Password Generator

  • Create an admin account by inserting a row straight into wp_users when the WordPress installer is unavailable.
  • Reset a locked-out administrator when email delivery is broken and the normal reset link cannot arrive.
  • Move users between WordPress installations while keeping the same passwords.

Running WordPress Password Generator step by step

  1. Enter the plain-text password you want WordPress to accept.
  2. Click Generate to produce a portable hash that starts with $P$.
  3. Paste the hash into the user_pass column for the account, keeping every character exactly as shown.

Good to know before you start

Test the hash on a staging copy first, because one wrong character locks the account out of wp-admin.

Practical notes

WordPress can rehash a password on the next successful login when the algorithm changes, so a phpass hash is not permanent. Keep the plain password until you have confirmed the login works.

Mistakes worth avoiding

  • Pasting the hash into user_pass with a stray space, which makes the login fail.
  • Generating a hash on production before testing the same value on staging.

FAQ

Does WordPress accept this hash format?

Yes. The output is a portable phpass hash in the $P$ format that WordPress validates on the next login.

Can I turn the hash back into the password?

No. It is a one-way hash. Store the plain password safely before you generate the hash or you will not be able to recover it.

Is it safe to paste a real password here?

Use a staging site or a password you are about to change. For a live account, the safer route is the normal WordPress password reset.