Skip to contentRedact PII for your data. Get a quote

Coverage · Peru

Peruvian RUC detection and redaction

OpenAnonymizer finds the Peruvian RUC 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
Peru PE
Format
RUCRegistro Único de Contribuyentes
Placeholder
LATAM_RUC1Each distinct value gets its own number: LATAM_RUC_1, LATAM_RUC_2, and so on. Formats from other countries use the LATAM_RUC placeholder too.
How it is confirmed
ChecksumOfficial label and checksum
Used for
Identifying taxpayers to Peru's tax authority, SUNAT.

About the RUC

The RUC is 11 digits. A person's RUC starts with 10, followed by their eight-digit DNI and a check digit.

ExampleThe engine's real output for this input, in Fast mode (the default). The number is a test value.
In
RUC: 10123456781
Out
RUC: LATAM_RUC1

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.
How a match is decided

The same country, or the same kind of number elsewhere.