Create a secure token for your application in a moment. Random, API key, signed JWT or UUID, made in your browser. Nothing is stored or sent.
190 bits of security
Made in your browser with crypto.getRandomValues, the browser's own secure source. Every character comes up equally often.
A random string that works as a key. Your application gives it to whoever may come in and asks for it with every request, instead of a password. That is why it has to be impossible to guess.
Yes. The token is made in your browser with crypto.getRandomValues, the source browsers use for their own encryption, not Math.random. It goes through no server, is not stored and nobody else sees it.
For a key or a secret, 128 bits at least and 256 is better. With letters and digits, 32 characters give about 190 bits, and with base64url 43 characters already go past 256. The number of bits is shown next to the token.
All three work in a web address or a header. Hex uses only 16 different characters and is the easiest to read out loud, base64url packs more security into fewer characters, and letters and digits suit places that do not take dashes.
To tell at a glance what it is and where it comes from, like sk_live_ for a live secret key. It helps your team not to mix them up and lets leaked key scanners recognise them.
We sign it with HS256 and the secret you choose. Your server checks it with that same secret, so keep it safe. The data is only encoded, not encrypted, and anyone can read it.
Because every random byte that does not fit exactly into the number of characters is thrown away and another one is drawn. Done with the remainder of a division, as many generators do, the first letters come up more than the rest.