← Latest papers
💻 computer science

An (n, n) Threshold Color QR Code-based Visual Secret Sharing Scheme for Privacy Images

This paper proposes a novel (n, n) threshold visual secret sharing scheme that utilizes color QR codes as meaningful shares to securely encrypt and losslessly recover privacy images by leveraging color redundancy and XOR operations.

Original authors: Tao Liu, Yongjie Wang, Xuehu Yan, Yanlin Huo

Published 2026-07-13
📖 5 min read🧠 Deep dive

Original authors: Tao Liu, Yongjie Wang, Xuehu Yan, Yanlin Huo

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a super-secret, colorful photo of your pet dragon that you want to send to your four best friends. But there's a catch: if anyone else sees the photo while it's traveling, they could steal it. You can't just send the photo, and you can't send it in a locked box that looks suspicious (like a heavy, metal safe), because a nosy neighbor might peek inside just to see what's so important.

This is the problem a team of researchers at the National University of Defense Technology tried to solve. They came up with a clever trick called the CQRVSS scheme. Think of it as a magic puzzle where the secret picture is chopped into four pieces, but instead of hiding the pieces in boring, gray envelopes, they hide them inside colorful QR codes (the square barcodes you scan with your phone).

Here is how their "magic trick" works, broken down simply:

The "Invisible Ink" of Color

Usually, QR codes are just black and white squares. But the researchers realized that QR codes don't actually care about the color of the squares, as long as the dark squares are dark enough and the light squares are light enough for the scanner to read.

So, they decided to swap the boring black and white for a rainbow of colors. They picked specific colors that are "dark" (like a deep red or blue) and "light" (like a bright cyan or yellow). By mixing these colors in a very specific way, they could hide the secret dragon photo inside the QR code without breaking the code. The QR code still looks like a normal QR code to a scanner, but it's actually carrying a secret message in its colors.

The "All-or-Nothing" Puzzle

The researchers built a system called an (n, n) Threshold Scheme. Let's say you have 4 friends (n=4).

  • The Rule: You need all 4 friends to put their QR codes together to see the dragon.
  • The Safety: If a sneaky hacker steals only 1, 2, or even 3 of the QR codes, they see nothing but a jumbled mess of colors. It's like trying to solve a puzzle with only a few pieces; you can't see the picture at all. The secret remains completely safe.

The researchers tested this with 4 friends and even 7 friends, and in every case, when they combined all the pieces, the dragon popped out perfectly. The computer measured the result and found the recovered image was 100% identical to the original. In technical terms, the "PSNR" (a score for how similar two images are) was infinity dB, which means there was absolutely no loss of detail. Not a single pixel was missing!

Why This is Better Than Old Tricks

Before this, people tried to hide secrets in images by turning them into "halftone" images (which look like old newspaper prints with tiny dots). The problem? Those dots looked weird and suspicious. If a hacker saw a weird, grainy image, they'd know, "Hey, something secret is in there!"

Other methods used "meaningless" shares—images that looked like random static noise. Again, that screams "I have a secret!"

The researchers argue that their method is safer because QR codes are boring and common. Everyone sees them on menus, posters, and packages. If a hacker sees a colorful QR code, they probably won't think twice. It's like hiding a secret note inside a library book; nobody suspects the book because it looks like a normal book. The researchers showed that their colorful QR codes could be scanned by a standard WeChat app (version 8.0.54) just like any other code, proving they look innocent to both humans and machines.

What They Didn't Do (And What They Ruled Out)

It's important to know what this paper didn't do.

  • They didn't invent a way to open the secret with just some of the friends. If you have 3 out of 4 friends, the secret stays hidden. The paper explicitly rules out any method where fewer than the total number of shares can reveal the image.
  • They didn't use "meaningless" noise. They specifically rejected the idea of using random, suspicious-looking static.
  • They didn't claim this works for any number of friends right now. Their current system requires you to have all the friends present (an n-out-of-n system). They mentioned that making it more flexible (like needing only 3 out of 7 friends) is something for future work, not something they solved in this paper.

The Bottom Line

The researchers proved that you can turn a secret color photo into a set of colorful, scannable QR codes. As long as you have all the pieces, you can get your perfect, lossless photo back. If you are missing even one piece, the secret stays locked away. And the best part? To anyone watching, it just looks like a bunch of harmless, colorful barcodes.

They tested this with images of a baboon and a woman named Barbara, and the results were perfect. The secret was hidden, the shares were safe, and the recovery was flawless. It's a new way to keep your digital secrets safe, using the most ordinary-looking tool in the world: a QR code.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →