RevealTheme logo

Generatore di salt per WordPress

Genera nuove chiavi di autenticazione e salt per il suo wp-config.php: viene eseguito nel suo browser tramite crypto.getRandomValues().

define('AUTH_KEY', '&Jv@[yc9v{{XA,{D40.ugZ6aGWr_VqctP.&dqoMXd25b3]!wCBz^-odCe.oAB-U&');
define('SECURE_AUTH_KEY', 'sC(-H$$t2iZ2BwgO??T])mtrVi+%ACa?H2dvr=v%_}9Q^KrX-TVN7N62!_ZP^)CQ');
define('LOGGED_IN_KEY', 'thK8g3l2w5#Ei.Yk<QT,]-6h=HLB(iXnQ!9,((,t.v,JXWx{Yc}#L+J}5Y&*qq*C');
define('NONCE_KEY', '(f}o5dMpfo950<,hq-x]xlr8yAr{i{EAK0U)Y7AuA,q0hcLp6r7,&p}_yEXXO0Ui');
define('AUTH_SALT', 'CQ=>k1,>x=_+)cI<Z7oUH>2l^EtvV-DLoVj!jDBkEu()epR%gDXEu]kQX3ai_)Ft');
define('SECURE_AUTH_SALT', 'xEKe^->)Z#J3w?IXy{Qifs_ad!m,C3]7nP*IEHP6X%q0CwO3#yU6gC[6w<KStv_m');
define('LOGGED_IN_SALT', 'ORP?hLM04Yje#Vu74GiAJBmywq]wh7OOD^PVL?g=N>(g<tm)U.3,qa)nX%X?t4s<');
define('NONCE_SALT', '3oq#>&e?S?(RhOr,fCxm=%nStmX5kzAtm!N3rUdgm}O4*+jc^_.#?QV.hk[rcdRk');

Come usare questo strumento

  1. 1

    Fai clic su Rigenera per produrre nuovi salt.

  2. 2

    Copiali tutti negli appunti.

  3. 3

    Incollali sopra il blocco AUTH_KEY esistente in wp-config.php.

  4. 4

    Tutti gli utenti verranno disconnessi (i cookie vengono invalidati): è previsto.

Che cos'è il generatore di salt per WordPress?

WordPress utilizza otto costanti in wp-config.php per cifrare i cookie e applicare il salt agli hash delle password. Ognuna deve essere una stringa casuale lunga. L'endpoint ufficiale api.wordpress.org/secret-key le fornisce, ma questo strumento le genera localmente tramite il generatore crittografico di numeri casuali del suo browser, così non attraversano mai la rete.

Casi d'uso comuni

  • Setting up a brand-new WordPress install and replacing the placeholder 'put your unique phrase here' lines in wp-config.php.

  • Rotating keys after a suspected compromise to force-log-out every session and invalidate stolen auth cookies.

  • Off-boarding an admin or contractor and wanting to kill any sessions they may still hold.

  • Periodic security hygiene on a production site, swapping in fresh salts every several months.

  • Generating salts on an air-gapped or restricted machine where you would rather not call an external endpoint.

  • Cloning a site to staging and giving the copy its own distinct keys so the two environments do not share cookie signatures.

Domande frequenti

Quando devo ruotare i salt?▼
Dopo qualsiasi compromissione del sito, quando elimina un utente amministratore compromesso o come prassi di sicurezza periodica (ogni 6-12 mesi).
Perché la generazione locale?▼
Sebbene api.wordpress.org sia affidabile, generarli localmente significa che il materiale segreto non ha alcuna esposizione in rete.

Strumenti correlati