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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.15latest

Version History

VersionDownloads (Last 7 Days)Published
5.0.15
5.0.06
4.0.01
3.0.01
2.0.22
2.0.10
2.0.00
1.2.01
1.1.20
1.1.10
1.1.01
1.0.00
0.3.40
0.3.30
0.3.20
0.3.10
0.3.00
0.2.01
0.1.10
0.1.00

Package Sidebar

Install

npm i wp-salts

Weekly Downloads

18

Version

5.0.1

License

MIT

Unpacked Size

5.7 kB

Total Files

5

Last publish

Collaborators

  • idleberg