Translating Real-World Randomness To Create Digital Security
With increasing digitization comes an increase in marketplaces for thieves to sell personal data.

Or, how I used a deck of cards to protect my data.
Every year, our data becomes more accessible as the world is increasingly interconnected and more services we depend on become available online. This allows for ease that was unimaginable just twenty years ago. You can bank, apply for a mortgage and credit cards, share personal photos, store important documents and get a real-time view into your home at any time.
The convenience of online services also makes account access valuable to attackers, so the credentials behind it are worth protecting.
Our main defender against unauthorized account access is often a password. Dictionary attacks try likely words and combinations. Rainbow tables are precomputed hash lookups used to recover passwords from stolen, unsalted hashes.
A long, unpredictable password makes guessing harder. Its protection also depends on how you and the service store it, and whether it has been exposed or reused.
The likelihood that you are using a such a password right now, however, is slim. WP Engine's review of 10 million passwords shows how we tend to use the same techniques as other people. But even if we create a password that uses the least common parts of that report, it is still predictable enough to leave us vulnerable. Instead, let’s throw predictability out the window and leverage the unpredictability of nature to guard us.
A shuffled deck of cards is one physical source of randomness, and this article shows how to turn it into a password.
Humans are Naturally Too Predictable
Before we get into the method, though, let’s discuss why we are bad at creating strong passwords in the first place: we are awful at being unpredictable. When we evaluate randomness, we do it by looking at the patterns it creates. For a real-world example of how bad you probably are at being random (no offense), write out a hypothetical outcome of 25 heads-or-tails coin flips. Then, flip an actual coin and compare the results.
If you don’t feel like doing it yourself, I got you covered below. Since I don’t have a coin on me I’ll be flipping a piece of generic “Heads & Tails” chocolate candy 25 times.
The red candy was created by me trying to be as random as possible and the green candy shows the results of flipping a piece of candy 25 times:

My invented sequence switches between heads and tails a lot and never repeats for long; the real flips include a longer streak. Twenty-five flips are too few to prove anything on their own, so treat this as an illustration.
My attempt at being random avoided long streaks, which is itself a pattern. In a password, patterns such as familiar words give an attacker likely guesses to try. Random generation reduces that predictability; it does not remove every route to account compromise.
Harnessing the Power of Real Randomness
Digital tools can generate unpredictable passwords when they use an appropriate randomness source. For this article, let’s focus on a physical source of randomness instead of software.
Consider: What is the likelihood that the combination of 20 license plates at the grocery store right now will ever occur again? How about combining the third word of the 42nd page of every book in the room you’re in?
I tend to find games of chance as a trustworthy source of randomness and unpredictability, especially playing cards. Did you know that after a thorough shuffle of a deck of cards, the odds are extremely high that you are the first person in history to ever hold that combination? So, for the example of this article, let’s use the untold power of using playing cards to be completely random.
The only catch to harnessing any source of non-digital randomness is that there has to be a way to directly translate data into the digital world. For instance, you cannot use “shapes you see in the clouds” as a way to generate random data. Even though the clouds are random, you still need a way to digitize it.
Translate that Randomness into Computer-Speak
So how do we translate a deck of cards from our world to the digital one without losing what makes it random? By making sure your random is random.
Seems like a silly phrase, but you must make sure that what you use is an actual example of randomness. For example, using a full sentence from your favorite book as a passphrase wouldn’t be truly random since the English language is based on patterns.
Mix the cards well before you start, and don’t count on years of past games to have mixed the deck for you. Whatever its age, you can get unpredictability into it by using the Corgi Shuffle method.
Establish Your Rules
Next, make sure the same amount of data within the cards is reflected within the password. This can be accomplished by making a cipher that will translate the card’s suit and value into characters a computer will recognize.
Since we are using 52 playing cards, we can use the 26-letter alphabet to encode our passphrase. By using lower and uppercase letters, we get exactly 52 possible results, which allows us to keep the full amount of randomness.
Here is an example of a cipher you can use to create your random passcode. You can change any of the details you want as long as you make sure that each card has its own specific letter:

Using this cipher, a thoroughly shuffled deck produces a 52-letter string in which every upper- and lowercase letter appears exactly once, for example: NPHztjWeqQogvZJOsVmbYnXBRuhFDfKpLMyISaCwlTkicAxEGUdr.
Use the Wildcard
Have a Joker in your deck? Even better! You can assign the Joker to be a number or special character, and shuffle it into your deck. Each variable you add to the cards just makes it that much tougher to crack. Here’s that example with the Joker variable: NPHztj!WeqQogvZJOsVmbYnXBRuhFDfKpLMyISaCwlTkicAxEGUdr.
Watch Your Bias
It’s easy to see parts of your newly-generated passcode and think that parts of it are not random. Maybe you see that it spells a word, or that the same letter shows up in upper and lower case close together.
But don’t fret, it’s still randomness that you are seeing. Just do not change any of the characters on your own, as you might accidentally add predictability back into it. If you aren’t confident in the results, just shuffle and do it again.
That’s It!
Great, now you have a 52-character passcode, or 53 with the Joker. Treat the examples above as illustrations only: they are public and must not be used as real passwords.
Keeping Your New Password Safe
The most important part of your new password is to prevent people from figuring it out. Here are some tips to make sure you practice good sanitization techniques and keep your password safe.
Store Your Password Securely
To keep track of these long and complex passcodes, you can use a dedicated password manager like Dashlane or 1Password. Although not perfect, they tend to be the more secure way to have passwords managed for you across devices.
Whichever password manager suits your needs, protect access to it. NIST's authentication guidance supports using password managers and autofill.
Use a Unique Password for Each Account
Since security breaches can happen at even the biggest companies, use a different password for each service so one exposed credential does not open the rest of your accounts. NIST's guidance tells services not to force regular password changes, and to require one when there’s evidence of compromise.

Prefer a Passphrase? Use Diceware
A passphrase is a string of words; how many you use and how you pick them both matter, and a familiar phrase can be predictable.
If you prefer passphrases, I recommend that you use a technique called Diceware that uses dice to help you create one that is unique. It combines the easier way of remembering passphrases with the unpredictability of the real world.
Even better, you can use your new passphrase for a Password Manager, and have the manager remember all of the complex passcodes for you.
Leverage Other Types of Authentication
Of course, the more layers of safety you have for your passwords, the harder you will make it for anyone attempting to break in. If you use a service that has two-factor authentication, for example by entering a password and then a code from an authenticator app or a text message, you should enable it in case your password is cracked or leaked.
The answer to password security
Password security is paramount, and long, unpredictable passwords resist guessing far longer than short, predictable ones in this digital age. If you don’t feel like using a deck of playing cards to make your password, there are plenty of good methods out there to create something just as strong. But just as important as creating a tough password is using it correctly.
Keep it in a password manager, use a different password for every account, and if a password may have been exposed, follow the service's recovery steps.
It may seem like a lot of work, but your online data is only becoming more valuable as time goes on ... and passwords only become easier to crack. It’s time to rely on a good lock—not just the door itself—to keep people out.