WordPress Security Keys (Salts) Generator

Create the eight keys for wp-config.php, AUTH_KEY and friends, with a secure random generator in your browser. Copy them as PHP, .env or WP-CLI commands, and swap them to log everyone out.

Generate keys

Keys

8 keys64 characters eachSecure in-browser generator

Swap the keys in three steps

Open wp-config.php

In the cPanel File Manager, inside your site folder, choose Edit. Keep a copy first.

Replace the eight lines

Find AUTH_KEY, delete the eight old lines and paste the new ones in their place.

Save and sign in again

Every user is logged out at once, you included. That is the point after any hack or leak.

What do these keys do?

WordPress uses them to sign the cookies that keep you logged in. Anyone holding the keys could in theory forge a session, so they stay secret and get replaced at any doubt. You do not need to store them anywhere else; you will never be asked for them.

To protect the file itself, see protecting wp-config; for a complete file use the wp-config generator.

Example: a staff member left who had an account

Delete the account or change its role first, then swap the keys. Any session they still have open on another device ends, even with the browser left open. Then change other admin passwords if they knew them.

Key terms

Short definitions of what you meet along the way.

Salt
A random value mixed with data before hashing or signing.
Session
Your logged-in state stored by the browser in cookies.
Nonce
A one-time token that protects forms from forged requests.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

When should I change the keys?

After a hack, a leaked password, a staff member with access leaving, or if the current keys are empty or copied from an example.

Is any content lost?

No, only sessions change.

Do you store the keys?

No, they are made in your browser and never sent.

A fast WordPress site without the headache?

WordPress-tuned hosting with one-click install, backups and Arabic support.

Contact us on WhatsApp