How to Pick a Password
Most of what you’ve been told about generating a good password is wrong. The well intentioned advice of pick a phrase and then obfuscate (ie, Fish Tacos are Delicious becomes F1$hT4c05rD3l1c10u5) it is still valid, but a bit misguided and not enough.
Passwords need to be long, otherwise they are easily cracked with today’s computing power. Passwords don’t necessarily need to have special characters, but they need to be unique per site and they should be memorable so that humans can remember them. The problem with short reused passwords crops up when a site like adobe, linkedin, or myspace gets hacked and their password database gets dumped.
The result is that the cracker now has a list that looks like this:
username:$6$bW9sX7mu$EGhkfoeBmV74.mA8eM5P.iqJr3e3vM/pyrT90CsY4OM1u8DTJf1WkfQufK2G5S7hSYiAvAPviR
That long string is a representation of a number (a very long number). That number is calculated by turning your password into a number and doing some math on it. It only works one way. There is no way to take that number, do math on it and get your password. This is called a “one way hash.” When you login to a system, it takes the password you just typed in, performs the same set of math functions on it and sees if the resulting numbers match. If they do, then you’ve typed in the same password as what was stored.
So, why is it a problem that the hacker has a list of usernames and hashes if the hash can’t reveal your password? Because they can now perform many many operations against that hash to try and guess your password. This is similar to trying every key in the world against a lock until you find the one that opens it. In the physical world, that’s a daunting task, but digitally, with today’s computational power, tens of thousands of guesses can be made per second.
Your only defense is a long password phrase.
This clever cartoon from xkcd summarizes the situation beautifully:
Here is a good common sense password policy:
- Longer is much better than short. Aim for at least 16 characters.
- You don’t need to include “special characters”.
- You don’t need to change it every 90 days. Unfortunately this rule is enshrined in many ‘best’ practices including the mostly braindead PCI rules. So you may be forced to change your password.
- Make it a sentence that you will always remember.
- Don’t reuse passwords.
- Use a password manager!!! I highly recommend 1Password
- Seriously, Don’t reuse passwords.
- Enable multi-factor authentication. Google supports it, so do most other services. Use it. It’s a small pain in the ass, but getting your account hacked is a much bigger one.
- Can’t think of a good phrase? Use a generator or use 1Password. It has a built in password generator.