User Rating 0.0
Total Usage 0 times
Category Security
Client-Side Secure
wp-config.php block
// Click 'Generate' to create keys...
Copied to clipboard!
Is this tool helpful?

Your feedback helps us improve.

About

This tool generates the authentication keys and salts required for the wp-config.php file. These keys add a layer of cryptographic randomness to user cookies and passwords stored in the database. Changing these keys invalidates all existing login sessions, forcing every user to log in again - a critical step if you suspect a site compromise.

Unlike online generators that might log your keys, this tool runs entirely in your browser using window.crypto. Your unique keys are mathematically generated locally and never transmitted over the network, ensuring zero-knowledge privacy.

wordpress security salt-generator encryption web-dev

Formulas

The strength of a password or key is defined by its entropy (measured in bits). The WordPress keys generated here utilize a character set S of 85 safe ASCII characters.

Entropy = L × log2N

Where L = 64 (length of string) and N = 85 (character set size). This results in approximately 410 bits of entropy per key, far exceeding the cryptographic requirement for brute-force resistance.

Reference Data

Constant NameFunctionRisk Level
AUTH_KEYUsed to sign authorization cookies for non-SSL admin pages.High
SECURE_AUTH_KEYUsed to sign authorization cookies for SSL admin pages.Critical
LOGGED_IN_KEYUsed to create a cookie for a logged-in user.Medium
NONCE_KEYUsed to sign nonces (tokens) to protect against CSRF attacks.High
AUTH_SALTAdds entropy to the AUTH_KEY hash.High
SECURE_AUTH_SALTAdds entropy to the SECURE_AUTH_KEY hash.Critical
LOGGED_IN_SALTAdds entropy to the LOGGED_IN_KEY hash.Medium
NONCE_SALTAdds entropy to the NONCE_KEY hash.High

Frequently Asked Questions

No. This tool is built with client-side JavaScript. The generation logic happens inside your own browser's memory using the Web Crypto API. No data leaves your device.
It is recommended to change them immediately after migrating a site, if you suspect a hack, or periodically every 6-12 months as a security best practice.
Updating keys in wp-config.php will immediately invalidate all browser cookies. You and all your users will be logged out and required to log in again. It does not affect passwords stored in the database.
These are special characters included to increase the entropy (randomness) of the key. The more diverse the character set, the harder the key is to guess or brute-force.