Skip to main content
  1. Home
  2. Emerging Tech
  3. News

To be or not to be 280 characters: All of Shakespeare’s works in a single tweet

Add as a preferred source on Google

It might sound like a plot point in a Dan Brown novel, but it’s not: A computer science undergraduate really has managed to hide the complete works of William Shakespeare, one of the world’s greatest writers, in a single tiny image that was shared in a Twitter message. Carried out by David Buchanan, a third-year student at Cardiff University in the U.K., it’s an amazing demonstration of how computers can be used to embed hidden messages in plain sight.

“Twitter filters most metadata from images, presumably for privacy and data usage reasons,” Buchanan told Digital Trends. “However, I found that ‘ICC profile’ metadata is left untouched. So I crafted an image file which also contains a ZIP archive inside its ICC profile. The ZIP file format is flexible enough that I was able to make the file simultaneously valid as a JPEG and ZIP file. For technical reasons, the contents of the ZIP file had to be split into 64-kilobit chunks, so I used a multipart RAR archive, which finally contained the text document.”

Recommended Videos

Got that? Okay, so it’s not something that most of us are going to worry about when sharing images on Twitter, but it’s an impressive demo of how much raw data can be squeezed into a tweet. By embedding a ZIP file of the complete Shakespeare into a portrait of The Bard himself, it pushes Twitter’s text limit way beyond the current 280 characters per tweet. (While we don’t know exactly how many letters are in the complete works of Shakespeare, according to the Folger Library there are 884,647 words in total.)

“There are two broad terms you could use to describe this technique,” Buchanan said. “[One is] steganography, which is the art of hiding information inside some other data. Modern-day steganography typically aims to be completely undetectable, which my technique is certainly not. A more accurate description of this technique would be a polyglot file, which is used to describe a file which can be simultaneously interpreted as multiple different data formats, depending on what software reads it.”

Buchanan said that after he found out that this could be done, he submitted it to Twitter’s bug bounty program, which pays out money to anyone who can find potential Twitter vulnerabilities that could be exploited by hackers. Twitter turned it down on the basis that it didn’t have any potential security impact, but Buchanan decided to have some fun with it nonetheless. While other people have hidden files in social media posts, Buchanan said that, to his knowledge, he is the first person to do it on Twitter.

Luke Dormehl
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
Google Flow Music Spaces is becoming an all-in-one AI music studio
The latest update brings song editing, stem splitting, image generation, lyrics, and video creation into a single workspace.
Google Flow Music Featured

The company has announced a major update for Flow Music Spaces, bringing a suite of new AI-powered creative tools directly into collaborative workspaces. Instead of jumping between different apps or sessions, users can now generate and edit songs, split audio stems, create images, write lyrics, and even generate videos without leaving a Space.

What's new in Flow Music Spaces?

Read more
A Florida pastor asked ChatGPT if he was okay. It nearly got him killed.
When "just relax and recover" turns out to be the worst medical advice you could get.
ChatGPT on iPhone

Scott Winters, a pastor from Florida, is suing OpenAI after ChatGPT allegedly gave him what his lawsuit calls "extremely dangerous" medical advice, advice that nearly cost him his life.

What happened to the pastor?

Read more
Scientists made robots curious like toddlers, and it helped them learn language twice as fast
Give a robot curiosity, and it starts learning language (and misbehaving) just like a toddler.
robots and kids photo

Scientists have been trying to figure out how kids pick up language so fast for decades, and a new study out of the Okinawa Institute of Science and Technology (OIST) might have cracked part of the puzzle: curiosity.

Researchers built a virtual robot with a brain-inspired neural network and set it loose in a simulated 3D world full of shapes, colors, and simple commands like "push left magenta dumbbell." 

Read more