Password Generator
Generate cryptographically secure random passwords with customizable complexity. Perfect for user registration, password reset flows, or security tools.
Overview
Use Cases
- User registration systems
- Password reset functionality
- Security tools and applications
- Temporary credential generation
- API key generation
Features
Cryptographically secure random generation (crypto/rand)
Customizable length (8-128 characters)
Optional character sets (uppercase, numbers, symbols)
Automatic strength assessment
Guaranteed character distribution
API Endpoints
Generate Password
Generate a cryptographically secure random password with customizable character sets and length
GET
https://api.requiems.xyz/v1/tech/password
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| length | integer |
Optional | Password length (8-128 characters) |
| uppercase | boolean |
Optional | Include uppercase letters (A-Z) |
| numbers | boolean |
Optional | Include numbers (0-9) |
| symbols | boolean |
Optional | Include special characters (!@#$%^&*()-_=+[]{}|;:,.<>?) |
Try it out
Live DemoRequest
Password length (8-128 characters)
Include uppercase letters (A-Z)
Include numbers (0-9)
Include special characters (!@#$%^&*()-_=+[]{}|;:,.<>?)
Sending request...
Response Fields
| Field | Type | Description |
|---|---|---|
| password | string |
The generated password |
| length | integer |
Length of the generated password |
| strength | string |
Password strength assessment (weak, medium, or strong) |
Code Examples
# Generate 16-character password with all character types
curl "https://api.requiems.xyz/v1/tech/password?length=16&uppercase=true&numbers=true&symbols=true" \
-H "requiems-api-key: YOUR_API_KEY"
# Generate simple 12-character password (lowercase only)
curl "https://api.requiems.xyz/v1/tech/password?length=12" \
-H "requiems-api-key: YOUR_API_KEY"
# Generate 20-character alphanumeric password
curl "https://api.requiems.xyz/v1/tech/password?length=20&uppercase=true&numbers=true" \
-H "requiems-api-key: YOUR_API_KEY"
import requests
url = "https://api.requiems.xyz/v1/tech/password"
headers = {"requiems-api-key": "YOUR_API_KEY"}
params = {
"length": 16,
"uppercase": True,
"numbers": True,
"symbols": True
}
response = requests.get(url, headers=headers, params=params)
result = response.json()['data']
print(f"Password: {result['password']}")
print(f"Strength: {result['strength']}")
const params = new URLSearchParams({
length: 16,
uppercase: true,
numbers: true,
symbols: true
});
const response = await fetch(
`https://api.requiems.xyz/v1/tech/password?${params}`,
{
headers: {
'requiems-api-key': 'YOUR_API_KEY'
}
}
);
const { data } = await response.json();
console.log(`Password: ${data.password}`);
console.log(`Strength: ${data.strength}`);
require 'net/http'
require 'json'
uri = URI('https://api.requiems.xyz/v1/tech/password')
uri.query = URI.encode_www_form(
length: 16,
uppercase: true,
numbers: true,
symbols: true
)
request = Net::HTTP::Get.new(uri)
request['requiems-api-key'] = 'YOUR_API_KEY'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.request(request)
end
data = JSON.parse(response.body)['data']
puts "Password: #{data['password']}"
puts "Strength: #{data['strength']}"
Error Responses
400
bad_request
The length parameter is out of valid range (8-128)
500
internal_error
Failed to generate password (rare cryptographic failure)
Frequently Asked Questions
Strength is based on length and character set diversity. Weak (β€1 point) - short with limited character sets. Medium (2-3 points) - reasonable length with some variety. Strong (β₯4 points) - 16+ characters with multiple character sets (uppercase, numbers, symbols).
Yes. The API uses Go's crypto/rand package which provides cryptographically secure random number generation suitable for security-sensitive applications.
Yes. By default, lowercase letters are always included. You can add uppercase, numbers, and/or symbols by setting the respective parameters to true. This allows you to generate anything from simple lowercase-only passwords to complex passwords with all character types.
Yes, passwords must be at least 8 characters long. The maximum length is 128 characters. This ensures a minimum baseline of security while allowing flexibility for various use cases.
Yes. When you enable a character set (uppercase, numbers, symbols), the algorithm guarantees at least one character from each enabled set will be included in the generated password. Characters are then shuffled using Fisher-Yates algorithm for randomness.