Password Strength Analyzer
Analyze password strength with scoring, crack time estimates, and improvement suggestions.
/v1/auth/password-strength
curl -X POST "https://auth.toolkitapi.io/v1/auth/password-strength" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"password": "correct-horse-battery-staple"
}'
import httpx
resp = httpx.post(
"https://auth.toolkitapi.io/v1/auth/password-strength",
json={
"password": "correct-horse-battery-staple"
},
)
print(resp.json())
const resp = await fetch("https://auth.toolkitapi.io/v1/auth/password-strength", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"password": "correct-horse-battery-staple"
}),
});
const data = await resp.json();
console.log(data);
# See curl example
{
"score": 3,
"crack_time_display": "centuries",
"feedback": {
"warnings": [],
"suggestions": ["Add another word or two. Uncommon words are better."]
},
"entropy_bits": 45.57
}
Try It Live
Description
How to Use
1. Set the `password` field to the password you want to analyze.
2. Send a POST request. No other parameters are needed.
3. Check the `score` (0–4) and display the `crack_time_display` and `feedback` to your users.
About This Tool
The Password Strength Analyzer uses the zxcvbn algorithm (developed by Dropbox) to evaluate password strength realistically. Unlike naive checkers that only count character types, zxcvbn recognizes common patterns — dictionary words, keyboard sequences, dates, l33t substitutions, and repeated characters — to estimate actual resistance to cracking.
The endpoint returns a score from 0 (extremely weak) to 4 (very strong), an estimated crack time assuming offline attack scenarios, entropy in bits, and actionable feedback with specific warnings and suggestions for improvement.
This is designed for real-time password validation during registration or password change flows, giving users meaningful guidance instead of arbitrary rules like "must contain a special character."
Why Use This Tool
- Registration forms — Provide real-time strength feedback during sign-up
- Password change flows — Ensure new passwords meet minimum strength requirements
- Policy enforcement — Reject passwords below a minimum score threshold
- Security audits — Assess the strength of existing passwords
- Password meters — Power visual strength indicators in your UI
Frequently Asked Questions
What do the score values mean?
How is crack time estimated?
Does zxcvbn detect dictionary words?
Should I use this instead of complexity rules?
Start using Password Strength Analyzer now
Get your free API key and make your first request in under a minute.