---
title: "Discussion on \"How passport MRZ check digits work, with code to validate them\" | Hashnode"
description: "Discussion on \"How passport MRZ check digits work, with code to validate them\". Passport MRZ check digits use weights 7, 3, 1 and sum mod 10 (ICAO 9303). Tested Python to validate them, including the composite digit."
url: "https://hashnode.com/posts/how-passport-mrz-check-digits-work-with-code-to-validate-them/6b12f9ad15b699cc39ce09dc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How passport MRZ check digits work, with code to validate them](https://quantumbreakz.hashnode.dev/how-passport-mrz-check-digits-work-with-code-to-validate-them?utm_source=hashnode&utm_medium=feed)

Passport MRZ check digits use weights 7, 3, 1 and sum mod 10 (ICAO 9303). Tested Python to validate them, including the composite digit.

1d ago · 5 min read · quantumbreakz.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#ocr](https://hashnode.com/tag/ocr)
-   [#kyc](https://hashnode.com/tag/kyc)
-   [#security](https://hashnode.com/tag/security)

## Written by

[Ali Ahmed](https://hashnode.com/@quantumbreakz)

@quantumbreakz · Lahore, Pakistan

  
[View profile](https://hashnode.com/@quantumbreakz)

AI Engineer in Lahore. LLM systems, AI agents and KYC computer vision/OCR. Writing with tested code at aliahmed.si

I'm Ali Ahmed (QuantumBreakz on GitHub), an AI engineer in Lahore, Pakistan. I build production AI: KYC computer vision and multilingual OCR, multi-agent LLM systems, and open-source fixes in projects such as LiteLLM and Symfony. Full articles with tested code at https://aliahmed.si

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
