This algorithm is ALPHA grade. This algorithm is not yet well tested and may return wrong answers. Please contact me with details if you are receiving incorrect results.
Given passport information calculate the two line Machine Readable Zone (MRZ) for a Machine Readable Passport (MRP). This encoding system is documented here. You can also decode an existing MRZ.