crypto.getRandomValues() · client-side only

Cryptographic keys,
tokens & passwords on demand.

A precision tool for developers and the security-minded: generate high-entropy passwords, hex keys, URL-safe tokens and PINs — then audit any password's strength. Nothing ever leaves the browser.

Web Crypto entropy Zero network calls Bias-free sampling
Abstract artwork: a glowing cyan key in neon light

How long does it take to crack a password?

A short password falls instantly, however random it looks. The table and chart below model an offline attack at 10,000,000,000 guesses per second against a fast hash — the same maths a cracking rig actually runs.

Chart: estimated time to crack passwords by pattern, from instantly for 6 lowercase letters to thousands of years for a 12-character mixed password or a 4-word passphrase
Estimated offline crack time by password pattern
Password patternTime to crack Entropy (bits)Verdict
6 lowercase lettersinstantly28.2Weak
8 lowercase letters21 seconds37.6Weak
8 letters + numbers6 hours47.6Moderate
10 mixed characters190 years65.7Moderate
12 mixed characters2 million years78.8Strong
6-word passphrase701 thousand years77.5Strong

Assumes uniform random characters and no rate limiting. Password reuse or a breach database shortcut all of the above — which is why a unique password per account matters more than length alone.

Key Generator

// fresh value generated on load

·········
// strength
24
Select at least one character class.
// architecture

Engineered for trust

The guarantees behind every value this tool produces.

CSPRNG only

Every byte is drawn from crypto.getRandomValues(), with rejection sampling to remove modulo bias.

Stateless & local

No backend, no storage, no logging. Open dev-tools — the network tab stays empty.

Four output formats

Passwords, hex secrets, URL-safe tokens and numeric PINs — one tool for every key you need.

// docs & notes

The reference desk

Technical writing on entropy, keys and secure randomness.

Concept

📊 What Is Password Entropy, Really?

The one number that decides how long a key resists brute force — derived from scratch.

read →
Security Tips

⚠️ Common Password Mistakes and How to Avoid Them in 2026

Most password security failures come from the same handful of mistakes.

read →
Security Guide

📋 Password Security Best Practices for 2026

A comprehensive guide to password security best practices for 2026.

read →
$ ls /blog →
// manage

Store what you generate

Keep your generated passwords synced everywhere with NordPass — a zero-knowledge password manager we trust and recommend.

Make SecureKeyGenerator your preferred source on Google

Privacy · Terms · Cookies · Affiliate disclosure