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

4.0.0 • Public • Published

wp-salts

License Version Build

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

Package Sidebar

Install

npm i wp-salts

Weekly Downloads

10

Version

4.0.0

License

MIT

Unpacked Size

7.24 kB

Total Files

8

Last publish

Collaborators

  • idleberg