Secure Password Generator

A secure password generator produces random passwords using a cryptographically secure random number source.

Passwords are generated from the Web Crypto API in the browser, or Node’s crypto module through the API, with rejection sampling so every character is uniformly distributed. Nothing is transmitted or stored when you generate in the browser.

Options

NameTypeDefaultDescription
countinteger5How many records to return, from 1 to 1000.
lengthinteger16Password length, 4 to 128.
symbolsbooleantrueInclude punctuation characters.
numbersbooleantrueInclude digits.
uppercasebooleantrueInclude upper-case letters.

Use cases

  • Test account credentials: Create strong passwords for seeded test accounts.
  • Password policy testing: Check length and character-class rules against generated candidates.

REST API

GET /api/v1/passwords

curl "https://ukaddressgenerator.org/api/v1/passwords?count=5"
{ "status": "success", "count": 1, "data": ["k7#Qm2vT!pR9wZ4x"] }

Frequently asked questions

Is it safe to use these as real passwords?

Passwords generated in your browser never leave your device. Passwords generated through the API travel over the network, so use the browser tool for anything you intend to rely on, and prefer a password manager for personal credentials.

Is the randomness secure?

Yes. It uses the platform cryptographic random source with rejection sampling to avoid the modulo bias that a naive implementation introduces.

Related tools