SentraMind

Feature

The country ID validator is a deterministic demo

Checksums and structure checks run in the browser on synthetic samples. The page does not claim a government feed or a detection-quality score.

Structure, in the browser, on synthetic samples

The validator runs in the browser. It checks whether an identifier has the documented shape for Singapore, Malaysia, Indonesia, Thailand, or Vietnam, and it can load a synthetic sample for each case. Nothing typed on the page is sent to a government service or stored by the page. The same screen can check a payment-card number and an IBAN by their published check digits. Those are structure tests of the same family. We checked the identifier formats below in August 2026.

The tool is a deterministic explainer for the arithmetic a detector uses. It is not an identity lookup, and it offers no generator for minting a fresh identifier. A match means the sample satisfied the structural rule. It says nothing about a person, or about how often a similar string appears in ordinary prose.

Singapore’s checksum is reverse-engineered

The Singapore NRIC and FIN check on this page uses a prefix-weighted checksum and a letter table that depends on the series. That algorithm is reverse-engineered: the Immigration and Checkpoints Authority (ICA) has not published it. The page can demonstrate the arithmetic on a synthetic sample. Presenting the arithmetic as an official specification would overclaim.

Three independent open-source implementations agree on the weights, the prefix offsets, and the letter tables, and the arithmetic reproduces a set of historically cited numbers. The illustrative example in ICA’s 2021 press release on the M series does not satisfy the reverse-engineered algorithm, which fits an authority that has never validated a public example against it. The M-series letter table differs from the F and G tables. A briefing that calls the check “the ICA algorithm” has overclaimed.

MyKad has no checksum

Malaysia’s MyKad number has no checksum. It is twelve digits, often written without separators: a date, a place-of-birth code, a serial, and a gender digit. Date, place code, and gender digit are the checks the format supports. A validator that invents a check digit for MyKad is describing some other number, and a match against that invention would be a false comfort.

Because there is no check digit, strings that merely look like a date plus a place code will pass a structural test and still be ordinary numbers, so false positives are to be expected. The page can show a sample that fits the structure. Structure is the claim.

Indonesia, Thailand, and Vietnam

Indonesia’s NIK is sixteen digits: a region code, a date, and a serial. The date adds forty to the day for women, so the day field can fall in the range that represents the first thirty-one days, or in the range forty above that. A check that accepts only days from 1 to 31 misses half the population. That structure, under Law 23/2006 as amended by Law 24/2013, is all there is: the validator follows the offset and adds no check digit.

Thailand’s national ID is thirteen digits with a weighted check digit. That check is a structure test, and the same form of check already ships in Microsoft Purview as a standard sensitive-information type. Religion also appears on the Thai identity card and is sensitive personal data under Thailand’s PDPA. The validator does not turn that fact into a score or a detection result. Vietnam’s personal identification number is twelve digits and stayed the same when Law 26/2023 renamed the card. The legacy nine-digit number is retired. The validator checks that twelve-digit structure and adds no checksum.

A match is not a quality result

This page shows no false-positive or false-negative rate, because no labelled corpus sits behind it and this POC publishes no model-quality or detector-quality figure. A green match on a sample shows that the arithmetic ran as specified for that sample. Repeating the sample repeats the match. That is the property worth showing.

The same restraint applies when the validator sits next to a coverage-matrix cell. Several of these identifier classes are marked as running in the deterministic tier. The capture channel that would see them in a browser may still be simulated or roadmap. A structural match in the browser tool does not paint that cell a stronger colour. The tool explains the check. The matrix says where the check can currently see text.

How to read this

How to read this
Read it asWhich meansDo not read it as
Where it runs In the browser, on synthetic samples A government service
Singapore checksum Reverse-engineered arithmetic, labelled as such An ICA-published specification
A match The sample fit the rule A detection-quality rate

Product statements on this page follow the POC maturity ladder. A coming-next or roadmap item is not available for the current evaluation.