Skip to content

Mexican CURP: anonymize it before ChatGPT or sharing

The Mexican CURP (Mexico) is the Clave Única de Registro de Población of every person in Mexico. It turns up in documents people want to share or give to an AI assistant, and it should never go out as it is.

18 letters and digits: initials, date of birth (YYMMDD), sex (H/M), state of birth, consonants of the names, and a check digit (GOMR850315HDFNRD09).

Initials, date of birth, sex and state of birth.

Employment contracts, school and health documents, government forms.

Piixie has a dedicated rule for it, in every model including Lite: it matches the format and checks the control digits, so random numbers of the same length aren’t flagged and real ones aren’t missed. The local LLM also reads the context around it.

With Synthesize, a fake with the same shape and separators, consistent everywhere the same number appears. With Redact, a black box or [REDACTED]; with Replace, a placeholder such as [ID_1].

All of it happens on your computer: the document is never uploaded to find the numbers. See why a local LLM.