CodeScript

Password Generator

Generate strong random passwords with customizable rules.

What it does

Generates random passwords using your browser's cryptographically secure random number generator. Customize length and which character sets to include (lowercase, uppercase, digits, symbols), and see an estimated entropy in bits.

Common errors

  • Math.random() is not secure

    This tool deliberately avoids Math.random() for password generation, since it's not cryptographically secure — it uses crypto.getRandomValues() instead.

FAQ

As entropy in bits, calculated as length × log2(character set size) — a rough but standard measure of how many guesses a brute-force attack would need.

Related tools