PwdGen← Random Password Generator

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 --symbols

Node.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-core

ESM

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

ParameterValues
modepassword, passphrase, hex, base64url
count1–20
length8–128 (password), 16–128 (hex/base64url)
words3–8
separatorhyphen, space, underscore, dot

Local browser utilities

These reviewed tools run in the browser for common developer encoding, hashing, identifier, and random-choice workflows.

    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.

    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.