WebCrypto CSPRNG

API Key Generator

Prefixed API keys, JWT secrets, UUIDs, and PINs from your browser's secure random source. Nothing leaves the page.

Entropy per value: 190 bits

    Store only a SHA-256 hash of each key server-side and show the full key to the user once.

    FAQ

    Are these API keys secure enough for production?

    The randomness is: keys come from crypto.getRandomValues, the browser's CSPRNG, with 128–512 bits of entropy. Keys are never sent anywhere. For production, still generate and store keys server-side when possible and keep only a hash in your database.

    What is a Stripe-style prefixed key?

    A key like sk_live_… or pk_test_… where the prefix tells you the key type and environment at a glance. Prefixes make leaked keys easy to detect with secret scanners and hard to mix up between test and live.

    How long should a JWT secret be?

    For HS256 use at least 256 bits (32 random bytes), for HS512 at least 512 bits. The JWT secret option outputs 256 or 512 random bits as hex or base64url.

    Is UUIDv4 a good API key?

    UUIDv4 has 122 random bits, which is fine as an identifier, but a dedicated key with a prefix and 160+ bits is a better secret. Use UUIDs for IDs, prefixed keys for credentials.

    Are the PINs random?

    Yes. Each digit is drawn uniformly with rejection sampling from crypto.getRandomValues. You can optionally reject obvious PINs such as 1234, 0000, and 2580.

    Does this tool log or store keys?

    No. Everything runs in the page. Nothing is sent to a server, and generated keys disappear when you close the tab.

    Passlock for Mac · $14 lifetime

    Done. Now lock it down for real.

    The browser is fine for one-off checks. The app keeps your passwords, passkeys, and notes locked behind your Mac — offline by default, no cloud account, no subscription.

    • Master lock for your whole vaultLock everything behind one Mac-native gate when you step away.
    • 4 lock types, including Touch ID & passkeysPick the unlock method per item — password, Touch ID, passkey, or master.
    • Offline & native macOS KeychainNo subscription, no cloud account, no sync server reading your secrets.
    See all featuresOne-time payment · macOS 14+ · Works offline
    Passlock

    Vault

    All items

    Unlocked

    Bank · login

    [email protected]

    GitHub

    @you

    Email · personal

    [email protected]

    Master lock activeOffline · iCloud Keychain