Decoding European C...
 
Notifications
Clear all

Decoding European Covid Certificate (Green Pass)

1 Posts
1 Users
0 Reactions
376 Views
Viotto
(@viotto)
Member Administrator
Joined: 10 years ago
Posts: 43
Topic starter   [#27]

For those who want to know what data your European Covid certificate QR code actually contains: decoding it was simple.
The data is compressed and encoded according to the following scheme:
Base45 / Zlib / COSE / CBOR.

The hard part is not decoding it, but re-encoding it with altered data, as asymmetric encryption is used here and private key is needed to encode it. Difficult, but not impossible.

{
  "4" : 1683849600,
  "6" : 1628326957,
  "1" : "IT",
  "-260" : {
	"1" : {
	  "v" : [ {
		"dn" : 2,
		"ma" : "ORG-100030215",
		"vp" : "1119349007",
		"dt" : "2021-09-02",
		"co" : "IT",
		"ci" : "01IT0C597F6850EB405F9D3A5BDD373D4864#8",
		"mp" : "EU/1/20/1528",
		"is" : "Ministero della Salute",
		"sd" : 2,
		"tg" : "840539006"
	  } ],
	  "nam" : {
		"fnt" : "VIOTTO",
		"fn" : "VIOTTO",
		"gnt" : "FRANCESCO",
		"gn" : "FRANCESCO"
	  },
	  "ver" : "1.0.0",
	  "dob" : "1990-05-20"
	}
    }
}


   
Quote
Share: