Password Generator
Generate cryptographically secure passwords with configurable character sets.
GET
1 credit
/v1/password-gen
curl "https://devtools.toolkitapi.io/v1/password-gen?length=24&count=2"
import httpx
resp = httpx.get(
"https://devtools.toolkitapi.io/v1/password-gen?length=24&count=2",
)
print(resp.json())
const resp = await fetch("https://devtools.toolkitapi.io/v1/password-gen?length=24&count=2", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response
200 OK
{
"passwords": [
"kR9!mZx&Lp2@Qw7$nYcBvT#j",
"Hf5^Wd3*Jb8+Ng6!Xs1@Ry4%"
],
"length": 24,
"charset_size": 91,
"entropy_bits": 156.08
}
Try It Live
Live Demo
Response
Description
Generate cryptographically secure passwords with configurable character sets.
How to Use
1
1. Send a GET request with optional parameters to configure the password.
2
2. Toggle character classes on/off with `uppercase`, `lowercase`, `numbers`, and `symbols`.
3
3. Generate up to 100 passwords in a single request using `count`.
About This Tool
Password Generator creates cryptographically secure passwords using Python's `secrets` module. Configure length, character classes, and batch size. The response includes entropy bits so you can assess password strength.
Why Use This Tool
- Account provisioning — Generate initial passwords for new users
- Secret rotation — Create new API keys, tokens, or database passwords
- Security audits — Generate test passwords with specific entropy requirements
Frequently Asked Questions
How is entropy calculated?
Entropy = log₂(charset_size) × length. For example, a 20-character password from a 91-character set has about 130 bits of entropy.
Are the passwords cryptographically secure?
Yes. Passwords are generated using Python's `secrets` module which uses the operating system's cryptographically secure random number generator.
Start using Password Generator now
Get your free API key and make your first request in under a minute.