Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Django Secret Key GeneratorWPA Key GeneratorPassword Generator.env File GeneratorRandom NanoID Generator
Home Page > Miscellaneous > Key Generators

WordPress Secret Key Generator

Generate cryptographically secure WordPress security keys and salts for your wp-config.php file. One-click copy, key strength analysis, and step-by-step installation guide.

Free to useNo sign-up requiredUpdated Feb 2026
WordPress Secret Key GeneratorTry it now — free ▼
🛡 Keys are generated using a cryptographically secure random number generator (CSPRNG). They are never stored, logged, or cached on the server.

Embed WordPress Secret Key Generator Widget

About WordPress Secret Key Generator

The WordPress Secret Key Generator creates cryptographically secure security keys and salts for your wp-config.php file. These 8 unique strings protect user sessions, prevent cookie forgery, and defend against CSRF attacks. Generated using a CSPRNG (Cryptographically Secure Pseudo-Random Number Generator), each key is never stored or logged.

What Are WordPress Security Keys and Salts?

WordPress uses 8 cryptographic constants in your wp-config.php file to secure authentication. Four are keys (primary encryption secrets) and four are salts (additional randomness that strengthens the hash):

🔑 AUTH_KEY
Encrypts the standard HTTP authentication cookie for logged-in users.
🔒 SECURE_AUTH_KEY
Encrypts the HTTPS (SSL) authentication cookie for secure connections.
👤 LOGGED_IN_KEY
Verifies user identity across page loads through the logged-in cookie.
🛡 NONCE_KEY
Protects nonce tokens that prevent CSRF (cross-site request forgery) attacks.
⚙ AUTH_SALT
Adds randomness to AUTH_KEY, making cookie hashes harder to crack.
🔧 SECURE_AUTH_SALT
Extra randomness for SECURE_AUTH_KEY, strengthening HTTPS authentication.
🧩 LOGGED_IN_SALT
Strengthens the logged-in cookie against brute-force decoding attacks.
🎲 NONCE_SALT
Additional randomness for nonce tokens, adding another layer of protection.

How Keys and Salts Work Together

When a user logs in to WordPress, the system creates an authentication cookie. This cookie is encrypted using a combination of the security key and its corresponding salt. The key provides the primary encryption secret, while the salt adds unpredictable data into the hashing algorithm (HMAC), making it exponentially harder for an attacker to reverse-engineer the cookie value even if they intercept it.

Without proper keys and salts, WordPress uses fallback values that are weaker and identical across installations, making your site vulnerable to cookie-based attacks.

How to Install Your Security Keys

  1. Generate keys using this tool with your preferred settings.
  2. Copy all keys using the "Copy All Keys" button.
  3. Open wp-config.php via FTP/SFTP. This file is located in your WordPress root directory.
  4. Find the keys section — look for the comment /* Authentication Unique Keys and Salts */.
  5. Replace all 8 define() lines with your newly generated keys, then save and upload.

Note: Changing security keys will log out all currently logged-in users. They will need to log in again with their password. This is expected behavior and is actually useful for security purposes.

When Should You Change Your Security Keys?

ScenarioAction
New WordPress installationGenerate and add keys immediately
Suspected hack or breachRegenerate all keys immediately
Unknown admin accounts foundRegenerate keys + change passwords
After removing malwareRegenerate keys as part of cleanup
Routine operation (no issues)No need to change regularly
Migrating to a new hostConsider generating fresh keys

Key Length and Entropy

Entropy measures the randomness (unpredictability) of your keys in bits. Higher entropy means more possible combinations an attacker would need to try. For context:

  • 128 bits — Minimum recommended for most cryptographic applications
  • 256 bits — Considered unbreakable with current technology (AES-256 level)
  • 400+ bits — The default 64-character WordPress key with full charset provides approximately 406 bits of entropy

Even the standard 64-character key with the full character set far exceeds what any brute-force attack could crack.

Security Best Practices

  • Never share your keys — treat them like passwords
  • Use unique keys for each WordPress installation
  • Do not reuse keys across multiple sites
  • Keep wp-config.php secure — ensure proper file permissions (typically 440 or 400)
  • Keys alone are not enough — also use strong passwords, keep WordPress updated, and use a security plugin

Frequently Asked Questions

What are WordPress security keys and salts?

WordPress security keys and salts are cryptographic strings stored in wp-config.php that encrypt data in user cookies. There are 4 keys (AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY) and 4 corresponding salts. Together, they make it virtually impossible for attackers to forge authentication cookies.

How do I add security keys to wp-config.php?

Open your wp-config.php file (in the WordPress root directory), find the section labeled "Authentication Unique Keys and Salts", and replace the existing define() lines with your newly generated keys. Save the file and re-upload it via FTP/SFTP. All users will need to log in again.

When should I change my WordPress security keys?

Change your security keys immediately if you suspect your site was hacked, if you find unknown admin accounts, or after removing malware. You do not need to rotate keys on a regular schedule under normal circumstances. Changing keys will force all logged-in users to re-authenticate.

Is this generator secure? Are keys stored anywhere?

Yes, this generator uses Python's cryptographically secure secrets module (CSPRNG). Keys are generated server-side on each request and are never stored, logged, or cached. The response includes a no-cache header to prevent browser caching.

What is the difference between WordPress keys and salts?

WordPress keys encrypt cookie data, while salts add extra randomness to the encryption process. Keys act as the primary encryption secret, and salts make brute-force attacks exponentially harder by introducing additional unpredictable data into the hash function. Both are essential for strong WordPress security.

What happens if I change my WordPress security keys?

Changing your WordPress security keys will invalidate all existing authentication cookies. This means every logged-in user (including you) will be logged out and need to log in again with their username and password. This is actually a security feature, useful after a breach.

Additional Resources

Reference this content, page, or tool as:

"WordPress Secret Key Generator" at https://MiniWebtool.com/wordpress-secret-key-generator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: Feb 13, 2026

Key Generators:

Top & Updated:

Instagram User ID LookupRandom PickerRandom Name Picker WheelImage ResizerFacebook User ID LookupLine CounterSort NumbersRSD Calculator - Relative Standard DeviationFPS ConverterRandom Quote GeneratorJob FinderRemove Spaces🖱️ Click Counter⬛ Aspect Ratio CalculatorMAC Address Lookup📷 OCR / Image to TextWord to Phone Number ConverterStandard Error CalculatorSun, Moon & Rising Sign Calculator 🌞🌙✨MAC Address GeneratorRandom Credit Card GeneratorERA CalculatorSum CalculatorMerge VideosPercent Off CalculatorLog Base 10 CalculatorRoman Numerals ConverterSHA256 Hash GeneratorCm to Feet and Inches ConverterJulian Date ConverterMP3 LooperWeight Loss CalculatorName RandomizerBatting Average CalculatorSlope and Grade CalculatorAdd Text to ImageNumber of Digits CalculatorOctal CalculatorFeet and Inches to Cm ConverterRandom IMEI GeneratorImage SplitterBitwise CalculatorPhone Number ExtractorSquare Root (√) CalculatorRandom Activity GeneratorAudio SplitterIP Subnet CalculatorRandom Fake Address GeneratorInvisible Text GeneratorRandom Superpower GeneratorVertical Jump CalculatorText FormatterRandom Writing Prompt GeneratorVideo CompressorQuotient and Remainder CalculatorRandom Truth or Dare GeneratorSalary Conversion CalculatorOutlier CalculatorEquation of a Line CalculatorNumber to Word ConverterHalfway Date CalculatorBCD ConverterFirst n Digits of PiBinary to Gray Code ConverterFraction CalculatorFile Size ConverterCaffeine Overdose CalculatorEstimation CalculatorRandom Movie PickerSun Position CalculatorLunar Calendar ConverterCompound Growth CalculatorRandom Poker Hand GeneratorLeap Years ListYouTube Channel StatisticsName Number CalculatorMultiplication CalculatorBolt Torque CalculatorSHA512 Hash GeneratorLong Division CalculatorRandom Birthday GeneratorBingo Card GeneratorMaster Number CalculatorMD5 Hash GeneratorLimit Calculator🔍 Plagiarism Checker📅 Date CalculatorInequality SolverVideo to Image ExtractorModulo CalculatorRandom Video Thumbnail GeneratorPercent Growth Rate CalculatorMagic 8-BallEmail ExtractorCone Flat Pattern (Template) GeneratorImage Compressor🔊 Tone GeneratorMultiple Fraction CalculatorCompare Two StringsDomain and Range CalculatorAI Language DetectorFlip Video🎰 Gacha Pity CalculatorStair CalculatorRandom Meal GeneratorOPS CalculatorHebrew Calendar ConverterURL ExtractorWord Ladder GeneratorNumber ExtractorArc Length CalculatorBcrypt Hash Generator / CheckerLong Multiplication CalculatorRemove Empty LinesRandom Emoji GeneratorBreak Line by CharactersRandom User-Agent GeneratoreBay Fee CalculatorAverage Deviation CalculatorPercent to PPM ConverterRandom Number PickerImage EnhancerAPI TesterSlugging Percentage CalculatorWord Scramble GeneratorRadical SimplifierRandom Loadout GeneratorSocial Media Username Checker📊 Bar Graph MakerScientific Notation CalculatorTrigonometric Equation SolverDay of the Year Calculator - What Day of the Year Is It Today?Day of Year CalendarList of Prime NumbersBroken Link CheckerRandom Group GeneratorImage CropperWhat is my Zodiac Sign?Algebraic Expression SimplifierAstrological Element Balance CalculatorOn Base Percentage CalculatorAI Text HumanizerPaycheck Calculator (Take-Home Pay)Scientific Notation to Decimal ConverterLove Compatibility CalculatorHEX CalculatorAdd Prefix and Suffix to TextRandom Math Problem GeneratorRemove Lines Containing...Random Object GeneratorYouTube Tag ExtractorDice RollerIP Address to Hex ConverterRandom Tournament Bracket GeneratorSigma Notation Calculator (Summation)Small Text Generator ⁽ᶜᵒᵖʸ ⁿ ᵖᵃˢᵗᵉ⁾WAR CalculatorList RandomizerRemove Leading Trailing SpacesSocial Media Post Time OptimizerProportion CalculatorRandom Line PickerAI Punctuation AdderPercentile CalculatorFirst Day of AutumnBackronym GeneratorAudio ExtractorRandomize NumbersVideo SplitterIP Address to Binary ConverterHeight Percentile CalculatorOrder of Operations Calculator (PEMDAS)Random Chord GeneratorChinese Gender PredictorRatio to Percentage CalculatorAdjust Video SpeedColor InverterParallel and Perpendicular Line CalculatorDMS to Decimal Degrees ConverterSum of Positive Integers CalculatorField Goal Percentage CalculatorSquare Numbers ListArithmetic Sequence CalculatorWHIP CalculatorRandom PIN GeneratorSlope Intercept Form CalculatorTime Duration CalculatorSales Tax CalculatorVideo CropperJulia Set GeneratorMercury Retrograde CalendarSaturn Return CalculatorWater Usage CalculatorConnect the Dots GeneratorNumber Pattern FinderLogarithmic Equation SolverHelium Balloon Lift CalculatorConvert Video for Twitter (X)Gamertag GeneratorTeam Name GeneratorNickname GeneratorRap Name GeneratorBand Name GeneratorFantasy Name GeneratorFortune Cookie GeneratorDrawing Idea GeneratorJournal Prompt GeneratorDaily Affirmation GeneratorCompliment GeneratorPickup Line GeneratorDad Joke GeneratorRandom Joke GeneratorRandom Fact GeneratorTrivia Question GeneratorHangman Word GeneratorPictionary Word GeneratorCharades GeneratorIcebreaker Question GeneratorNever Have I Ever GeneratorWould You Rather GeneratorRandom Question GeneratorAI Dream InterpreterAI Thank-You Note GeneratorAI Wedding Speech GeneratorAI Press Release GeneratorAI Product Description GeneratorAI Video Script GeneratorAI YouTube Title & Description GeneratorAI Instagram Caption GeneratorAI LinkedIn Headline & Bio GeneratorAI Resume Bullet GeneratorAI Cover Letter GeneratorAI Rap Lyrics GeneratorPDF Flatten ToolUnlock PDF (Owner-Password Removal)PDF to Text ExtractorPDF Page ExtractorPDF Word CounterProtect PDFAdd Page Numbers to PDFReorder PDF PagesDelete PDF PagesRotate PDFJPG to PDFPDF to JPGCompress PDFSplit PDFMerge PDFPT to PX ConverterPX to REM ConverterTola to Gram ConverterIndian Land Unit ConverterMcg to Mg ConverterAI Song Lyrics GeneratorAI Poem GeneratorAI Story GeneratorAI TranslatorAI Text SummarizerMg to Ml ConverterMPH to KMH / KMH to MPHKnots to MPH ConverterCubic Meters to Cubic FeetCubic Feet to Cubic Yards ConverterSquare Feet to Square Meters ConverterSquare Meters to Square Feet ConverterOz to ML ConverterML to Oz ConverterGallons to Liters ConverterLiters to Gallons ConverterKg to Stone ConverterStone to Kg ConverterInches to MM ConverterMM to Inches ConverterMiles to Km ConverterKm to Miles ConverterFahrenheit to Celsius ConverterCelsius to Fahrenheit ConverterBackpack Size CalculatorSurfboard Volume CalculatorTennis Grip Size CalculatorHelmet Size CalculatorGlove Size CalculatorHat Size ConverterSnowboard Size CalculatorSki Size CalculatorBike Size CalculatorSpeedrun Split TimerStableford CalculatorDart Checkout CalculatorBowling Economy CalculatorBatting Strike Rate CalculatorNet Run Rate CalculatorK/D Ratio CalculatorElo Rating CalculatorHeart Rate Recovery CalculatorHiking Time CalculatorRowing Pace CalculatorRunning Age-Grading CalculatorFTP & Power Zones CalculatorBeep Test CalculatorACFT Score CalculatorWilks & DOTS CalculatorWheel Offset CalculatorTire Load Index & Speed Rating LookupCost Per Mile CalculatorLease Buyout CalculatorOctane Mix Calculator2-Stroke Oil Mix CalculatorEngine Displacement CalculatorCouch Fit CalculatorFirewood Cord CalculatorAir Purifier CADR CalculatorDehumidifier Size CalculatorCeiling Fan Size CalculatorCurtain Size CalculatorRug Size CalculatorPicture Hanging Height CalculatorTV Mounting Height CalculatorTV Size CalculatorPond Volume & Liner CalculatorPool Salt CalculatorPool Volume CalculatorWater Heater Size CalculatorEpoxy Resin CalculatorBaluster Spacing CalculatorBaseboard & Trim CalculatorSiding CalculatorDeck Stain CalculatorGrass Seed CalculatorSod CalculatorAsphalt CalculatorCubic Yard CalculatorAntenna Length CalculatorConduit Fill CalculatorSeries/Parallel Capacitor CalculatorInductive Reactance CalculatorRoom Lighting CalculatorLux to Lumens CalculatorLumens to Watts ConverterGenerator Size CalculatormAh to Wh Converter3-Phase Power CalculatorkVA CalculatorAmps to Watts CalculatorWatts to Amps CalculatorResistors in Series CalculatorFriction CalculatorInclined Plane CalculatorMechanical Advantage CalculatorSpeed of Sound CalculatorWave Speed CalculatorBuoyancy CalculatorTerminal Velocity Calculatorde Broglie Wavelength CalculatorPhoton Energy CalculatorE=mc² CalculatorTime Dilation CalculatorKepler's Third Law CalculatorEscape Velocity CalculatorGravitational Force CalculatorBeer-Lambert Law CalculatorNernst Equation CalculatorOsmotic Pressure CalculatorBoiling Point Elevation CalculatorFreezing Point Depression CalculatorPercent Composition CalculatorNormality CalculatorMolality CalculatorpKa to Ka ConverterHenderson-Hasselbalch CalculatorTheoretical Yield CalculatorLimiting Reactant CalculatorElectron Configuration CalculatorInteractive Periodic TableAI Lesson Plan GeneratorAI Quiz GeneratorCitation Generator (APA/MLA/Chicago)Attendance Percentage CalculatorAP Score CalculatorACT Score CalculatorSAT Score CalculatorYouTube Earnings EstimatorRandom RPG Character Generator
Home Page > Miscellaneous > Key Generators > WordPress Secret Key Generator