Developer tools
PwdGen Developer API and Local CLI
Use the local SDK and CLI for real credentials, or call the rate-limited public API for disposable test data.
Recommended: generate locally
The SDK and CLI use Web Crypto on your device and never call PwdGen. Use this path for real credentials and application secrets.
npm install --global pwdgen-cli
pwdgen generate --mode password --length 20 --count 5 --symbolsNode.js
import { generate } from 'pwdgen-cli';
const password = generate({ mode: 'password', length: 20, symbols: true });Open-source core: pwdgen-core
pwdgen-core is a dependency-free ESM reference package for the shared Web Crypto generation model. The GitHub source and npm package are public.
View source on GitHub · View package on npm
Install from npm
npm install pwdgen-coreESM
import { PwdGenCore } from 'pwdgen-core';
const pwdgen = new PwdGenCore();
const password = pwdgen.generate({ length: 24, symbols: true });
const entropy = pwdgen.entropyBits({ length: 24, symbols: true });Public demo API
The API returns values through a Vercel Function over TLS. It is intended for examples, fixtures, and disposable test data—not production secrets.
Never send an existing password, API key, seed phrase, or secret to this endpoint.
curl
curl 'https://pwdgen.xyz/api/v1/random?mode=password&length=20&count=1&symbols=true'Python
import requests
result = requests.get(
'https://pwdgen.xyz/api/v1/random',
params={'mode': 'hex', 'length': 32}
).json()Supported API parameters
| Parameter | Values |
|---|---|
mode | password, passphrase, hex, base64url |
count | 1–20 |
length | 8–128 (password), 16–128 (hex/base64url) |
words | 3–8 |
separator | hyphen, space, underscore, dot |
Local browser utilities
These reviewed tools run in the browser for common developer encoding, hashing, identifier, and random-choice workflows.
- UUID v4 GeneratorGenerate RFC 4122 version 4 UUIDs locally with the browser Web Crypto API.
- Base64 Encoder / DecoderEncode and decode Unicode text to Base64 locally without sending the input to a server.
- SHA-256 Hash CalculatorCalculate a SHA-256 text digest locally with SubtleCrypto and copy the hexadecimal result.
- URL Encoder / DecoderEncode and decode URL components locally for query strings, redirect parameters, and API examples.
- Random Number PickerPick fair random integers in a chosen range using Web Crypto rejection sampling.
- Coin FlipperFlip a fair virtual coin locally with Web Crypto randomness and a lightweight Canvas animation.
PWA and Chrome extension
PwdGen can be installed as a PWA from the browser. A minimal Chrome extension package is prepared for Chrome Web Store review and runs offline without external scripts.
- PWA manifestInstallable web app metadata for browsers that support progressive web apps.
- Open-source SDK and CLIShared local generation logic for command-line and browser-compatible workflows.
Workflow distribution references
The workspace includes prepared Raycast, Alfred, and local Node CLI references. They reuse pwdgen-core, run offline, and do not send generated passwords to PwdGen.
- Local Node CLI
pwdgen -l 16 -spwdgen -l 16 -s and JSON output examples are prepared in the local distribution kit. - Raycast commandPrepared command source copies a locally generated password and prints a methodology link.
- Alfred workflowPrepared Script Filter source returns a copyable local password without network requests.
- IPFS mirror workflowMirror publication writes CID reports and optional manual ENS update drafts; it does not change canonical URLs.
- Short-video review packageVideo scripts generate local review packages, subtitles, and captions for human approval.
- Social lead review queueMonitoring writes candidate replies for human review and never posts automatically.