Good Grammar Makes Bad Password

A grammatically correct textual password is easier for algorithms to crack than one that with bad grammar. Christopher Intagliata reports

Illustration of a Bohr atom model spinning around the words Science Quickly with various science and medicine related icons around the text

Join Our Community of Science Lovers!

When you think up a password for yet another online account, longer is better, right? Well, that's true if your password is a string of random numbers, letters and symbols. But if you use a memorable phrase, as some sites recommend, your super-long password could be twice as easy to crack, assuming the password cracker knows grammar.

Researchers created a grammar-smart algorithm and set it loose on 144 passwords, each a phrase at least 16 characters long. Two-and-a-half-trillion guesses later, it had cracked a quarter of them. And the algorithm decoded a dozen passwords state-of-the-art crackers could not. The researchers are presenting their program at the Conference on Data and Application Security and Privacy, or CODASPY. [Ashwini Rao, Birendra Jha and Gananand Kini, Effect of Grammar on Security of Long Passwords]

The best password crackers can guess 33 billion times a second. Using standard grammar cuts down the number of alphanumeric possibilities—and the time it takes to crack your password. Avoid pronouns and verbs, the researchers say. They're easy to guess because they're few in number, compared to adjectives and nouns. For example, "Sheblindedmewithscience" is a weaker password than "threeblindmicerhyme." See how the hackers run.


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


—Christopher Intagliata

[The above text is a transcript of this podcast.]

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe