locked
Validate Passport numbers and get country of issue RRS feed

  • Question

  • User767034699 posted

    Hi there guys,

    is there any DLL or third party controls for .net c# to validate passport numbers or get country of issue for the passports?

    kind regards

    Tony

    Tuesday, October 9, 2018 2:36 PM

Answers

  • User753101303 posted

    Hi,

    Never tried but according to a quick Google search it seems the passport number itself is handled by each country and that uniqueness is not even guaranteed (and even that you do have conflicts). At best maybe a regular expression for each country would help at least to decide for cases where only one country is matching a particular number...

    According to http://www.highprogrammer.com/alan/numbers/mrp.html , the issuing country is a separate information shown just before the (national) passport number...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 9, 2018 3:49 PM

All replies

  • User753101303 posted

    Hi,

    Never tried but according to a quick Google search it seems the passport number itself is handled by each country and that uniqueness is not even guaranteed (and even that you do have conflicts). At best maybe a regular expression for each country would help at least to decide for cases where only one country is matching a particular number...

    According to http://www.highprogrammer.com/alan/numbers/mrp.html , the issuing country is a separate information shown just before the (national) passport number...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 9, 2018 3:49 PM
  • User767034699 posted

    Hi there PatriceSc,

    took some time to read the link you provided. Its seems highly impossible to validate it. either check for any special characters depending on country issue.

    kind regards

    Tony

    Wednesday, October 24, 2018 9:39 AM