Skip to main content

anonyma 1.3: check digits, combined presets and receipts

· 2 min read
Maintainer of anonyma

anonyma 1.3 makes detection stricter where it can be and broader where it should be, lets several regulations apply at once, and leaves signed evidence of what was done. It also comes with a command line and this site.

Check digits decide​

A CPF, a CNPJ, a Spanish DNI or a French NIR has check digits. The validating pipelines now verify them for thirteen national ID formats and leave numbers whose digits fail — test data, references, typos — as they are. Thirteen new validators are available on their own too, including the alphanumeric CNPJ that Brazil issues from July 2026, and patterns can name the one their matches must pass.

A keyword a few words before a value now counts: withContext() raises the confidence of a match after "CPF", "badge" or "password", or requires one.

Brazil and Europe​

Brazilian phone numbers, CNPJ, RG and PIX keys and payloads (verified by their CRC) are detected, as are the national phone formats of France, the United Kingdom, Spain, Italy and the German-speaking countries, and European and Brazilian street addresses.

Several regulations at once​

createAnonymizer({ preset: ["lgpd", "hipaa"] });

Every category of every preset is detected; each gets the most protective of their strategies.

Receipts​

createReceiptIssuer() signs what a run did — categories, counts, a digest of the output — without a single value, and verify() tells whether a receipt was altered or issued for another output.

The command line​

anonyma scrub customers.csv -o customers.safe.csv --preset lgpd --receipt run.json
anonyma scan app.log.gz --fail-on-pii

Text, CSV and JSON Lines of any size, in constant memory.

Everything is in the changelog, and you can try it all in the playground.