by codeflo · 5y ago · 0 comments
This does not extent qrcode at all, instead it defines a binary-to-text encoding designed to fit in qrcode’s existing alphanumeric mode, exactly like base32, base64 or base85 (or base36, base62, binhex, quopri) but fitting the specific constraints of the qrcode medium.
You don't need every QR code software to be fixed anyway. Only the one which will use those QR codes which don't yet exist. These softwares will have to understand Base45 anyway.
If you wrote that QRcode is not extensible (I don't know if that's the case) I would have agreed.
No, the existing software misbehaves (and possibly crashes) when scanning pure binary data. If it did nothing problematic then the use of binary data would not matter, only the sofware which “will have to understand base45 anyway” would need to be binary-clean.
And here qrcode software does not need to understand base45: the user can copy the base45 textual data to whichever other program cares for it.
> If you wrote that QRcode is not extensible (I don't know if that's the case) I would have agreed.
Why would I write that when it has nothing to do with the issue?
And qrcode can be extended: the encoding mode is specified by a nibble, only 9 values are currently in use.
However, we could in theory get around this by using binary data formats that always begin with an invalid text character (0x80-0x9f). This way, an implementation can know that the data is not ISO 8859-1, and try to decode whatever format it discovers through the beginning byte signature.
I've actually put this into Concise Encoding [1]
[1] https://github.com/kstenerud/concise-encoding/blob/master/cb...
This is not a realistic choice for many projects.
If not, there is a software layer anyway. Adding another skin to the onion is not the best way to compress data.
If the crash is happening in the SDK (on binary QR codes), then your only option is to ditch binary QR and implement a workaround.
I at least find it good that existing solutions still get optimizations, even and are enhanced, vs. just throwing everything away at the slightest issue and redo everything, the that churn just costs a lot of $€£ while never bringing out something mature, i.e., useful for the masses.