API Reference
Programmatic access to TofuPass password generation. No API keys, no rate limiting drama, no account required.
https://tofupass.com/api
Returns a single cryptographically generated password at the Firm strength level. No parameters required.
# Using curl curl https://tofupass.com/api/password # Using JavaScript fetch const res = await fetch('https://tofupass.com/api/password'); const password = await res.text(); // → "!HappyTiger83"
!HappyTiger83
Content-Type: text/plain
Returns a hyphen-separated passphrase generated from a pool of 4,000+ curated words. Control word count with the count parameter.
# Default (4 words) curl https://tofupass.com/api/passphrase # Custom word count curl https://tofupass.com/api/passphrase?count=6 # JavaScript fetch const res = await fetch('https://tofupass.com/api/passphrase?count=4'); const phrase = await res.text();
blooming-tiger-cosmic-leaf
count must be between 4 and 30
Returns aggregate usage statistics for the TofuPass API. These are general counters, and no user or session data is tracked.
curl https://tofupass.com/api/stats
{
"generated_passwords": 12453,
"generated_passphrases": 3821,
"total_api_calls": 16274
}
Content-Type: application/json
All API responses are generated in real-time using a cryptographically secure RNG. No passwords or user data are ever logged, stored, or transmitted beyond the immediate response. Served over HTTPS with Cloudflare protection.
This API server is open-source. Audit it, self-host it, or fork it on GitHub. The frontend site is too. Both under GPL v3.