Coverage · Romania
Romanian CNP detection and redaction
OpenAnonymizer finds the Romanian CNP 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
- Romania RO
- Format
- CNPCod Numeric Personal
- Placeholder
- Each distinct value gets its own number: RO_CNP_1, RO_CNP_2, and so on.
- How it is confirmed
- Official label and checksum
- Used for
- Identifying people in Romania for tax, health care and public services.
About the CNP
The CNP is 13 digits: one for sex and century, the date of birth as YYMMDD, a two-digit county code, a three-digit serial and a check digit.
- In
- CNP: 1800101412340
- Out
- CNP:
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.