Password Strength Checker API

Category: security

Check password strength with scoring, crack time estimation, and suggestions. Includes a secure password generator. Runs entirely in the browser using zxcvbn.

Endpoint

N/A Browser API (zxcvbn + crypto)
No Server API

Response

Content-Type: N/A

This tool evaluates passwords in the browser using zxcvbn and generates passwords with crypto.getRandomValues(). No server-side API is available.

// Browser-only: uses zxcvbn + Web Crypto

cURL Example

# No cURL equivalent — this tool runs in the browser

Code Samples

// Password strength checking using zxcvbn
import zxcvbn from 'zxcvbn';

const result = zxcvbn('mypassword123');
console.log('Score:', result.score); // 0-4
console.log('Crack time:', result.crack_times_display.offline_slow_hashing_1e4_per_second);
console.log('Suggestions:', result.feedback.suggestions);

// Secure password generation
const arr = new Uint32Array(20);
crypto.getRandomValues(arr);
# Password strength checking in Python:
from zxcvbn import zxcvbn

result = zxcvbn('mypassword123')
print(f'Score: {result["score"]}')
print(f'Crack time: {result["crack_times_display"]}')
// Password strength checking in Java:
// Consider using nbvcxz library:
// Nbvcxz nbvcxz = new Nbvcxz();
// Result result = nbvcxz.estimate("mypassword123");
// System.out.println(result.getBasicScore());