Recover a Lost WordPress Password

WordPress LogoRecently I had a client contact me and tell me they lost their WordPress password and couldn’t get into their account. I guess they had the wrong email in there and couldn’t use the ‘Lost Password’ feature either. Luckily, there’s a ‘not too difficult’ method for resetting your password (or more than likely your favorite client’s password).

I’m going to be using cPanel and PHPMyAdmin for this, but you should be able to do it with whatever system your host is using to allow you to manage your DB’s.

  1. Login to cPanel and look for phpMyAdmin
    WordPress Password Recovery
  2. Look for your database to the blog you forgot the password to on the left hand side
    WordPress Password Recovery
  3. Look for the ‘wp_users’ table and click the ‘Browse’ button
    WordPress Password Recovery
  4. Find your username/user ID and click the edit button next to it
    WordPress Password Recovery
  5. Look for the ‘user_pass’ field and change the function to MD5. Then simply type your new password in the text area. When you’re done, click the Go/Save button
    WordPress Password Recovery
  6. Finally, go and try to login to the blog using the username you chose to edit and the new password you just entered. What’s that? you forgot the password? Go back to step 1 and go to jail.

That’s it! There are a couple other ways out there to get your WP password back, including one where you upload a file to your server that basically opens WP up so you can get in and change the password. This method is by far the best way to do it, however.

Using Truecrypt to Encrypt Your Entire Hard Drive

If you’re as paranoid as I am, you more than likely appreciate the advancements that the TrueCrypt team has made with version 5.0. For me, the greatest thing they did was making whole disk encryption dead simple. Here’s how you do it.

Getting Started

  1. First you will need to visit the TrueCrypt site and download and install it on your system. I’m going to be using Windows XP for my demonstration, but they have since released very good and stable version for Mac OSX and Linux.
  2. Next, go ahead and open the main window by clicking on the TrueCrypt logo in the system tray. The window should look like this
    truecrypt whole disk encryption

Setting Up the Encryption Settings

  1. Click the the ‘Create Volume ‘ button
  2. On the next window, choose the radio button next to ‘Encrypt the system partition or entire system drivetruecrypt encrypt the system partition or entire drive
  3. You now have the option to ‘Encrypt the Windows system partition’ or ‘Encrypt the whole drive ‘. We will be choosing the latter for this example.truecrypt encrypt the whole drive
  4. For the next screen you can choose ‘Single Boot ‘ or ‘Multi-Boot’. More than likely you are only running one OS on your computer, so we will choose Single Boot.truecrypt encrypt the system partition or entire drive
  5. Now you can choose the encryption settings. Unless you really know what you are doing, the default settings are fine. AES is an incredibly powerful encryption algorithm and should be all you need. I would also leave the Hash Algorithm at RIPEMD-160
    truecrypt with AES and RIPEMD-160
  6. Next you will need to create a password. Depending on how paranoid you are, you should choose a passphrase close to 20 characters in length. I would also recommend using Steve Gibson’s Perfect Passwords Generator to make sure you create a completely unique phrase.
    truecrypt passphrase password random number generator
  7. Next you will need to move your mouse around the TrueCrypt window to create randomized data. This is fairly important, so spend a minute or two moving your mouse to make sure you really randomize things.
    truecrypt random number pool
  8. The next window should simply be showing you the keys that were generated for you. You can simply click next here.
    truecrypt generated keys

Creating the Rescue Disk

  1. The next step is to create what TrueCrypt calls the ‘Rescue Disk’. This disk will be used in case the boot loader or Windows become corrupt or infected with malware, yu will always have a way to decrypt the system. This step is extremely important, and TC will not let you proceed until it is satisfied that you did everything correctly. Begin by clicking the ‘Browse ‘ button. This will bring up a dialog box. Browse to your desktop and name the file something like rescueDisk.iso. IMPORTANT: remember to append the .iso or your file will not work correctly.
    truecrypt rescue disk
  2. You should now see a window telling you the file was created successfully. It’s now time to burn the newly created .iso file to a cd. I strongly recommend using ImgBurn . If for some reason that doesn’t work, you can use something like CD Burner XP Pro . Click next
    truecrypt iso recording imgburn
  3. Make sure you have a blank CD in your drive and open ImgBurn. Click on ‘Write image file to disc’
    truecrypt iso recording imgburn
  4. Next click on the ‘Browse for a file’ button
    truecrypt iso recording imgburn
  5. Finally click the giant ‘Write’ button towards the bottom
    truecrypt iso recording imgburn
  6. After you have the disc burned, leave it in the drive and click ‘Next’ in the TrueCrypt window
    truecrypt iso rescue disk verify
  7. If all went well you will be notified that the Rescue Disk was successfully verified
    truecrypt rescue disk successfully burned

Pretest and Installing the Bootloader

  1. You can choose to wipe the drive to really give you an incredibly secure hard drive, or just choose none if you aren’t storing government secrets on your computer (not that the government is intelligent enough to encrypt hard drives).
    truecrypt wipe mode
  2. Next TC will begin the pretest to make sure everything is in working order before it begins the encryption process. This will also install the TrueCrypt boot loader on the boot sector of your hard drive. This is a major reason why this encryption is so great. There is virtually no way to boot into the Windows file system without having the decryption key. Click ‘Test
    truecrypt pretest boot sector
    A friendly warning:)
    truecrypt boot warning
  3. After TC runs a few things you will be presented with a window to restart. Click ‘Yes
    truecrypt restart
  4. After the computer boots back up, you should see a black and white screen. Enter your passphrase you created earlier.
    truecrypt boot loader
  5. If all went well you will now see a new dialog box saying the pretest was completed successfully.
    truecrypt pretest completed successfully
  6. Click ‘OK’ on the Rescue Disk information window
    truecrypt rescue disk

Finally! Encrypting the Drive

  1. Whew! If you’ve made it this far, congratulations! We are now ready to encrypt the drive. You should see a window similar to the one below. Simply click the ‘Encrypt’ button and depending on your wipe mode and your encryption algorithms, go have a cup of coffee or go to sleep and let it run overnight.
    truecrypt begin the encryption
  2. When everything is done, you should see this
    truecrypt successfully encrypted

In Closing

If you were able to get through this tutorial, you should now feel much safer with your data knowing it’s now gone from incredibly insecure, to even the DOD or NSA would have trouble getting in (unless of course there was water boarding involved).

This is really helpful if you travel a lot and carry a laptop all the time. If something were to happen and it gets lost or stolen, yes, you lose the data but at least whoever has it can’t get it either. Of course this means we need some training in the art of backing up;)