GithubHelp home page GithubHelp logo

petres / green-pass-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lumbric/green-pass-generator

0.0 0.0 0.0 585 KB

generate a creditcard sized green pass card

License: MIT License

Python 100.00%

green-pass-generator's Introduction

MIT License Test runs

Green Pass Generator

Generates a beautiful credit card sized PDF file which contains your green pass, to prove your Covid-19 immune status.

Example Green Pass

Usage

Then run the script, passing a picture which contains the QR code of your vaccination certificate:

./green-pass-generator -O output -i input/gabriele-musterfraugoessinger.png

Other command line parameters allow to set the output file name and to choose the SVG convert, see output of ./green-pass-generator --help.

If you want to generate multiple green pass cards, put all input files in the folder input and run:

for fname in $(cd input; ls);
    do ./green-pass-generator -O output -i input/$fname;
done

Disclaimer: No guarantee given that the specification is completely fulfilled. It might work or it might not work. Do run only with trusted input QR codes, there are no security checks. At the moment there is no proper handling of test or recovery certificates.

Installation

For MacOS and Linux you need to install libzbar0, e.g. by running:

sudo apt install libzbar0

Then clone the Git repository and install all Python dependencies:

git clone https://github.com/lumbric/green-pass-generator
pip install -r requirements.txt

If you want to keep your OS clean, you can install the dependencies in a virtual environment.

If you want to use Inkscape as SVG converter, use your OS' package manager to install it or download it directly from their web page.

Is this legal?

Probably yes, but I am not sure what counts as proof of a valid certificate. In Germany there is a company selling such cards and several newspaper articles suggest that it should be fine. The Austrian law does not seem to be very specific, whether you are allowed to produce your own proof containing a valid QR code. Of course, this script can only re-generate a valid QR code. To generate a new green pass certificate, you would need to have access to a valid private key.

Links

Certificate specification:

Similar projects:

green-pass-generator's People

Contributors

lumbric avatar

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.