Code Monkey home page Code Monkey logo

shc-covid19-decoder's Introduction

shc-covid19-decoder

Visit simple hosted version on your phone (does NOT transmit any data, all remains in your browser) https://fproulx.github.io/shc-covid19-decoder/

About Very simple app to decode your Vaccination Proof QR Code (such as the one provided by government of Quebec) - Compatible with SHC (Smart Health Card standard).

decoder-page demo

Building

  • npm run build compiles the JS
  • npm run dev compiles the JS in watch mode

shc-covid19-decoder's People

Contributors

fproulx avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shc-covid19-decoder's Issues

Arrays and Objects aren't properly displayed in JSON from terminal

The output currently looks like that when we decode from the command line:

[
  {
    resource: {
      resourceType: 'Patient',
      name: [Array],
      birthDate: '1942-01-01',
      gender: 'Male'
    }
  },
  {
    resource: {
      resourceType: 'Immunization',
      vaccineCode: [Object],
      patient: [Object],
      lotNumber: 'EW0193',
      status: 'Completed',
      occurrenceDateTime: '2021-01-01T04:00:00+00:00',
      location: [Object],
      protocolApplied: [Object],
      note: [Array]
    }
  }
]

2 QR codes proofs

It doesn’t work for proofs with 2 QR codes

example of the first part of QR code 1 and 2
shc:/1/2/567629695

shc:/2/2/093740526

Clarification of license

Would you consider adding a specific license (ideally a permissive one like two clause MIT (https://choosealicense.com/licenses/mit/) to this project?

I'm currently working on my own version of scanning COVID cards (albeit with a broader scope), and if there are others who may want to fork or use this, having explicit licensing helps a lot. If you choose to do so, just include the text of the license as a file in the core of the repo, and set it on GitHub. It really does make a difference for others.

Thank you for this awesome project.

Where does the hardcoded public key come from?

I was browsing the source code and wondering where does this public key used to verify signature comes from:

return jose.JWK.asKey({
kid: "some-kid",
alg: "ES256",
kty: "EC",
crv: "P-256",
use: "sig",
x: "XSxuwW_VI_s6lAw6LAlL8N7REGzQd_zXeIVDHP_j_Do",
y: "88-aI4WAEl4YmUpew40a9vq_w5OcFvsuaKMxJRLRLL0",
}).then(function (key) {

As far as I know, Quebec’s government (my assumption, since you’re from Montreal 🙂) has not released its public key yet 🤔

Thanks!

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.