Strong Password Rules and Secure Identifiers: Length, Randomness, Storage

Short passwords that look complicated lose to long ones that look boring. The bit arithmetic behind length, where randomness comes from, storage habits, why Base64 is not encryption, and where UUIDs belong.

10 min read ToolsBasic
Advertisement icyabmod — get a website for your business, design it on a live demo
Strong Password Rules and Secure Identifiers: Length, Randomness, Storage

A strong password meets four conditions at once: it is at least 16 characters long, it was generated at random by a machine, it is used for one account only, and it lives in a password manager. Sixteen characters drawn at random from upper case, lower case, digits and symbols give you roughly 96 bits of possibilities; an eight-character string you made up and sprinkled with punctuation is dramatically weaker. What protects an account is not how complicated the secret looks but how many possibilities it was drawn from. This article explains why, how generation should actually work, and where machine identifiers fit into the same picture.

On the generation side, the password generator lets you choose a length between 8 and 128 characters, defaults to 16, and always includes upper case, lower case, a digit and a symbol. The UUID generator covers identifiers that must not collide across systems. For reading encoded values out of configuration files there is the Base64 encoder and decoder, and the character counter is handy for checking a system's length limit. These tools run in your browser; generated passwords and identifiers are not sent to the server.

Why a strong password starts with length

The cost of a brute-force attack scales with the number of possible combinations. Enlarging the character set multiplies that number; adding characters raises it to a power. One extra character therefore buys far more than ten extra symbols in the alphabet ever will.

Concretely: twelve random lowercase letters are drawn from a space of about 56 bits, while eight characters drawn from all 94 printable keyboard characters come to about 52 bits. Those 4 bits are a factor of 16 in the number of possibilities. The second option nevertheless looks safer because it contains punctuation. Appearances are irrelevant here; the thing counting the possibilities is a machine.

Length against character set

The table shows approximate entropy in bits, assuming every character is chosen independently at random. Each extra bit doubles the number of guesses an attacker has to make.

LengthLowercase only (26)Letters + digits (62)This generator's set (65)Practical verdict
8 characters38 bits48 bits48 bitsOnly when a legacy system forces it
12 characters56 bits71 bits72 bitsModerate
16 characters75 bits95 bits96 bitsStrong for everyday accounts
20 characters94 bits119 bits120 bitsVery strong
24 characters113 bits143 bits145 bitsMore than most accounts need

The practical reading is straightforward. Sixteen characters across all four groups is more than enough for everyday accounts, and the generator's default is aimed squarely at that balance. Going from 12 to 16 adds 24 bits, multiplying the number of possibilities by about 16 million. Reach for the lower bound of 8 only when a legacy system forces you to. The rule that every password contains at least one character from each group lowers these figures only very slightly.

Where randomness comes from

Human beings are terrible random number generators. Strings we invent carry keyboard geography, birth years and fragments of familiar words without our noticing. Attack dictionaries target exactly those patterns; anything that comes naturally to mind has already been enumerated.

So the job belongs to a machine. A good generator draws from an unpredictable source and gives every character an equal chance. The password generator uses the browser's cryptographic random source, crypto.getRandomValues, and avoids modulo bias. If a random number were simply mapped to a character with the remainder of a division, some characters would turn up slightly more often than others, because the range of the random number is not an exact multiple of the alphabet size. The generator discards values that fall into that uneven tail and draws again, so every character keeps exactly the same odds.

This generator's character set

The set has four groups, and with the default settings every password contains at least one character from each: upper case letters, lower case letters, digits, and the symbols !@#$%^&*. Look-alike characters are left out by default: the digit 0 and capital O, the digit 1, lowercase l and capital I are indistinguishable in many typefaces. That exclusion prevents typos when you have to type the password by hand into a TV or another device, and it narrows the possibility space only marginally; a single extra character more than repays it. Limiting symbols to eight common ones is deliberate as well, since some systems reject quotes, backslashes or spaces.

A second practical concern is where the generated value goes next. Clipboard history tools, draft fields in chat applications and browser autofill can retain it without your noticing. Pasting straight into the destination field or your password manager, and avoiding intermediate stops, is a simple habit with a real payoff.

Passphrases

Five or six randomly chosen words make a reasonable alternative for the handful of secrets you actually have to memorise, such as the master password of your manager. The condition is that the words really were chosen at random; a line from a song you like does not qualify. Everything else belongs in the manager.

Storing and sharing a strong password

Generating is the easy half. The hard half is deciding where the value lives afterwards.

  • One value per account. A single breach unlocks every account that shares the secret. Reuse is a much larger risk than length ever was.
  • Use a password manager. Nobody memorises thirty long random strings, and writing them in a notebook or a text file is the worst available answer.
  • Turn on a second factor. An authenticator app or a hardware key protects an account even after its password leaks.
  • Split the channel when sharing. Never send the value and the account it belongs to in the same message.
  • Rotate on suspicion, immediately. The moment you think a value may have been exposed, change it. “It is probably fine” is an expensive sentence.
  • Keep recovery options current. Stale backup codes and an old recovery address can lock you out as surely as an attacker can.

On sharing: a temporary channel always beats a permanent one. A self-destructing note or a one-time link is far safer than a message that will sit in an inbox for years.

Base64 is not encryption

A common misconception in configuration files is that a Base64 value is somehow hidden. Base64 is only an encoding for carrying binary data as text; it needs no key and anyone can reverse it in one step. Paste a value such as c2VjcmV0 into the decoder and the plain text is right there. Writing a password or API key in Base64 does not protect it; those belong in a secrets vault or an environment variable. Cleaning up old values matters just as much: keys forgotten inside server configuration, throwaway scripts and screenshots are a frequent source of leaks that surface years later.

Identifiers: unique is not the same as secret

A UUID is a 128-bit value used to produce identifiers that will not collide across systems, written like 3f2b8c1e-9a4d-4e7b-b6c2-5d1f0a9e7c34. It replaces the incrementing counter behind order numbers, filenames and session records, and it keeps two servers generating values at the same instant from clashing. The UUID generator produces version 4 values: 122 of the 128 bits are random, and the rest mark the version and variant. You can generate between 1 and 100 in one go, with five as the default.

The critical distinction: being unique is not being secret. Although 122 random bits are hard to guess, an identifier is not handled as a secret: it appears in the address bar, lands in log files and travels to third-party analytics. Using one as a password, as a session token, or as the “anyone with the link” part of a private URL is therefore a mistake. Anywhere confidentiality is required, use a value designed for it, stored separately and set to expire.

There is a side benefit to replacing counters with identifiers: they leak nothing. A sequential number tells the outside world how many records you hold and how fast that figure grows. A random identifier tells them nothing at all.

Shared accounts inside a team

The rules are clear for personal accounts. Where it gets messy is shared access. A social media account, a domain registrar or a payment provider often ships with a single login, and over time that login spreads to four or five people. When somebody leaves, nobody can say with confidence which accounts they still hold.

Three steps make it manageable. First, inventory: which accounts exist, who holds them, at what level of access. Second, move to individual logins wherever possible; many services support team membership. Third, for the small number of secrets that genuinely must be shared, keep them in a common vault that records who opened what. The offboarding list has to be short enough that it actually gets used: rotate the values in the shared vault, revoke individual access, remove their second-factor devices, and end saved sessions on shared machines.

Frequently asked questions

Should I rotate passwords every ninety days?

Forced periodic rotation is no longer recommended, because under that pressure people produce predictable variations, typically by bumping a trailing digit. Tie rotation to events instead: a suspected breach, a shared device, a departing colleague.

What if a site does not accept symbols?

The generator puts at least one symbol in every password and limits them to eight widely accepted characters. If you still meet a system that refuses symbols altogether, swap them for letters or digits and add two or three characters of length. As the table shows, length wins back the few bits you lose with room to spare.

How do I find old keys left in configuration files?

Comparing two revisions is the fastest route: the text diff checker compares old and new configuration line by line and lists the changed lines with their numbers. When reviewing server access rules, what's my IP confirms your own outgoing address; it shows the IP the server sees, your user agent and language header, and no location data.

What is the actual risk of reusing one value?

After a breach at one site, attackers automatically replay the same email and password pair against other services, a technique known as credential stuffing. A single instance of reuse can neutralise even an excellent secret.

Are browser-suggested passwords safe?

The strings browsers generate are usually long and genuinely random. The open question is storage: a browser vault is only as well protected as the device and operating-system account it lives on, and a dedicated manager with its own master password adds another layer.

For the structure of identifiers in detail, read what is a UUID; for the logic of encoded values, what is Base64; and for length limits across systems, the character limits guide. For keeping these values tidy inside configuration files, see the naming discipline in working with JSON data, and if a shared link has to travel onto printed material, the QR code usage guide takes it from there.

Related tools

Advertisement icyabmod — 7 sections × 10 designs and 10 color palettes: design your site yourself, preview ready in 48 hours

More articles

Blog Posts
Advertisement icyabmod — get a website for your business, design it on a live demo

Blog Posts