homehome Home chatchat Notifications


Whole Shakespeare collection hidden inside a single tweet

Shakespeare-ception.

Mihai Andrei
November 9, 2018 @ 9:01 pm

share Share

They say Twitter has a 280-character limit but one undergrad exceeded it — by a gazillion.

Image credits: Wikipedia.

Look at the image above. Sure, Shakespeare looks dashing, but that’s not the point. Look at it closely — what do you see? What if I told you it holds the man’s entire works inside it? David Buchanan, a computer science undergraduate, managed to infiltrate a zip archive of all of Shakespeare’s work into a small version of the image and then added it to a Tweet.

It worked.

So how does this work?

[panel style=”panel-default” title=”Shakespeare’s works” footer=””]There are 884,421 total words in Shakespeare’s 43 works. The average length of English words is 4.5 letters, which adds up to around 4,000,000 characters.

Since 1 character = 1 byte and 1 Megabyte = 1,000,000 bytes, Shakespeare’s works can fit in about 4 MB. This is the bare minimum.[/panel]

Speaking to Motherboard, Buchanan explained:

“So basically, I wrote a script which parses a JPG file and inserts a big blob of ICC metadata,” he said. “The metadata is carefully crafted so that all the required ZIP headers are in the right place.”

“I was just testing to see how much raw data I could cram into a tweet and then a while later I had the idea to embed a ZIP file,” Buchanan added.

For the less computer-savvy, what Buchanan is saying is that he wrote a script that analyzes the logical syntactic components (parses) embedded in an image (JPG file). All JPG files have metadata — which is basically a set of data that gives information about the image itself (and potentially other data). Thus, he was able to hide the whole archive (ZIP).

It’s not the first time something like this has been done — especially on Twitter. There’s actually a name for this technique: it’s called steganography. Generally speaking, steganography is the practice of concealing a file, message, image, or video within another file, message, image, or video. A recent paper describes the practice and some case studies, particularly the potential for malicious usage.

Funny enough, Buchanan thought this was a bug and reported it to Twitter — but they replied that it’s “not a bug”. So at least for the meantime, Twitter steganography is here to stay — at least for now.

share Share

Japan is using AI to combat anime and manga piracy

Japan’s anime industry is a multibillion-dollar cultural powerhouse, but piracy poses a massive challenge.

Local governments are using AI without clear rules or policies, and the public has no idea

In 2017, the city of Rotterdam in the Netherlands deployed an artificial intelligence (AI) system to determine how likely welfare recipients were to commit fraud. After analysing the data, the system developed biases: it flagged as “high risk” people who identified as female, young, with kids, and of low proficiency in the Dutch language. The […]

Drone footage on New Year Eve is the prettiest thing I've seen today

Take a little break and enjoy the festivities all over again, all thanks to Jeff Cremer and his trusty drone.

Godfather of AI says there's a 10-20% chance AI wipes out humanity in 30 years

AI could bring an industrial revolution-level change, but at what cost?

The 12 Smartest Dinosaurs: The Top Brainy Beasts of the Mesozoic

A rundown of some of the most interesting high-IQ dinos.

These Revolutionary Maps Are Revealing Earth's Geological Secrets

This work paves the way for more precise and comprehensive geological models

These Cockatoos Prepare Their Food by Dunking it Into Water

Just like some of us enjoy rusk dipped in coffee or tea, intelligent cockatoos delight in eating rusk dipped in water.

Microplastics Discovered in Human Brain Tissue: What Are The Health Risks?

From the air we breathe to the water we drink, microplastics infiltrate every corner of our lives—but what happens when they cross into our brains?

How Hot is the Moon? A New NASA Mission is About to Find Out

Understanding how heat moves through the lunar regolith can help scientists understand how the Moon's interior formed.

New tools enable companies to improve the sustainability of their products

There’s no shortage of environmental crises. Whether it’s climate change, plastic pollution, or simply our mounting waste, we just produce too much stuff — and then throw it away. There’s no silver bullet or magic tool that can solve everything. We need societal changes, better regulation, and more responsible companies. In a new study, a […]