Skip to content
Naked Security Naked Security

Do you find passwords too darn hard? Then poetry’s your hidden card!

Researchers in Southern California have been trying poetic passwords - with impressive results!

Move over, Naked Security’s video on how to Pick a Proper Password!

Step aside, XKCD’s harder-than-you-think Correct­Horse­Something­Something.

There’s a new sort of password in town: the iambic tetrameter.

In a word, poetry.

To explain: an iambus is a rhythmic unit in verse that consists of an unstressed syllable, followed by a stressed one.

Like this:

ig-NITE
ex-PLODE
ka-BOOM

And a tetrameter is a line of verse with four rhythmic units, more properly known as metrical feet.

In other words, iambic tetrameters go something like this:

A BI-cy-CLE is NICE and QUICK
  But CHAN-ging GEAR is QUITE a TRICK.
  
If CHAN-ging GEAR is HARD to DO
 Then SIN-gle-SPEED's the THING for YOU.
 
And WHEN it COMES to SLOW-ing DOWN
  A FIXED rear COG is GREAT in TOWN.
  
Just NEV-er LET your CHAIN get SLACK,
  It's NOT like RID-ing ON the TRACK.
  
A SLOP-py CHAIN will SOON deRAIL,
  And LOCK the WHEEL. An EP-ic FAIL!
  
And DO be WARNED: your FRIENDS will JOKE,
  "You're SUCH an URB-an HIP-ster BLOKE."

Because of the rhythm, typically accompanied by rhyme, and maybe even a melody to carry the story along, many of us find it much easier to memorise verse than prose.

Here’s a road law that’s memorable, for example:

The driver of a vehicle shall stop at the request of any person leading, riding or driving any cattle, horse, ass, mule, sheep, goat, pig or ostrich.

But the above sentence isn’t that easy to memorise, even if you try to imagine a visual clue, because:

As Homer wrote, or maybe said,
  It's verse that sticks inside your head.

Linguistic passwords to the rescue?

So, poetry is what two computer scientists at the University of Southern California (USC) have been trying as a technique for generating passwords that satisfy two requirements:

  • Passwords should be complex, and measurably so. (In the jargon, they should have provably high entropy.)
  • Passwords should be easy to memorise.

Hitting both of these targets is something of a holy grail for password creation tools, and here’s why.

Complex passwords are easy to construct.

For example, imagine that you want 60 bits of entropy, so that each password is literally a 1-in-260 random choice (260 is about one million million million).

Twelve characters from the set [A-Z0-9] (upper case letters plus digits) gives you 3612 choices, which meets your needs, because 3612 is greater than 260.

But then your passwords look something like this:

TTJGJOIYGIH2
EPNVF13LXVV9
21K0JV1MFISH
MFP8QRAB749X
H1IRVIHZL41I

So these passwords fail at the second hurdle, namely being easy to commit to memory.

Similarly, readily-memorised passwords are easy to construct:

PASSWORD
123456
CHANGEME

Heck, you can easily extend them to twelve characters to make them nice and long:

PASSWORD9999
123456789ABC
CHANGEMESOON

But these passwords just aren’t complex enough for real life.

Automated password cracking tools typically start with a list of really obvious passwords, and then try a list of obvious modifications to each of those obvious passwords.

As a result, semi-obvious passwords, and even semi-non-obvious passwords, often get cracked much faster than you might expect.

60-bit “natural language” passwords

So, our USC researchers decided to work on algorithms that take a randomly-chosen 60-bit number, and use various techniques to turn it into one of four types of password.

They tried XKCD-style passwords consisting of four words randomly chosen from a dictionary, where the dictionary effectively operates as a giant alphabet:

fees wesley inmate decentralization

photo bros nan plain

embarrass debating gaskell jennie

They also tried producing 15 random letters, and generating a vaguely meaningful sentence where the words start with each letter in turn, so that the password effectively acts as a sort of mnemonic for itself:

IMMTOUPRSILLMCN: It makes me think of union 
                 pacific resource said it looks 
                 like most commercial networks. 

SCKTWRDSYDFCTAC: Some companies keep their 
                 windows rolled down so you don't 
                 feel connected to any community.

Then they tried what they call the frequency method, where whole words are chosen randomly via a lookup table, thus producing realistic sentences like the ones above, but generally shorter than 15 words, and thus quicker to type in:

Fox news networks are seeking views 
from downtown streets. (9 words)

The review found a silver tree through 
documents and artifacts. (10 words)

And finally, they went for iambic tetrameters, in rhyming couplets:

Joanna kissing verified
  Soprano finally reside
  
Diversity inside replied
  Retreats or colors justified

Note that the algorithms they created don’t just turn out likely candidates, but produce a specific, repeatable passphrase for every number from 0 to 260-1.

Indeed, they can go backwards uniquely from each passphrase to the number that is its equivalent, in order to be sure that each password is equally likely to be chosen, and thus that their entropy really is 60 bits.

Which way is best?

The trials our authors conducted are where things get interesting.

→ Take these with a pinch of salt, because the sample sizes are very small, with only about 10 people completing the memorisation process in each of the four categories, for 44 participants overall.

The methods that users said they preferred came out in this order:

  1. First-letter mnemonics. (15-word passphrases)
  2. Frequency method. (Approximately 10-word passphrases)
  3. Poetry. (Two rhyming iabmic tetrameters)
  4. XKCD method. (Four unrelated words)

However, when it came to how well people actually remembered later on, the results were almost upside down:

  1. Poetry: 61% recall.
  2. XKCD method: 58% recall.
  3. Frequency method: 40% recall.
  4. First-letter mnemonics: 33% recall.

So can we really, truly say/That password verse might save the day?

Could poetry (OK, doggerel) be the answer to our password complexity needs, at least for English speakers?

Sadly, the systems that accept our passwords simply aren’t universally ready for any of the above techniques.

Microsoft and Google, for instance, insist that your password is 16 characters or shorter.

Presumably they’ve decided that none of us will reliably remember anything longer, even if it does take the form of a witty jingle that we are much more likely to remember than a completely random text string.

Some sites like apparent variety rather than genuine entropy, so they’ll let you have a 6-character password, as long as you mix in at least one upper case, lower case, digit and punctuation mark.

In other words, poems just don’t fit: they’re too long, and don’t have any wacky characters in them.

So you might end up truncating your long and probably unguessable poetic password to something like this:

URBanHIPster

And then deliberately introducing the needed non-letters:

URBanHIPster99!

Which not only feels weaker, but is much less cool than a rhyming couplet.

As for why Microsoft and Google insist on 16 characters as a maximum, when your typed password is typically salted-hashed-and-stretched into a fixed-length string anyway…

…nobody knows.

LISTEN NOW

(No audio? Download MP3, listen on Soundcloud or read the transcript.)

14 Comments

One thing that drives me nuts is that of all the sites I visit that don’t allow symbols in passwords, it’s my online banking account. I know it’s a small credit union, and they’re still behind the times in that older equipment is still used in password based transactions and can’t easily verify all the symbols (don’t ask me how that works, that was just what I was told), but there has to come a time where they have to upgrade their systems to better enhance the security of its users. What do I do in situations like this?

What’s worse is up until last year my bank (a major one at that) limited me to 12 characters & only alphanumeric characters. and several years before that I had to use my social as my user login.

Many websites refuse to accept the space character in passwords…it’s very annoying when one has been using sentences and poetry as passphrases for many years – it’s almost as if they don’t want your password to be overly secure!

This doesn’t solve the necessity to have unique passwords for every account. How do I remember a rhyme and what account it is for?
I have “complicated” passwords and need a crib to tell me which letters are scrambled for each account.

You could try a password manager and use the rhyme as the master key for that…

Have they ever thought that some sites don’t need a password? Some sites I go to I don’t care if it is secured with a password. So what we should have is a choice if we want to password it or not.

Password Yes No

My problem with typing gibberish and not having it echoed back to me for confirmation is that I’m not a flawless typist and make mistakes. It’s easier for me to type a real word without errors, but still not guaranteed. Giving me a better way to construct gibberish helps me not at all. Typing the first letter of each line of a poem is still gibberish and I’m going to lose my place in the middle.

For extra hellishness, there’s a customer I have to access through a pair of VPNs and there are multiple characters I have to hit the shift key to type in the password. But over two VPNs the change in the state of the shift key takes a while to get to the other side, so I don’t know if I’m typing 5 or %

Here, you don’t type in the gibberish…you type in the whole poem :-) If the password system you are using allows such passwords, of course.

I do use the XKCD approach with a tweak… words are in different languages. Such an easy modification and increases the entropy a few times.

I like that. I study two languages besides English. I have used the other languages as part of a password before, just to help be remember the words lol

Being able to create strong passwords is one thing. Being able to recall them is another. And, being able to recall the relations between the accounts and the corresponding passwords is yet another. 

At the root of the password headache is the cognitive phenomena called “interference of memory”, by which we cannot firmly remember more than 5 text passwords on average. What worries us is not the password, but the textual password. The textual memory is only a small part of what we remember. We could think of making use of the larger part of our memory that is less subject to interference of memory. More attention could be paid to the efforts of expanding the password system to include images, particularly KNOWN images, as well as conventional texts.

Incidentally, biometrics are dependent on passwords in the real life. So are multi-factor authentications and ID federations like password-managers and single-sign-on services. And, in a world with passwords killed dead , we have no safe sleep. Passwords will stay with us for long.

1Password has become invaluable to me. I let it generate really long passwords. I don’t really know any of my passwords anymore except for my main password. It works on all my devices. And of course, I’ve used Sophos free antivirus, now Sophos Home, I think, for the past 3-4 years.

Apple’s somewhat elegant solution is to auto-generate complex machine-generated and typically non-human-memorable passwords for you and cache them encrypted in your Apple iCloud keychain for access from multiple Apple devices. Works great as long as you have access to your iCloud account. Losing access and going through the reset process on your iCloud account is a huge pain though.

Comments are closed.

Subscribe to get the latest updates in your inbox.
Which categories are you interested in?