{"id":2200,"date":"2021-09-15T19:22:00","date_gmt":"2021-09-15T18:22:00","guid":{"rendered":"http:\/\/perso.ens-lyon.fr\/ghys\/?p=2200"},"modified":"2022-08-16T19:27:17","modified_gmt":"2022-08-16T18:27:17","slug":"2200","status":"publish","type":"post","link":"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/","title":{"rendered":"Math in your sanitary pass"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.lemonde.fr\/sciences\/article\/2021\/09\/15\/des-maths-dans-votre-passe-sanitaire_6094702_1650684.html\">https:\/\/www.lemonde.fr\/sciences\/article\/2021\/09\/15\/des-maths-dans-votre-passe-sanitaire_6094702_1650684.html<\/a><\/p>\n\n\n\n<p>QR codes are loaded with math. The health pass consists of 7,225 little white or black squares, arranged in 85 rows and 85 columns, that encode vaccination status, or test result, or certificate of recovery. This poses some very interesting mathematical and computer problems.<\/p>\n\n\n\n<p>The first problem is geometric. The optical reader that scans the QR code sees the square in perspective, as any quadrilateral. So the perspective must be straightened: this is fairly easy. You also have to recognize the top and bottom, the right and left. This is also quite easy because three of the four corners are decorated with small 7 \u00d7 7 squares that are easily recognizable. Sometimes the QR code is presented on a sheet of paper that has been folded or crumpled and the rows and columns are not straight: you have to rectify them. Thirteen 5 \u00d7 5 squares, also recognizable, are spread out in the large square to help the software get it all straight.<\/p>\n\n\n\n<p>Detectable although unreadable<\/p>\n\n\n\n<p>The second problem comes from the fact that the reader can get confused because some of the little squares can be damaged. You have to use error-correcting codes that produce deliberately redundant messages, to make sure you get back what you need. Airplane pilots have known this for a long time by saying \u00ab\u00a0Papa, Tango, Charlie\u00a0\u00bb instead of \u00ab\u00a0PTC\u00a0\u00bb. QR codes use a more elaborate method, invented by Irving Reed and Gustave Solomon in 1960 and based on deep arithmetic theorems. The result is remarkable, since the reading can be done correctly even if 30% of the small squares are unreadable. Try making an ink stain (not too big) in the middle of your health pass and you will see that it is still valid.<\/p>\n\n\n\n<p>Finally, the authenticity of the document must be guaranteed. Here again, very subtle mathematical and computer methods are used. Anyone can read the content of the certificate (provided they know a little about computers) but it is accompanied by an encrypted and unforgeable \u00ab\u00a0digital signature\u00a0\u00bb produced from the content of the message using an asymmetric secret code. The idea is that some operations are easy to do and almost impossible to undo.<\/p>\n\n\n\n<p>Isn&rsquo;t it said that it is easier to get toothpaste out of the tube than to get it in? The tube in question is still mathematical, based on 19th century arithmetic, greatly improved by 20th century computer scientists. Thanks to these methods, the TousAntiCovid Verif application can guarantee authenticity: we can verify a signature that a forger could not have produced.<\/p>\n\n\n\n<p>Possible malpractice<\/p>\n\n\n\n<p>However, not everything is perfect and malfeasance is possible. Access codes to Medicare servers can be stolen, or a dishonest caregiver could make a fake vaccination certificate. On the other hand, TousAntiCovid Verif only guarantees the validity of the pass, and does not provide any information other than name and date of birth. However, the QR code contains other data, such as the date of vaccination, type of vaccine, etc., which are intended for border crossings and which should not be accessible to everyone. Even if it is not legal, many websites allow to read and store the complete content of health passes.<\/p>\n\n\n\n<p>Two centuries of mathematics have passed since the pioneering work of Carl Friedrich Gauss and Evariste Galois led to the emergence of modern cryptography. They would have been the first to be surprised to see that they are at the origin of these small black and white squares. Science takes its time and reserves surprises.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.lemonde.fr\/sciences\/article\/2021\/09\/15\/des-maths-dans-votre-passe-sanitaire_6094702_1650684.html QR codes are loaded with math. The health pass consists of 7,225 little white or black squares, arranged in 85 rows and 85 columns, that encode vaccination status, or test result, or certificate of recovery. This poses some very interesting mathematical and computer problems. The first problem is geometric. The optical reader that scans &hellip; <a href=\"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/\" class=\"more-link\">Continuer la lecture de <span class=\"screen-reader-text\">Math in your sanitary pass<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","ub_ctt_via":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"episode_type":"","audio_file":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","filesize_raw":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-2200","post","type-post","status-publish","format-standard","hentry","category-non-classe-en"],"featured_image_src":null,"author_info":{"display_name":"ghys","author_link":"https:\/\/perso.ens-lyon.fr\/ghys\/author\/ghys\/"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Math in your sanitary pass - \u00c9tienne Ghys<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Math in your sanitary pass - \u00c9tienne Ghys\" \/>\n<meta property=\"og:description\" content=\"https:\/\/www.lemonde.fr\/sciences\/article\/2021\/09\/15\/des-maths-dans-votre-passe-sanitaire_6094702_1650684.html QR codes are loaded with math. The health pass consists of 7,225 little white or black squares, arranged in 85 rows and 85 columns, that encode vaccination status, or test result, or certificate of recovery. This poses some very interesting mathematical and computer problems. The first problem is geometric. The optical reader that scans &hellip; Continuer la lecture de Math in your sanitary pass &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/\" \/>\n<meta property=\"og:site_name\" content=\"\u00c9tienne Ghys\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-15T18:22:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-16T18:27:17+00:00\" \/>\n<meta name=\"author\" content=\"ghys\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"ghys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/\",\"url\":\"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/\",\"name\":\"Math in your sanitary pass - \u00c9tienne Ghys\",\"isPartOf\":{\"@id\":\"https:\/\/perso.ens-lyon.fr\/ghys\/#website\"},\"datePublished\":\"2021-09-15T18:22:00+00:00\",\"dateModified\":\"2022-08-16T18:27:17+00:00\",\"author\":{\"@id\":\"https:\/\/perso.ens-lyon.fr\/ghys\/#\/schema\/person\/069f6bb9d42c992d92bef80c575edce9\"},\"breadcrumb\":{\"@id\":\"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/perso.ens-lyon.fr\/ghys\/accueil\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Math in your sanitary pass\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/perso.ens-lyon.fr\/ghys\/#website\",\"url\":\"https:\/\/perso.ens-lyon.fr\/ghys\/\",\"name\":\"\u00c9tienne Ghys\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/perso.ens-lyon.fr\/ghys\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/perso.ens-lyon.fr\/ghys\/#\/schema\/person\/069f6bb9d42c992d92bef80c575edce9\",\"name\":\"ghys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/perso.ens-lyon.fr\/ghys\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4482fb1bb546b94acf8ae35749ecbb87a8515a7bdaf0a461022cdc80db4db941?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4482fb1bb546b94acf8ae35749ecbb87a8515a7bdaf0a461022cdc80db4db941?s=96&d=mm&r=g\",\"caption\":\"ghys\"},\"url\":\"https:\/\/perso.ens-lyon.fr\/ghys\/author\/ghys\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Math in your sanitary pass - \u00c9tienne Ghys","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/","og_locale":"fr_FR","og_type":"article","og_title":"Math in your sanitary pass - \u00c9tienne Ghys","og_description":"https:\/\/www.lemonde.fr\/sciences\/article\/2021\/09\/15\/des-maths-dans-votre-passe-sanitaire_6094702_1650684.html QR codes are loaded with math. The health pass consists of 7,225 little white or black squares, arranged in 85 rows and 85 columns, that encode vaccination status, or test result, or certificate of recovery. This poses some very interesting mathematical and computer problems. The first problem is geometric. The optical reader that scans &hellip; Continuer la lecture de Math in your sanitary pass &rarr;","og_url":"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/","og_site_name":"\u00c9tienne Ghys","article_published_time":"2021-09-15T18:22:00+00:00","article_modified_time":"2022-08-16T18:27:17+00:00","author":"ghys","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"ghys","Dur\u00e9e de lecture estim\u00e9e":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/","url":"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/","name":"Math in your sanitary pass - \u00c9tienne Ghys","isPartOf":{"@id":"https:\/\/perso.ens-lyon.fr\/ghys\/#website"},"datePublished":"2021-09-15T18:22:00+00:00","dateModified":"2022-08-16T18:27:17+00:00","author":{"@id":"https:\/\/perso.ens-lyon.fr\/ghys\/#\/schema\/person\/069f6bb9d42c992d92bef80c575edce9"},"breadcrumb":{"@id":"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/perso.ens-lyon.fr\/ghys\/2021\/09\/15\/2200\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/perso.ens-lyon.fr\/ghys\/accueil\/"},{"@type":"ListItem","position":2,"name":"Math in your sanitary pass"}]},{"@type":"WebSite","@id":"https:\/\/perso.ens-lyon.fr\/ghys\/#website","url":"https:\/\/perso.ens-lyon.fr\/ghys\/","name":"\u00c9tienne Ghys","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/perso.ens-lyon.fr\/ghys\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/perso.ens-lyon.fr\/ghys\/#\/schema\/person\/069f6bb9d42c992d92bef80c575edce9","name":"ghys","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/perso.ens-lyon.fr\/ghys\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4482fb1bb546b94acf8ae35749ecbb87a8515a7bdaf0a461022cdc80db4db941?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4482fb1bb546b94acf8ae35749ecbb87a8515a7bdaf0a461022cdc80db4db941?s=96&d=mm&r=g","caption":"ghys"},"url":"https:\/\/perso.ens-lyon.fr\/ghys\/author\/ghys\/"}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"ghys","author_link":"https:\/\/perso.ens-lyon.fr\/ghys\/author\/ghys\/"},"uagb_comment_info":0,"uagb_excerpt":"https:\/\/www.lemonde.fr\/sciences\/article\/2021\/09\/15\/des-maths-dans-votre-passe-sanitaire_6094702_1650684.html QR codes are loaded with math. The health pass consists of 7,225 little white or black squares, arranged in 85 rows and 85 columns, that encode vaccination status, or test result, or certificate of recovery. This poses some very interesting mathematical and computer problems. The first problem is geometric. The optical reader that scans\u2026","_links":{"self":[{"href":"https:\/\/perso.ens-lyon.fr\/ghys\/wp-json\/wp\/v2\/posts\/2200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/perso.ens-lyon.fr\/ghys\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/perso.ens-lyon.fr\/ghys\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/perso.ens-lyon.fr\/ghys\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/perso.ens-lyon.fr\/ghys\/wp-json\/wp\/v2\/comments?post=2200"}],"version-history":[{"count":3,"href":"https:\/\/perso.ens-lyon.fr\/ghys\/wp-json\/wp\/v2\/posts\/2200\/revisions"}],"predecessor-version":[{"id":2204,"href":"https:\/\/perso.ens-lyon.fr\/ghys\/wp-json\/wp\/v2\/posts\/2200\/revisions\/2204"}],"wp:attachment":[{"href":"https:\/\/perso.ens-lyon.fr\/ghys\/wp-json\/wp\/v2\/media?parent=2200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/perso.ens-lyon.fr\/ghys\/wp-json\/wp\/v2\/categories?post=2200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/perso.ens-lyon.fr\/ghys\/wp-json\/wp\/v2\/tags?post=2200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}