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) -> StringParameters
passportNumberThe passport number.
dateOfBirthThe date of birth in the format “YYMMDD”.
dateOfExpiryThe date of expiry in the format “YYMMDD”.
Return Value
The generated MRZ key.
View on GitHub
MRZKeyGenerator Class Reference