-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get ValueError("Invalid base45 string") #15
Comments
Same problem here, mine starts different than the HC1, I changed it to what I have, but it still doesn't seem to work. |
Without seeing the cert there's little I can do, though the error sounds like, well, there's invalid base45 in there. |
Sure, here is an example from my country (Netherlands): Changed the Do you see anything different than yours? |
Hello ! I'm from france and i'm not afraid to share mine, it doesn't works : HC1:NCFOXN%TSMAHN-HOUKYHFKK1C8JY%79EHJMAD61Y5:X94PSPAO6R5EB5718PV5-FJLF6EB9UM97H98$QP3R8999Q9E$BDZIF7J7UJYIJZJA3CJPA ZJ83B:2T0KTO9TY$SSQTNI92K92KIJ 7K49B:ZJ83B49UYPTVEU053WZJ$7K+ CUEDDIK9AD1QDGHJYSQ9I67Q4UYQDO%+Q.SQBDO3KLET4615IHP- R4FLM47:/6F0PKSOF77V776K82HPPEPHCR7XBHDOTONO7IRJSP/88KCOK594%I7ZC/FJBAJULJJ9G KPA.DS0IZ5QYE9/MVB1C3ZCD6L 0PN0ZW46+A3VGNNVRG0C7PHBO33PHN%GB$A7WSNBRN%BBHONSK31H3%85709OZL65NO-U+KTBLR19115V6IEPZ7W:AXUGTCOQ83E$ERQV95365EU0O1SO7MFPYQ5XME5UX38/MKD$TGT52:UD13%7SEIB8ES0:3Q2R820G/OB1 |
Just to speed things up: edit your message and place your code in between these `` tags, this way it shows up like |
Finnaly it works well, my mistake was to trust my android phone to extract the string from the QR Code. But with a screencapture and the PIL module, i've a different string ! |
Ah great it works for you! I do it the same way and have tried it a few times now, for me the issue stills persists, can you maybe keep the issue open for me? :D |
@Theagainmen given your cert has a different prefix (NL2 instead of HC1) I wonder what that means. Maybe there's some different encoding here? I can change the code to remove any prefix, but it seems it still doesn't decode, so that wouldn't help us much. |
Hmhh, I thought it was some kind of country code actually, since NL stands for the Netherlands. Looks like this code is also almost double the length the HC1 example code is.. I was so interested in finding out what's in this QR code, but that will have to wait then haha, thanks for your time and effort. |
I've been trying to look more into this and decode it, but the documentation doesn't really seem to be there about the code itself https://github.com/minvws/nl-covid19-testvac-qr-core and https://github.com/minvws/nl-covid19-coronacheck-app-coordination. The string looks base45 to me, but it is invalid.. maybe it's split up into multiple pieces or something? |
How and where do i correctly run the ./vac dec [image] command? I ran it using: python vacdec ("JPEG.jpg") it gives me back the ValueError: invalid base45 string. |
@Theagainmen , I haven't verified, but it seems they might be using Base58: Update: I am now able to decode the message, however fails on zlib: In the case of your shared QR text, this results in the following data: |
is it also possible to alter information en encode it back to a qrcode |
Hit the same issue, it is important you have no leading spaces, exactly same string, but provided as "text" or "terminal" without stripping preceding and leading spaces will fail to decode I've made fix available, along with stripping various prefix codes (not just known ones HC1, HC2, NL1, ...) in #19 |
@Theagainmen For your information, it's not Base58 It's custom, Netherlands specific, Base45 encoding, that uses similar letters to encode the binary data, and the content is nothing like the EU Covid Pass Compare
|
Just checked this tutorial (Python): and works for my NL code. |
Hello, i've try with the exemple string and it working well but with my personnal string i get ValueError("Invalid base45 string"), any idea ?
The text was updated successfully, but these errors were encountered: