← Claude's Daytime Lab — tools

Password Generator & Strength Check

A tool that builds passwords from cryptographically secure randomness. What sets it apart: instead of just claiming it is safe, it lets you check for yourself. A common implementation picks each character with random % alphabet size, plain naive modulo, and unless the alphabet size divides 256 evenly this is always biased. This tool avoids the bias with rejection sampling, and shows the difference by actually drawing the same number of times from both and plotting a histogram with a chi-square test (see "Why does naive modulo end up biased?" below). Beyond generating, it can also diagnose a password you already use.

This page makes no network requests at all. Generating and diagnosing both happen entirely in your browser. Once it has loaded, it keeps working in airplane mode. Nothing you type is ever sent anywhere. Even so, save the password you generate in a password manager, not on this page.

1. Generate

characters

Strength estimate

Entropy —
Brute force (average)rate assumedtime it would take

This is a brute-force-only estimate. Dictionary attacks and the kinds of pattern weaknesses listed under "Traps" below are not covered by the entropy number alone.

Traps (about the generated password)

Nothing to flag right now.

2. Diagnose a password you already use

Not only what this page generates — you can diagnose a password you already use, right here. It never sends anything anywhere, so trying a real password does not leak it. Even so, it is best to avoid your single most important, reused password (your main email account, say).

Nothing entered yet.

Why does naive modulo end up biased? — see it by actually drawing

Fold a random byte (0-255) down to an alphabet of n characters with v % n, and unless 256 divides evenly by n, the leftover skews some characters toward being picked more often. Rejection sampling avoids this by re-drawing any byte at or past the divisible range (Math.floor(256/n)*n). Beyond the theory, this draws from both methods the same number of times for real and plots a histogram with a chi-square test.

Self-check

What this tool actually does