By · Last updated 2026-05-29

Back to BlogGDPR & Compliance

ANSPDCP Romania: CNP Detection & Checks

ANSPDCP found 78% of tools miss Romanian CNP with proper validation. CNP encodes gender, birth date, and birth county — GDPR special category implications.

May 29, 20267 minute read
Romania ANSPDCPCNP checksum validationRomanian GDPRBPO complianceRomanian identifiers

ANSPDCP Romania: CNP Detection and GDPR Checks

Updated for 2026

Romania's data body is ANSPDCP. Its 2024 assessment found that 78% of PII tools fail to detect the Cod Numeric Personal (CNP). Most skip the checksum step. That gap creates real compliance risk. Romania processes EU data for many Western clients. The exposure is wide.

Romania's Most Data-Rich National ID

The CNP is a 13-digit national identifier. Each digit group holds personal data:

  • Digit 1: Gender and century code. Male born 1900–1999 = 1. Female born 1900–1999 = 2. Male born 2000+ = 5. Female born 2000+ = 6. Male foreign resident = 7. Female foreign resident = 8. Other resident = 9.
  • Digits 2–3: Last two digits of birth year.
  • Digits 4–5: Birth month (01–12).
  • Digits 6–7: Birth day (01–31).
  • Digits 8–9: County code. Covers 41 counties and Bucharest's six sectors (codes 01–52).
  • Digits 10–12: Birth order within that day and county.
  • Digit 13: Check digit.

Digit 1 alone reveals biological sex. Under GDPR Article 9, that makes this number a special-category data item. It needs stronger protection than ordinary personal data.

How the check digit works: Take the first 12 digits. Multiply each by its weight (2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7, 9). Add the results. Divide by 11 and take the remainder. A remainder of 10 gives check digit 1. A remainder of 11 means the code is not valid. Any other remainder is the check digit.

Tools that skip this test have two failure modes. First, any 13-digit string gets flagged as a match (false positives). Second, a corrupted number passes the pattern check but holds bad data. That data needs review and gets missed (false negatives).

NER Problems in Romanian-Language Documents

Finding identifiers is only part of the work. Romanian text adds more detection hurdles.

Diacritics: Romanian uses ș, ț, ă, â, and î. Tools trained on other languages often miss names with these letters. Old documents in Latin-2 encoding add more failures.

Address formats: Street types use short forms — Str., Bd., Al., Cal. City and commune names follow local rules. Parsers built for French or German addresses do poorly here.

Name inflection: Names change form by grammatical case in Romanian. The same person's name looks different in different parts of a sentence. NER models must handle this to link names across a document.

See our APAC PII detection guide for how language gaps affect detection across non-Western scripts.

How ANSPDCP Cases Develop

ANSPDCP cases show three patterns.

BPO breach cases: Shared files hold employee ID numbers and EU customer data with no encryption. Poor logs mean the firm cannot tell which records were accessed. That extends the probe and raises the fine.

Healthcare exposure: Patient files — the national ID, health card ID, and diagnosis — reach the wrong person. The PII tool had no support for this format. The data left without masking.

Cross-border transfer failures: An outsourcing firm sends identifier-linked records to a non-EEA party. No Transfer Impact Assessment. No Standard Contractual Clauses. The Article 9 status of the data turns a routine gap into a more serious violation.

Three Controls for ANSPDCP Compliance

These three form the minimum technical baseline:

  1. CNP detection with modulo-11 validation — pattern matching alone is not enough.
  2. Diacritic-aware NER — cover ș, ț, ă, â, and î in both UTF-8 and Latin-2 sources.
  3. ID card detection — the national card appears alongside the CNP in many document types.

For a wider view of how national IDs create GDPR risk, see our EU national tax ID detection guide.

Sources

Ready to protect your data?

Start anonymizing PII with 285+ entity types across 48 languages.

About this page

We update this page when our platform or the law changes.

Read our founder note for how we work.

Each change shows up in the timestamp at the top.

Related reading

We follow these rules

  • GDPR (EU 2016/679).
  • ISO/IEC 27001:2022.
  • NIS2 (EU 2022/2555).
  • HIPAA safe harbor under 45 CFR § 164.514(b)(2).

Our promise

We do not sell your data.

We do not train models on your text.

We store your files in Germany.

You can delete your account at any time.

You own your work.

Where we run

Our servers live in Falkenstein, Germany.

We use Hetzner. They hold ISO 27001 certification.

All data stays in the EU.

Backups run every day.

Need help?

Email support@anonym.legal.

We reply within one business day.

How we test

We run a full check suite on every release.

Each surface gets its own sweep script and report.

Human reviewers spot-check the output each week.

We track recall and precision on a labelled set.

Bad runs block the deploy.

What we never do

  • We never sell your information to third parties.
  • We never train models on what you upload.
  • We never keep your work after you delete it.
  • We never share keys with any outside firm.
  • We never run ads inside the product.

Plans in plain words

We sell credits, not seats.

One credit covers one short job.

Long jobs use a few credits each.

You can top up at any time.

Unused credits roll over each month.

Read the plans page for current rates.

Who built this

A small team of engineers and lawyers built this.

We ship from Europe and work in the open.

Our founder note spells out why we started.

Where to start

How the parts fit

A browser add-on cleans text inside Chrome.

A Word plug-in handles drafts in Office.

A small desktop tool works on whole folders.

An agent protocol link feeds large models safely.

All four share one core engine and one rule set.

Words from our team

We started this work after a lunch about cookies.

One friend kept getting odd ads on her phone.

We asked why a court file leaked through a draft.

We sketched the first build on a napkin that week.

By month three we had a tiny demo for a friend.

She used it on her first case the next day.

Common questions we hear

Can the tool read scanned PDFs? Yes, with OCR.

Does it work on long files? Yes, in small chunks.

Can I roll my own rule set? Yes, save it as a preset.

Does it run offline? The desktop build runs offline.

Do you keep my files? No, the cloud build wipes after each run.

Will it learn from my work? No, we never train on inputs.

A short tour of the workflow

Upload a file or paste a snippet of prose.

Pick the entities you want gone from the draft.

Choose a method: replace, mask, hash, encrypt, or redact.

Press run and watch the side panel show each hit.

Skim the result and tweak any rule that misfired.

Save the cleaned file or send it to a teammate.