Generates an object of default WordPress salts. Fully offline.
npm install wp-salts -S
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)
This work is licensed under The MIT License.