An attempt to decode the Digital Covid Certificate (signed by the french app TousAntiCovid)
If you want to try this yourself:
In order to run this code, you will need Node.js 16+ and NPM.
- Use a scanner app on your phone to scan your OWN 2D-QR code
- Copy the 2D-QR code from the scanner app. It should look like this:
HC1:6BFO...
- Create a file called
pass.js
with the following content:export const PASS = `REPLACE THIS WITH YOUR DATA`
- Run
npm install
- Run
npm start
- The decoded data should be printed:
Map(4) {
1 => 'CNAM',
4 => 1600000000,
6 => 1600000000,
-260 => Map(1) {
1 => {
v: [
{
ci: 'urn:uvci:01:FR:XXXXXXXXXXXX#Y',
co: 'FR',
dn: 2,
dt: '2021-XX-XX',
is: 'CNAM',
ma: 'ORG-10003XXXX',
mp: 'EU/1/XX/XXXX',
sd: 2,
tg: '840539XXX',
vp: 'J0XXXXX'
},
[length]: 1
],
dob: 'XXXX-05-03',
nam: { fn: 'CHEGHAM', gn: 'WASSIM', fnt: 'CHEGHAM', gnt: 'WASSIM' },
ver: '1.3.0'
}
}
}
This repository is for research purposes only, the use of this code is your responsibility.
I take NO responsibility and/or liability for how you choose to use any of the source code available here. By using any of the files available in this repository, you understand that you are AGREEING TO USE AT YOUR OWN RISK. Once again, ALL files available here are for EDUCATION and/or RESEARCH purposes ONLY.