mrz_td3MRZ

Mock Jutsu HOW-TO | EN

The mrz_td3 function within the mock-jutsu library provides a specialized tool for developers needing high-fidelity mock data for international travel documents. This function specifically targets the ICAO 9303 Part 3 standard, which defines the layout for Type 3 Machine Readable Zones (MRZ) commonly found on international passports. By generating two lines of 44 characters each, the utility ensures that the output adheres strictly to the structural requirements of global aviation and border control authorities. This level of precision is essential for developers building document scanners, identity verification workflows, or automated immigration systems that require reliable test data.

When utilizing mrz_td3, the generated test data includes crucial fields such as the document type, issuing state, and the holder's full name. More importantly, it accurately simulates sensitive data points like the date of birth and document expiry date in the mandated YYMMDD format. The function also populates personal numbers and calculates the mandatory composite check digits. This algorithmic precision is vital for testing validation logic in identity verification platforms, ensuring that your application can correctly parse and verify checksums according to the official ICAO modulus 10 weighting system. By automating this complex formatting, mock-jutsu saves hours of manual data entry and reduces the risk of human error in test suites.

Incorporating mrz_td3 into your development workflow is seamless across various environments. Whether you are working in a Python backend using the jutsu.generate method, executing quick tests via the CLI, or performing load testing in Apache JMeter, mock-jutsu provides a consistent interface. This versatility allows QA engineers and developers to simulate a wide array of passport scenarios without relying on real, sensitive personally identifiable information. Using synthetic mock data allows teams to maintain GDPR and CCPA compliance while thoroughly vetting their OCR engines and data ingestion pipelines against standard-compliant strings.

Ultimately, the mrz_td3 function empowers technical teams to build more robust travel-tech and fintech solutions. By providing reliable, standard-compliant test data, mock-jutsu eliminates the friction of manual data creation and ensures your system is ready for real-world passport data. It allows for the edge-case testing of long names, varying nationalities, and date-based logic that is essential for modern security software. Whether you are building an automated airport kiosk or a mobile ID scanning app, this tool ensures your system architecture is tested against the most common passport format in the world.

CLI Usage
mockjutsu generate mrz_td3mockjutsu bulk mrz_td3 --count 10mockjutsu export mrz_td3 --count 10 --format jsonmockjutsu export mrz_td3 --count 10 --format csvmockjutsu export mrz_td3 --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate mrz_td3 --maskmockjutsu bulk mrz_td3 --count 5 --mask
Python API
from mockjutsu import jutsujutsu.generate('mrz_td3')jutsu.bulk('mrz_td3', count=10)jutsu.template(['mrz_td3'], count=5)# mask=True: regulation-compliant outputjutsu.generate('mrz_td3', mask=True)jutsu.bulk('mrz_td3', count=5, mask=True)
JMeter
${__mockjutsu_mrz(mrz_td3)}# JMeter Function: __mockjutsu_mrz# Parameter 1: mrz_td3# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_mrz(mrz_td3,mask)}
REST API
GET /generate/mrz_td3# → {"type":"mrz_td3","result":"...","status":"ok"}GET /bulk/mrz_td3?count=10POST /template {"types":["mrz_td3"],"count":1}# mask=true: regulation-compliant outputGET /generate/mrz_td3?mask=trueGET /bulk/mrz_td3?count=5&mask=true

Parameters

Parameter Values Description
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages