My password generator used crypto.getRandomValues and was still wrong 15% of the time

DEV Community (top today) · 21 Nov 2026 · 15% wrong

In short

A developer found their browser password generator produced weak passwords 15% of the time despite using crypto.getRandomValues.

Why it matters for Cybersecurity

Shows that secure randomness APIs can still be misused, for example through biased character selection.

Why it matters for Web Development

Practical lesson on using Web Crypto correctly in client-side JavaScript.

Read the original reporting

Related