README
wp-salts
Generates an object of default WordPress salts (or any other string) without the need of an internet-connection
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