Encrypted WordPress hash password generator

Sometimes you may need to reset your WordPress password directory by updating a password filed of your wordpress wp_users table. The required password needs to a salted MD5 string. The easiest way to generate a WordPress hash password from a plain test is to use openssl.

For example let’s create a new WordPress hash password string from a plain text such as wordpress_pass:

$ openssl passwd -1 'wordpress_pass'
$1$ldalRXj4$wOZp2NjBYsn0UosVKj68N0

Let’s see what has exactly happened here. The resulted output hash password string begins with 1 which in this case is a MD5-based password algorithm encryption method. The following ldalRXj4 characters are salted string input and wOZp2NjBYsn0UosVKj68N0 is the actual encrypted string. When we run the above command again we will get different results:

$ openssl passwd -1 'wordpress_pass'
$1$Rkm8PYEH$.ulnIoIrcU7UqKzWDrUtn1

This is because we have not provided same salted string input and thus the resulting password hash is different. Let’s provide that same salted string to get the same password hash:

$ openssl passwd -salt "Rkm8PYEH" -1 'wordpress_pass'
$1$Rkm8PYEH$.ulnIoIrcU7UqKzWDrUtn1

To reset your WordPress password enter any of the above hash strings into a relevant table column and you will be able to login with wordpress_pass as password.