Coder Social home page Coder Social logo

vacdec's Issues

Pyzbar Issue

Hi there!

When running the script I am getting the following errors:
Traceback (most recent call last): File "vacdec.py", line 8, in <module> import pyzbar.pyzbar File "/usr/local/lib/python3.7/dist-packages/pyzbar/pyzbar.py", line 7, in <module> from .wrapper import ( File "/usr/local/lib/python3.7/dist-packages/pyzbar/wrapper.py", line 143, in <module> c_uint_p, # minor File "/usr/local/lib/python3.7/dist-packages/pyzbar/wrapper.py", line 136, in zbar_function return prototype((fname, load_libzbar())) File "/usr/local/lib/python3.7/dist-packages/pyzbar/wrapper.py", line 115, in load_libzbar libzbar, dependencies = zbar_library.load() File "/usr/local/lib/python3.7/dist-packages/pyzbar/zbar_library.py", line 65, in load raise ImportError('Unable to find zbar shared library') ImportError: Unable to find zbar shared library

Any ideas what could be happenning?

Thanks!

Index out of range

Hey!

I have a question to this beautiful peace of software ...
I don't know if its an issue with Jaris Fork or in the main branch but as i am lacking
python knowledge i humble ask anyways:

/vacdec/vacdec --image-file /tmp/gettinger_v3.png

Traceback (most recent call last):
File "/vacdec/vacdec", line 241, in
main()
File "/vacdec/vacdec", line 228, in main
covid_cert_data = data[0].data.decode()
IndexError: list index out of range

Can anyone give me a hint why this certificate shows that error please?

Kind regards
Martin

Termux errors

`import:` unable to open X server `' @ error/import.c/ImportImageCommand/348. import: unable to open X server `' @ error/import.c/ImportImageCommand/348. import: unable to open X server `' @ error/import.c/ImportImageCommand/348. import: unable to open X server `' @ error/import.c/ImportImageCommand/348. import: unable to open X server `' @ error/import.c/ImportImageCommand/348. import: unable to open X server `' @ error/import.c/ImportImageCommand/348. import: unable to open X server `' @ error/import.c/ImportImageCommand/348. vacdec: line 12: syntax error near unexpected token `(' vacdec: line 12: `data = pyzbar.pyzbar.decode(PIL.Image.open(sys.argv[1]))'

To everyone who wants a faked QR certificate

Since there have been many questions on that, I think some education on the subject is in order.

@hannob If you think this is not the right place, please feel free to close the issue.

TLDR
Faking a QR code without the private key doesn't work and will not work. If it would, all security regarding computers would be destroyed.

Why?
The QR code is cryptographically signed, using a private/public keypair. Cryptographic signatures can be generated if you have the private key (which, as the name says, is kept private). They can be validated using the public key, which is public.
Since it is only signed and not encrypted, it is possible to read the message without any key at all. This is what this project does.

Encryption vs Signature
In a public/private key system, every user has a private key (which they have to keep private, so not share with anyone) and a public key. The public key is public, meaning, it is shared with everyone.

Using these keys, there are two main things you can do: encrypt a message or sign a message (or both at once).

To encrypt something, you use the public key of the user that should be able to read the message. This returns a message, that looks like random garbage. Only using that user's private key, you can restore the message to it's original form.

To sign something, you use your own private key. This creates a signature, that can be attached to the message. The message itself is not modified and thus still legible (as if you would put a signature under a letter). Using the sender's public key (which everyone else has), other users can verify, that the message came from the sender and that it wasn't modified.

What does this project do?
It reads the QR code's data, without even checking the signature. So, basically, it doesn't touch the security of the QR code at all.

What would it mean if you could just create valid QR codes without the private key?
That would, literally, mean, that all security that exists in regards to digital communications would be gone. That would mean, no online banking, no online shopping, not even safe use of messaging apps or social networks.
It would be close to a digital apocalypse.

So how do I get a valid QR code?
The only way to get a valid QR code is to get it from someone who has the private key. Which, to my knowledge, are only the authorities responsible for vaccinations. So go, get your shot.

By the way: in many countries documentation regarding vaccinations count as official documents. Forging those can lead to (depending on the country) pretty substantial fines and even jail sentences of over a year. Is that really worth it?

details on fields

Hi,
can you share the
encoding of the dates tg and vp
as well as what field 4, 6, dn, mp, sd stand for?
Or is there some documentation?

Print only some data

Hi, there is a way to print only some data of the decoded qr? like only the name or date of birth?

Hey

Hey

i was wondering if there is any reverse process .

i have the json built in and I would like to convert it to QR

would be awesome if you could provide me any tutorial or other github links . Couldnt find any

Unicode characters in QR code displays below error

{-260: {1: {'dob': 'xxxx-xx-xx',
'nam': {'fn': Traceback (most recent call last):
File "vacdec.py", line 19, in
pprint.pprint(cbor2.loads(decoded.value[2]))
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 53, in pprint
printer.pprint(object)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 139, in pprint
self._format(object, self._stream, 0, 0, {}, 0)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 167, in _format
p(self, object, stream, indent, allowance, context, level + 1)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 189, in _pprint_dict
context, level)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 346, in _format_dict_items
context, level)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 167, in _format
p(self, object, stream, indent, allowance, context, level + 1)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 189, in _pprint_dict
context, level)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 346, in _format_dict_items
context, level)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 167, in _format
p(self, object, stream, indent, allowance, context, level + 1)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 189, in _pprint_dict
context, level)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 346, in _format_dict_items
context, level)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 167, in _format
p(self, object, stream, indent, allowance, context, level + 1)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 189, in _pprint_dict
context, level)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 346, in _format_dict_items
context, level)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\pprint.py", line 176, in _format
stream.write(rep)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 1-9: character maps to

vacenc

hello do you have an idea to do the reverse : generate qrcode base45 from json?

thank's

Can you please make a video tutorial ?

So sir can you please make a video tutorial for me, because i don't understand it perfectly.
I live in the Netherlands so it would be very nice if you can show how to make that vaccination qr code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.