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

Chinese Student Got Rescued from Mount Fuji—Then Went Back for His Phone and Needed Saving Again

A student was saved two times in four days after ignoring warnings to stay off Mount Fuji.

The Fat Around Your Thighs Might Be Affecting Your Mental Health

New research finds that where fat is stored—not just how much you have—might shape your mood.

Meet the Indian Teen Who Can Add 100 Numbers in 30 Second and Broke 6 Guinness World Records for Mental Math

The Indian teenager is officially the world's fastest "human calculator".

New Quantum Navigation System Promises a Backup to GPS — and It’s 50 Times More Accurate

An Australian startup’s device uses Earth's magnetic field to navigate with quantum precision.

AI Is Changing Education — But Are We Keeping Up?

Ever since tools like ChatGPT and DeepSeek hit the mainstream, they’ve shaken up everything from office tasks to art generation. Unsurprisingly, students quickly saw the potential — and began using AI to cheat on essays and exams. At first, it felt like a shortcut. But if AI can ace your test, what does that say […]

Japan Plans to Beam Solar Power from Space to Earth

The Sun never sets in space — and Japan has found a way to harness this unlimited energy.

The UAE Wants AI to Write Its Laws — What Could Possibly Go Wrong?

But can machines really grasp justice, fairness, and human rights?

AI Made Up a Science Term — Now It’s in 22 Papers

A mistranslated term and a scanning glitch birthed the bizarre phrase “vegetative electron microscopy”

Trump science director says American tech can 'manipulate time and space'

Uhm, did we all jump to Star Trek or something?

Could This Saliva Test Catch Deadly Prostate Cancer Early?

Researchers say new genetic test detects aggressive cancers that PSA and MRIs often miss