wp-salts
TypeScript icon, indicating that this package has built-in type declarations

5.0.1 • Public • Published

wp-salts

Generates an object of default WordPress salts. Fully offline.

License Version: npm Version: jsr CI: Node CI: Deno

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.

Package Sidebar

Install

npm i wp-salts

Weekly Downloads

16

Version

5.0.1

License

MIT

Unpacked Size

5.7 kB

Total Files

5

Last publish

Collaborators

  • idleberg