News for hackers. Stuff that matters.
Re:What's Inside the EU Green Pass QR Code? by lymeswold on Tuesday June 22, 2021 @09:31AM (#27591366)
(2^16)^(1/3) < 41 So why base 45?
Re:What's Inside the EU Green Pass QR Code? by kubanczyk on Tuesday June 22, 2021 @11:18AM (#27592754)
Yes, 41 characters would be sufficient.

I would have omitted these four (the asterix being there only to have a consecutive subset):

    36 Space
    37 $
    38 %
    39 *
Especially % can be confusing, as %20AA seems like a valid base45 both before and after urldecode. The $ is a lesser footgun.

I'd be keen to learn why they decided to use full 45 characters available in alphanumeric QR.

Re:What's Inside the EU Green Pass QR Code? by lesquivemeau on Tuesday June 22, 2021 @10:33AM (#27592131)
Because you encode using 45 different characters
Re:What's Inside the EU Green Pass QR Code? by KMag on Tuesday June 22, 2021 @09:49PM (#27599844)
The GP is saying 3 base41 characters can encode 2 bytes. Using base45 doesn't shorten the encoded message size unless they increase the encoding unit to more than 2 bytes.