Skip to main content
Home

Built and signed on GitHub Actions

Generates an object of default WordPress salts (or any other string). No internet required.

This package works with Node.js, Deno, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
11 months ago (5.0.1)

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

License

This work is licensed under The MIT License.

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@idleberg/wordpress-salts

Import symbol

import * as wordpress_salts from "@idleberg/wordpress-salts";
or

Import directly with a jsr specifier

import * as wordpress_salts from "jsr:@idleberg/wordpress-salts";

Add Package

pnpm i jsr:@idleberg/wordpress-salts
or (using pnpm 10.8 or older)
pnpm dlx jsr add @idleberg/wordpress-salts

Import symbol

import * as wordpress_salts from "@idleberg/wordpress-salts";

Add Package

yarn add jsr:@idleberg/wordpress-salts
or (using Yarn 4.8 or older)
yarn dlx jsr add @idleberg/wordpress-salts

Import symbol

import * as wordpress_salts from "@idleberg/wordpress-salts";

Add Package

vlt install jsr:@idleberg/wordpress-salts

Import symbol

import * as wordpress_salts from "@idleberg/wordpress-salts";

Add Package

npx jsr add @idleberg/wordpress-salts

Import symbol

import * as wordpress_salts from "@idleberg/wordpress-salts";

Add Package

bunx jsr add @idleberg/wordpress-salts

Import symbol

import * as wordpress_salts from "@idleberg/wordpress-salts";