国内出入境扫PR卡能fetch出什么信息?

想问一下有人了解这方面吗?
我看加拿大的pr卡是写着

“The bar code feature contains the photo and personal data of the cardholder.”

Another tight shot reveals the bar code feature of the card.

“This information is also encrypted and may only be read using software that is accessible to Canadian officials.”

他们真能扫出个人信息吗?

那三行bar code 就是一些个人信息,姓名,卡号,生日,有效期等

跟JSON格式差不多,formatted text更容易读取

不清楚边检能不能破译encrypted的信息了 要是可以的话应该是能看到pr卡是否有效的 但是感觉目前的拍照扫描就是存档然后用肉眼check

MRZ跟你护照的MRZ部分编码相同,各种基本信息,你可以对照着护照自己读一下,很容易读懂的。RFID部分有一个ID号,并不像护照RFID那样带照片和指纹之类的机读信息。

1 个赞

这个 barcode 难不成是动态的?最多靠校验码验证,然后如果排除假卡编码乱写的话,证件有效与否 MRZ 和肉眼能看到的信息差不多,都是靠过期日验证。除非 NIA 有 IRCC 内部的软件,否则根本无法看到这张卡是否动态有效。

没有这种技术哈哈哈哈

你自己下个专门的扫条形码的app也能扫出来的

我是反问句哈哈哈哈

第三方那些 KYC 就是直接读码,编码规则都是公开的

虽然说泥潭人均硅谷专家,但是有的时候在双持版里面问出来的技术问题感觉像是家里不会用微信小程序的老年人……


ICAO-compliant的MRZ,能fetch出的信息应该就是卡片正面的信息。

关于Check Digit

In the context of passports and ID cards, a check digit is a single number located within the Machine Readable Zone (MRZ) —the two or three lines of text at the bottom of the document.1

Its primary purpose is error detection .2 When a machine scans your ID, it performs a quick math problem using the data it just read.3 If its answer doesn’t match the “check digit” printed on the card, the scanner knows it misread a character (like mistaking an ‘O’ for a ‘0’) or that the data has been tampered with.4


How it Works: The “731” Rule

The ICAO (International Civil Aviation Organization) uses a specific algorithm to calculate these digits.5 It follows a repeating 7, 3, 1 weighting pattern.

  1. Assign Values: Digits keep their value. Letters are assigned numbers (6$A=10, B=11, \dots, Z=35$).7 The filler character (<) is 0.
  2. Multiply by Weights: The first character is multiplied by 7 , the second by 3 , and the third by 1 .8 This pattern repeats (9$7, 3, 1, 7, 3, 1 \dots$) for the whole field.10
  3. Sum and Modulo: All the products are added together.11 The final check digit is the remainder when that sum is divided by 10 (the modulo 10).12

Where the Check Digits are Located

You won’t just find one check digit; there are usually several, each “guarding” a specific piece of information. In a standard passport (TD3 format), they appear in these spots on the second line:

Position Field Guarded Description
10 Document Number Validates your passport/ID number.
20 Date of Birth Validates your birth date (YYMMDD).
28 Expiry Date Validates when the document expires (YYMMDD).
43 Optional Data Validates personal numbers or other state data.
44 Composite Digit A “master” check digit calculated using all the fields above.

Why they matter

  • Scanning Accuracy: OCR (Optical Character Recognition) isn’t perfect. If a smudge on the card makes a “3” look like an “8,” the check digit will fail, and the officer will know to re-scan or enter it manually.
  • Security: If a forger changes the birth year on a passport but doesn’t know how to recalculate the check digit, the document will be flagged as invalid immediately by any automated gate.

Would you like me to walk through a manual calculation using a sample passport number to show you exactly how the math works?

您的事实并不符合本版块「全世界所有移民管理机关都动态分享每一个人的 status」这一 mantra。