Every byte dey use two hexadecimal characters. The length clear and almost every language and tool support am.
Good for: Config files, command line, logs and debugging.
Use browser Web Crypto API make strong API keys, encryption keys and access tokens. Choose HEX, Base64, Base64URL or Base32; everything happen for this device.
If you change setting, fresh key go generate by itself; use the button repeat with the same setting.
Random source na crypto.getRandomValues(), wey secure for cryptography. Key no go remain after refresh; copy or download am keep for secret manager.
The same random bytes fit show with different text encoding. Choose the format wey your URL, JSON, config file or protocol need.
Every byte dey use two hexadecimal characters. The length clear and almost every language and tool support am.
Good for: Config files, command line, logs and debugging.
Compact binary-to-text format, but +, / and = need escape for URL and some file names.
Good for: JSON/XML transfer and normal text storage.
URL-safe Base64 wey use - and _ and remove = padding.
Good for: JWT, OAuth tokens, cookies and URL parameters.
E no care about capital letter and e avoid 0/O and 1/I/L wey fit confuse person.
Good for: TOTP secrets, DNS records, barcodes and manual entry.
Yes. E use crypto.getRandomValues from operating system secure random source, no be Math.random.
No. Generation and encoding happen for browser; no history dey save and refresh go clear the result.
The keys na for machine secrets like API key, encryption key and token. Use password manager for password wey person go type.
E possible for theory, but the chance small well-well for recommended length. 32-byte key get 2^256 possible values.
Keep long-term key for secret manager or protected environment variable. No put am for source code, chat or log, and rotate am sometimes.