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…
XPENG just put its humanoid robot on the production line, and it walked itself out
IRON clocks in for its first shift
XPENG Iron

XPENG’s humanoid robot has officially joined the workforce, and it even got an employee badge. The Chinese automaker announced on September 8 that its next-generation IRON had completed assembly and autonomously walked off its newly commissioned humanoid robot production line in Guangzhou.

CEO He Xiaopeng then pinned a staff badge onto the robot, symbolically welcoming it to the XPENG team. It is a charming little ceremony for a machine that the company hopes will eventually become a regular part of everyday life. XPENG is moving IRON beyond R&D prototypes toward production-line manufacturing, applying the quality-control systems and manufacturing experience it has developed through its electric vehicle business.

Read more
An AI-designed drug might help slow aging, but we’re not there yet
The results hint at a possible anti-aging effect, but there’s still a long way to go before we know what it means.
medical test tubes

Rentosertib, a drug Insilico Medicine designed almost entirely using AI, was created to treat idiopathic pulmonary fibrosis, a disease that scars and stiffens the lungs over time. But fighting lung disease was only half the plan from the start.

According to a new study published in Nature Biotechnology, the drug's target was chosen specifically because it overlaps heavily with the biology of aging, and the whole trial was designed to test whether treating the lungs could also mean turning back the body's biological clock.

Read more
Google and Cathay Pacific are using AI to tackle aviation’s overlooked climate problem
A third of aviation's climate impact comes from contrails most people never think about.
Aircraft, Flight, Transportation

Those wispy white lines trailing behind airplanes (called contrails) sure look harmless from the ground, but they're doing more damage to the climate than we realize.

As part of Operating Blue Skies, Google has partnered with Cathay Pacific, one of the major international airlines operating both passenger and cargo flights, to test and deploy AI-driven contrail mitigation technology across a region where air travel is growing faster than anywhere else: Asia Pacific. 

Read more