Bobcares

Quick way to set up Joomla password encryption

by | Jun 9, 2019

In general, databases store passwords in plain text format.

Therefore, hackers or anyone can access the password from the database easily.

In website management software like Joomla, an effective solution to this security risk is to encrypt the password.

That’s why, at Bobcares, we often get requests from our customers to configure Joomla password encryption as part of our Server Management Services.

Today, we’ll see how our Support Engineers set up them and fix related issues.

 

Steps to encrypt password in Joomla

Encrypting password always make the password more secure. Let’s see how our Support Engineers set up password encryption in Joomla.

1. First, we log in to control panel account and open the phpMyAdmin option under Databases.

2. In phpMyAdmin menu, click on the Joomla database name and expand the tables.

3. Then, open the jos_users table from the Database drop-down list. It is this table that contain the Joomla users.

4. Next, we click the Edit link next to the particular user details.

5. We choose MD5 in the Function column.

6. Finally, we click the Go button.

This automatically sets an encrypted password for the Joomla user.

That’s how we configure password encryption in Joomla.

 

Common errors & fixes in Joomla password encryption

Unfortunately, setting the password encryption in Joomla may not work always as expected.

Let’s take a closer look on the reasons for password encryption failure and how our Support Engineers fixed it.

 

1. Problems after migration

Migration can be a reason for password problems in Joomla.

Recently, one of our customers approached us regarding Joomla password encryption. After migrating to a new version, his password didn’t work and couldn’t log in to the website.

In Joomla, if the password for the administrator doesn’t work, it is possible to set the temporary password.

To work around this our Support Engineers logged in to hosting panel & navigated to PHPmyAdmin. We, then did a password reset of the Joomla admin user.

Additionally, when you have no clue about the current admin user, we insert a new admin user to the Joomla user table. For example, when the Joomla user table name is jos45_users, we execute the following query.

INSERT INTO `jos45_users`
   (`name`, `username`, `password`, `params`, `registerDate`, `lastvisitDate`, `lastResetTime`)
VALUES ('Administrator2', 'admin2',
    'd2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199', '', NOW(), NOW(), NOW());
INSERT INTO `jos45_user_usergroup_map` (`user_id`,`group_id`)
VALUES (LAST_INSERT_ID(),'8');

After executing, Joomla allows access to a user “admin2” with a password of “secret”. And, after logging in, reset the password immediately to avoid any hack attempts.

 

2. Data Broken using salted MD5

In general, using salted MD5 technique fairly secures passwords. However, MD5 has received a certain amount of bad press as being “broken” and has been stopped permitting its use internally because of security concerns.

As an alternative method, we recommend the SHA-1 algorithm because of security concern.

We took the following steps to change the password algorithm in Joomla.

1. First, we took the backup of the whole website.

2. Then, we logged in to the administrative panel.

3. We edit the file /libraries/Joomla/user/helper.php on the server.

4. And we located the line of code public static function getCryptedPassword.

5. We replaced the ‘md5-hex’ with ‘ssha’ & it looks like this.

public static function getCryptedPassword($plaintext, $salt = '', $encryption = 'ssha', $show_encrypt = false)

6. Finally, we saved the file on the server to reflect the changes made.

 

[Having trouble with Joomla password encryption? We’ll fix it for you.]

 

Conclusion

To be more precise, using the hashing algorithm, Joomla can generate an encrypted password for security purpose. Today, we saw how our Support Engineers configured “Joomla password encryption” and fixed the common errors.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF