How to use this calculator
- Choose a length appropriate to the service.
- Enable the required character sets.
- Generate a new password.
- Copy it directly to the intended secure destination.
- Store it in a trusted password manager and do not reuse it.
Formula and methodology
Characters are selected with rejection-sampled crypto.getRandomValues output and then securely shuffled; Math.random is not used.
Worked example
A 20-character password can include lowercase, uppercase, numbers and symbols while guaranteeing at least one character from each enabled optional set.
Method applied: Characters are selected with rejection-sampled crypto.getRandomValues output and then securely shuffled; Math.random is not used.
Reference table
| Variable or item | Definition |
|---|---|
| Random source | crypto.getRandomValues |
| Length range | 8–64 characters |
| Processing | Browser-local; not logged |
Sources and assumptions
Web Crypto API getRandomValues provides cryptographically strong random values in supported secure browser contexts.
Practical guidance and common mistakes
Unique passwords should be stored in a trusted password manager. Length usually contributes more search space than simply substituting predictable symbols.
