Random String Generator
Draw random strings and tokens from the characters you choose, with the strength of each.
- Privacy
- This tool runs in your browser. Nothing you enter is sent to Wayfind.
- Filed under
- Filed under
Draw random strings and tokens from the characters you choose, with the strength of each.
From the browser, through crypto.getRandomValues, which is the same source a browser uses for cryptography. Each character is drawn on its own, and a draw that would favour some characters over others is thrown away and taken again, so every character is equally likely.
How many bits one string holds: the length multiplied by the base-two logarithm of the alphabet, rounded down. Thirty-two URL-safe base64 characters hold 192 bits; thirty-two hexadecimal characters hold 128. A token meant to be unguessable is usually given 128 bits or more.
No, and the figure says so. Both are the same for every string the tool draws, so they carry nothing secret. They are there because a service often wants a prefix such as sk_live_ to say what a key is, and because dashes make a code easier to read aloud and to type.
URL-safe base64 for a token that travels in a URL or a header: it is the shortest way to carry a given number of bits without a character that needs escaping. Hexadecimal where a value is read by something expecting hexadecimal. The alphabet without 0, O, 1, l and I for a code a person will read off a screen and type.
Not in one batch. For a long string that is a certainty anyway, but a short one from a small alphabet can run out: ten different one-digit codes is all there are, and the field says so rather than repeating one.
No. The strings are drawn in this browser tab and never sent to Wayfind or stored. A token you draw here is yours alone, though a secret pasted into any web page is only as safe as the device it is on.