Encrypt any password in Joomla using MD5

We already have a tutorial on changing the password of a Joomla user to "admin". That tutorial allows you to reset any user password to "admin".

However, one of our students wanted to know how to create safer passwords. How could they create safer passwords that were also encrypted in the database. Here's how to do it ...

Step 1. Login to phpMyAdmin

tutuploadsStep_1_75ea37ceefbc2038f9a02843e5b092d1.png

On your local machine you can go to localhost/xampp or whatever is appropriate for your setup. Here's what it looks like on my computer.

Here's how the link will appear in the database section of your hosting control panel if you have CPanel:
tutuploadsOr_in_the_Database_section_of_your_hosting_control_panel..png

Step 2. Open the jos_users table

tutuploadsStep_2._Open_the_jos-users_table.png

Find your database and look for the jos_users table on the left and click on it.

Click the Edit link next to the entry for the user you want to change. In this case, admin.

Step 3. Delete the existing password

tutuploadsStep_3._Delete_the_existing_password..png

On the next screen find the password field and delete the existing password.

tutuploadsmedia_1318979418906.png

Type in a new password in plain language. It can be anything you want.

Step 4. From the Function Column choose the Function MD5

tutuploadsStep_4._From_the_Function_Column_choose_the_Function..png

Choose MD5 from the Function field dropdown.

Step 5. Click Go

tutuploadsStep_5._Click_Go.png

Click Go at the bottom of the section.

tutuploadsmedia_1318979723849.png

The word "spaghetti" has now been magically transformed into a long, safe, encrypted string of letters and numbers.

Step 6. Login to your Joomla admin with your new password

tutuploadsStep_6._Login_to_your_Joomla_admin_with_your_new_password.png

We have successfully changed the password to "spaghetti".

That's how can you avoid using a password as basic as "admin". You just have to find jos_user in phpMyAdmin and use MD5 to do the translation for you. Then you can use any word you want.