Dual-Link QR Code Generator(dualqrcode.com)
75 points by redbell 191 days ago | 7 comments
redbell 191 days ago
jdoe1337halo 191 days ago
Hey I made this! Thanks for posting! I answered most questions in the r/webdev reddit thread but I will happily answer more questions here.
mikevin 191 days ago
Do you have a writeup of the technical details? How does this exploit (without reading the code and reverse engineering it)?
pmxi 190 days ago
I'm not the author, but there's a brief explanation on the GitHub README:

(https://github.com/zacharyreese/DualQRCode)

The generator creates two separate QR codes with high error correction (Level H) and combines them into a single image using pixel splicing. Each cell that differs between the two QR codes is split in two, creating a pattern that can be interpreted differently based on the scanning angle.

bryankaplan 191 days ago
I've long wished hyperlinks would permit multiple hrefs. Hypertext could be more sophisticated.

Multi-link QR codes could be practically useful, provided an interstice appears with the URLs and allows a person to follow any of them or all of them.

weinzierl 191 days ago
They did. I think the idea with XML based hypertext was to have links that are star-shaped with potentially multiple sources and potentially multiple targets and the location where the link is defined completely independent from any sources or targets.

One application would have been that people publish link collections and you could e.g read HN with the links I created.

There was a proposed standard for this but its name escapes me for the moment.

Of course all of this never went farther than XHTML where it took a sharp turn into a different direction.

sidpatil 190 days ago
> There was a proposed standard for this but its name escapes me for the moment.

XLink? It supports a feature known as extended links, which seems similar to what you're describing.

https://en.wikipedia.org/wiki/XLink

a2800276 191 days ago
This is interesting and sets off a bunch of ideas. It might be fun to generate a printed version that can differently depending on how it's lit, either red/green or tricks with pwm'ing LEDs...
martylamb 190 days ago
Sounds like a fun item for an escape room.
fastfingertips 191 days ago
it works!
omoikane 191 days ago
See also:

https://news.ycombinator.com/item?id=42809268 - A QR code that sends you to a different destination – lenticular and adversarial (2025-01-23, 76 comments)

KenSF 191 days ago
as asked repeatedly and never answered on reddit, what is the use case for this?
jdoe1337halo 191 days ago
Does a proof of concept need a use case? :)
nadermx 191 days ago
Take a menu in a tourist spot, could have it go to both languages
rblatz 191 days ago
So just keep scanning repeatedly until it gets you to the right menu?

Wouldn’t it be easier to just have the link the QR code points to show a language picker?

axelthegerman 190 days ago
Or use the available language information from the device to guess the best language (and have a picker to change)
x13 191 days ago
ok, so you're going to explain to people to scan it at different angles? absurd. this is like having a hyperlink go to a random destination.
solidr53 191 days ago
real-world AB testing is the only thing I can think of
esperent 191 days ago
Not all questions have an answer that will satisfy you.

In this case, it probably exists because it's technically interesting, and for no other reason.

Although I can totally image a roulette style game played by people who like that kind of thing: one link leads to something nice like puppy photos, the other leads to something disgusting.