wp-salts
v5.0.1
Published
Generates an object of default WordPress salts. Fully offline.
Downloads
79
Maintainers
Readme
wp-salts
Generates an object of default WordPress salts. Fully offline.
Installation
npm install wp-salts -S
Usage
wpSalts(keys: string | string[], length?: number)
Example:
import { wpSalts } from 'wp-salts';
// Standard WordPress salts
wpSalts();
// Custom salts
wpSalts('SECURE_AUTH_KEY');
wpSalts(['AUTH_KEY', 'AUTH_SALT'], 128);
Note: The minimum length of each salt is 8-bit (64 characters)
Credits
Related
License
This work is licensed under The MIT License.