Password, UUID v4 & WebCrypto Hash

Generate CSPRNG passwords, batch UUID v4s, and SHA-256 / SHA-512 / SHA-1 digests offline via WebCrypto.

How It Works & Reference

Passwords and UUIDs use window.crypto.getRandomValues() (not Math.random()). Hash digests use native WebCrypto SubtleCrypto.

Hash Algorithm & Secret Length Guide

TypeOutput SizeRecommended Use
SHA-25664 hex chars (256-bit)Integrity checks, HMAC, webhooks
SHA-512128 hex chars (512-bit)High-security checksums
UUID v436 chars (122 random bits)Database primary keys, request IDs

Frequently Asked Questions

How long should a production password or API secret be?

Use at least 16 characters with mixed classes for logins, and 32+ characters for API tokens or database passwords.

Is SHA-256 computed locally?

Yes, via your browser's built-in crypto.subtle.digest API.

Are generated UUIDs standard RFC 4122 v4?

Yes, using crypto.randomUUID() (or RFC 4122 fallback).

Related Tools