Title: Post-hack, adding security keys
Last modified: August 20, 2016

---

# Post-hack, adding security keys

 *  [mattshepherd](https://wordpress.org/support/users/mattshepherd/)
 * (@mattshepherd)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/post-hack-adding-security-keys/)
 * So I’ve been reading the article on what to do when you’re hacked, and the related
   info about adding AUTH_KEY and AUTH_SALT to the wp-config.php in the main WP 
   directory.
 * If they don’t exist in the current wp-config, do I just… make them and toss them
   in there with the other define statements?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Paweł Knapek](https://wordpress.org/support/users/adpawl/)
 * (@adpawl)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/post-hack-adding-security-keys/#post-2745270)
 * You can generator [https://api.wordpress.org/secret-key/1.1/salt/](https://api.wordpress.org/secret-key/1.1/salt/)
 *  Thread Starter [mattshepherd](https://wordpress.org/support/users/mattshepherd/)
 * (@mattshepherd)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/post-hack-adding-security-keys/#post-2745271)
 * Thank you, adpawl. I’ve done that. The question is, what do I do with them once
   I’ve generated them? They don’t exist to be replaced in wp-config: do I just 
   add them to the wp-config after all the other define statements?
 *  [Paweł Knapek](https://wordpress.org/support/users/adpawl/)
 * (@adpawl)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/post-hack-adding-security-keys/#post-2745272)
 * You should add it to your wp-config.php
    ….anywhere between <?php and ?> Look
   into sample wp-config-sample.php

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Post-hack, adding security keys’ is closed to new replies.

## Tags

 * [auth](https://wordpress.org/support/topic-tag/auth/)
 * [hacking](https://wordpress.org/support/topic-tag/hacking/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Paweł Knapek](https://wordpress.org/support/users/adpawl/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/post-hack-adding-security-keys/#post-2745272)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
