Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamcryptoki/wordsalt
A simple Go module to generate strong, random security keys for WordPress.
https://github.com/iamcryptoki/wordsalt
go keys salt security wordpress
Last synced: 9 days ago
JSON representation
A simple Go module to generate strong, random security keys for WordPress.
- Host: GitHub
- URL: https://github.com/iamcryptoki/wordsalt
- Owner: iamcryptoki
- Created: 2024-11-07T10:37:14.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-08T09:21:17.000Z (2 months ago)
- Last Synced: 2024-11-08T10:23:57.644Z (2 months ago)
- Topics: go, keys, salt, security, wordpress
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WordSalt
This Go module provides a simple function to generate random security keys for WordPress installations. It generates all 8 keys defined in `wp-config.php`:
- `AUTH_KEY`
- `SECURE_AUTH_KEY`
- `LOGGED_IN_KEY`
- `NONCE_KEY`
- `AUTH_SALT`
- `SECURE_AUTH_SALT`
- `LOGGED_IN_SALT`
- `NONCE_SALT`## Installation
```sh
go install github.com/iamcryptoki/[email protected]
```## Usage
### Command-line
Simply run `wordsalt` in your terminal. The output will be the 8 WordPress security keys, each with a define() statement ready to be copied into your `wp-config.php` file.
Example output:
```php
define('AUTH_KEY', 'pUR_8n#vDLgRLn+lA0CK$5mF^US}>,99Tl eb$)ASF^Ev1P7dMX)X2KJ-t$[');
define('SECURE_AUTH_KEY', 'UrLx|hiUjz76|sH69 f8|C^nbhQ8kC{VyMU>&NX8fI6Kvg9');
define('LOGGED_IN_KEY', 'J4{g.Qj.~n0:_)-ie5VW83Vo$5qHy+mt2kwCff&jLZfl{NPoKqc-%@+Q[5:ZaQE8');
define('NONCE_KEY', 'v&vKo)IG|K`*Vj{Z609C%GW$k`z{G0/Ri;I/A@~Kv-RT!+TIRMKQ-vei;n zpH&h');
define('AUTH_SALT', ')E5u#-j,VhE%obE}~YNDTE)%~C8^$t.2X ^2KubHw.d`');
define('LOGGED_IN_SALT', 'x6c(`Q(&g_>b7pa2fue$M$#1*]Pe[*}ETBpqr8aRUA/Pe$=;zO;L,vXZQU[):5Y?');
define('NONCE_SALT', 'W}ey@Fn0TG~f.w55$8@Qa