So for reference, QR codes are specified up to 177 pixels wide, and at that size they can hold around 2KB with medium error correction.
But for practical use you probably want half that width, so a 400 byte payload is fine but not much more.
So for reference, QR codes are specified up to 177 pixels wide, and at that size they can hold around 2KB with medium error correction.
But for practical use you probably want half that width, so a 400 byte payload is fine but not much more.
You're much better off using the QR code to encode a unique key which points to a record of the desired size in some database in a networked system.
Edit: this is actually a discussion I've had in a professional context pretty recently.
I'm sure you understand why this is not going to work the same way as reading the actual public key. Not only it needs a network, but it also is susceptible to stealing the values from the database by just generating the (short) unique keys.
I could only get it into a 141x141 by dropping error correction right down to 7%, but under ideal conditions (from my monitor to an iPhone) it reads reliably, as shown. I tried a 4096 bit key, but I couldn't (as text) get it into even a 171x171 QR Code at minimum error correction without truncating (and even in ideal conditions, my phone won't reliably read 171x171 resolution QR codes...)
Even a very small QR code fits enough bits to prevent that.
> it needs a network
It depends on what the key is for. For many purposes a hash of the public key is sufficient.
A barcode is not often used as the sole storage medium in an application. Typically it's used in conjunction with a piece of software that can connect to a database. In a manufacturing setting this could be a piece of shop floor control software. In that setting the barcode doesn't encode any information that could change in the database. It is instead used to encode a machine-readable identifier for the material that it is labeling.