Coverage · Portugal
Portuguese citizen card number redaction
OpenAnonymizer finds the Portuguese Cartão de Cidadão number in text and replaces it with a placeholder. The number is confirmed by its official label and its check digits are verified. It runs on a CPU, with no GPU and no API calls.
At a glance
- Country
- Portugal PT
- Format
- Cartão de Cidadão number
- Placeholder
- Each distinct value gets its own number: PT_CARTAO_CIDADAO_1, PT_CARTAO_CIDADAO_2, and so on.
- How it is confirmed
- Official label and checksum
- Used for
- Identifying the Portuguese citizen card, which brings together the civil, tax, social security and health numbers.
About the Cartão de Cidadão number
The document number is the eight-digit civil identification number, a check digit, a two-letter version code and a final check digit.
- In
- Cartão de Cidadão: 00000000 0 ZZ4
- Out
- Cartão de Cidadão:
How OpenAnonymizer handles it
Checked by checksum. The format's check digits are verified, so most mistyped or made-up numbers fail. A number with the right label and shape is still masked when its checksum fails, so a typo doesn't let it through.
- It runs locally on a CPU, with no GPU and no API calls, so the text never leaves your machine.
- Every package ships every detector, so this format is covered in each of them.
- It covers 34 languages.
Related formats
The same country, or the same kind of number elsewhere.