Cookies can also be a security risk as it stores login information for websites. That’s why security keys (secret keys) and salts are made to encrypt the cookies to prevent hackers from getting sensitive information from it.
Security keys and salts can be added to your WordPress website. Follow the instructions below on how to set it up.
Step 2. Click the File Manager button under Files category. Skip this step if you are using FTP.
Step 3. Access your WordPress website files and right-click on wp-config.php file.
Step 4. Click Edit.
Step 5. Click Edit on the pop-up.
Step 6. Replace the values in between the single quotes (‘) on the lines underlined in the screenshot.
You can make up random characters or generate it from the WordPress Key Generator.
|Tip: Make the keys as long and as complicated as it can be so that it’s hard for someone to decrypt it. There’s no need to remember the keys after this process.|
Step 7. Click the Save Changes button.
Updating of security keys and salts logs out all users in your WordPress website. You can repeat this process every time you feel someone is hacking your website.