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.