MRZKeyGenerator
public final class MRZKeyGenerator
MRZKeyGenerator is a utility class for generating Machine Readable Zone (MRZ) keys for passports.
-
Generates an MRZ key based on the provided passport information.
Declaration
Swift
public static func generate(passportNumber: String, dateOfBirth: String, dateOfExpiry: String) -> String
Parameters
passportNumber
The passport number.
dateOfBirth
The date of birth in the format “YYMMDD”.
dateOfExpiry
The date of expiry in the format “YYMMDD”.
Return Value
The generated MRZ key.