Skip to content

Commit

Permalink
cms@461a5f9
Browse files Browse the repository at this point in the history
Finish 4.13.10
  • Loading branch information
shinybrad committed Jan 15, 2025
1 parent f6ae7b4 commit e33dae1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/.artifacts/cms/4.x/config-general.md
Original file line number Diff line number Diff line change
Expand Up @@ -3538,7 +3538,17 @@ Defined by
A private, random, cryptographically-secure key that is used for hashing and encrypting data in [craft\services\Security](craft4:craft\services\Security).
This value should be the same across all environments. If this key ever changes, any data that was encrypted with it will be inaccessible.
::: warning
**Do not** share this key publicly. If exposed, it could lead to a compromised system.
:::
In the event that the key is compromised, a new secure key can be generated with the command:
```sh
php craft setup/security-key
```
Note that if the key changes, any data that is encrypted with it (e.g. user session cookies) will be inaccessible.
```php Static Config
->securityKey('2cf24dba5...')
Expand Down

0 comments on commit e33dae1

Please sign in to comment.