WordPress keys and salt in wp-config.php work as an important security measure. These “impossible to guess” and hard to remember and understand keys work as salt for WordPress Cookies data store in your computer for your WordPress website information. These security keys ensure better encryption of data.
How to use WordPress Key Generator
To generate these 8 keys we can use WordPress Key Generator. Click on the following link and copy the generated code. (The old link to generate 4 keys was found at this link)
Next we need to open our wp-config.php and find the following code
[php]define(‘AUTH_KEY’, ‘put your unique phrase here’);
define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’);
define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’);
define(‘NONCE_KEY’, ‘put your unique phrase here’);
define(‘AUTH_SALT’, ‘put your unique phrase here’);
define(‘SECURE_AUTH_SALT’, ‘put your unique phrase here’);
define(‘LOGGED_IN_SALT’, ‘put your unique phrase here’);
define(‘NONCE_SALT’, ‘put your unique phrase here’);[/php]
(In earlier versions, prior to 2.6 of WordPress there had been less keys, three or four i think)
Next we need to replace the above lines of code with the code we have generated via WordPress Key Generator. As the following:
[php]define(‘AUTH_KEY’, ‘`nWS.{<b+{+63Vu:|`s>IHyd<(|.vDN-wfrHmWc=jdzTctrZB{^Q|[=W0N+.7uRh’);
define(‘SECURE_AUTH_KEY’, ‘tWa$kO]XOi&Yr5D-^S|XQIV+dAZ59w~y)jst`2sNwjGkBvK/V=8vN7H:u+g6?_wg’);
define(‘LOGGED_IN_KEY’, ‘o0>#UmsATOJ*-HaT-nR^:,7t6Ek=@u+aJY;!YmLYUsKs3a5HdnpN1.-/6wH!;`5f’);
define(‘NONCE_KEY’, ‘Pla7/7+}(DylKJ|}llnT 8Fzwts*Q]H5.mL-W=(^6BRrCJ7/eZ~t[-ouwO81tlr3’);
define(‘AUTH_SALT’, ‘T2t–I!EZ|T}}>+h-5!sU7G%Pph+%MvL776QRTB<5.|`HuWjtAfI8Wd%ht|0eVpY’);
define(‘SECURE_AUTH_SALT’, ‘jGoTX|-[8NcjCoM#([T,hrPR=-av@9Od|^#“r w <99QS{2E>++i?U0EEtX$Z1R’);
define(‘LOGGED_IN_SALT’, ‘xOjO[My# iANGsd&-<+^dpQ!XN1(R8|Q7fuPn!0MjN+DI5cg[URCd%5k~-O,}},U’);
define(‘NONCE_SALT’, ‘R,7^!uf{+RE5 ?vsofWV%Qqcr!(*E|[bT(n:X+if#80KI^3m-iP[@%%WCXX-8mI[‘);[/php]
That’s it how you generate Keys and Salt for your website’s wp-config.php file using WordPress Key Generator.