Configuration

The encryption key

An optional one-line addition to wp-config.php that keeps your credential encryption key out of the database.


Your API keys and mail credentials are encrypted before they are stored, whether or not you do anything on this page. The message on the IronMaps™ dashboard is not a warning that something is wrong. It offers an optional improvement: keeping the encryption key in your wp-config.php file instead of in the database, so that a copy of your database on its own could not be used to read your credentials.

It is optional. Everything works exactly the same without it, and the note can be dismissed.

Set it up

Add one line to wp-config.php, above the line that reads "That's all, stop editing":

define('IRONMAPS_ENCRYPTION_KEY', 'your long random value');

It sits alongside the security keys WordPress already keeps in that file, and it looks much the same. The value must be at least 16 characters, and we suggest 64 random characters to match the length WordPress uses for its own keys.

Generating a value

Any long random string works. Three convenient sources:

  • A password manager. Generate a 64-character password and paste it in.
  • The WordPress secret-key service. Visit https://api.wordpress.org/secret-key/1.1/salt/ and copy one of the generated values.
  • The command line, if you are comfortable there:
openssl rand -base64 48

What happens in each situation

  • No constant defined. Everything works. The dashboard shows a dismissible note offering this option, and dismissing it is per user and remembered.
  • A value shorter than 16 characters. It is not used. Your key stays in the database, a notice explains it, and nothing is broken.
  • The value is lost or changed after your keys were sealed with it. The dashboard shows an error asking you to restore the exact value. There is no self-service reset, which is the point of the protection. Restoring the original value recovers everything; otherwise, re-enter your credentials after setting a new value.

What it does and does not protect

The constant moves the encryption key out of the database. It protects against someone holding a copy of your database alone. It does not protect against someone with full access to your server files, who could read wp-config.php itself, and no setting can. Uninstalling IronMaps™ leaves the line in wp-config.php untouched, since that file belongs to you.

If you would rather not edit that file yourself, your web developer can do it in a minute, or contact our support team and we will walk you through it.

Still stuck? A real person usually replies within one business day.

Contact support