Formatting
An API example needs a token that is safe to put in a header, and a password full of symbols will get escaped to death. Random bytes draws a key of the size you set, opening at 32 bytes, and prints it as Base64, Base64URL, or hex. Thirty-two bytes is 256 bits. One test draw in standard Base64 is y69YcR0B5AyAzmj2bqW8gt3hsPjsyvCvnYsHXpRSJNU= with the padding equals signs included.
Base64URL swaps the plus and slash for characters that survive in a URL and can drop the padding, which is what you want in a query string. Hex is longer and easier to compare by eye. The same control exists on the secret-key page, which opens on hex. Use this page when the consumer asked for Base64. Use hex when a config file already stores hex.
The page does not store the token. A 32-byte secret in a chat log is a leaked key, whatever the encoding.
Key size 32 bytes, encoding Base64, one value.
y69YcR0B5AyAzmj2bqW8gt3hsPjsyvCvnYsHXpRSJNU= in one test draw. That is 256 bits. Generate your own. The padding character is part of standard Base64.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
No. It is a way to write bytes as text. Anyone can decode it. The security is that the bytes were random, and that you do not publish them.
Standard Base64 pads so the length is a multiple of four. Base64URL output from this page omits that padding.
Same random bytes. That page opens on hex. This one opens on Base64. Pick the encoding your config already uses.
16 bytes (128 bits) is a common minimum for a bearer token. 32 bytes is the opening value and is plenty.
No. Copy it into the environment or the vault. Reloading draws new bytes.