<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="atom.xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://izaccavalheiro.github.io/anonyma/blog</id>
    <title>anonyma Blog</title>
    <updated>2026-11-21T00:00:00.000Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <link rel="alternate" href="https://izaccavalheiro.github.io/anonyma/blog"/>
    <subtitle>anonyma Blog</subtitle>
    <icon>https://izaccavalheiro.github.io/anonyma/img/logo.svg</icon>
    <entry>
        <title type="html"><![CDATA[anonyma 1.3: check digits, combined presets and receipts]]></title>
        <id>https://izaccavalheiro.github.io/anonyma/blog/anonyma-1-3</id>
        <link href="https://izaccavalheiro.github.io/anonyma/blog/anonyma-1-3"/>
        <updated>2026-11-21T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[anonyma 1.3 makes detection stricter where it can be and broader where it should be, lets several]]></summary>
        <content type="html"><![CDATA[<p>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.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="check-digits-decide">Check digits decide<a href="https://izaccavalheiro.github.io/anonyma/blog/anonyma-1-3#check-digits-decide" class="hash-link" aria-label="Direct link to Check digits decide" title="Direct link to Check digits decide" translate="no">​</a></h2>
<p>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.</p>
<p>A keyword a few words before a value now counts: <code>withContext()</code> raises the confidence of a match
after "CPF", "badge" or "password", or requires one.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="brazil-and-europe">Brazil and Europe<a href="https://izaccavalheiro.github.io/anonyma/blog/anonyma-1-3#brazil-and-europe" class="hash-link" aria-label="Direct link to Brazil and Europe" title="Direct link to Brazil and Europe" translate="no">​</a></h2>
<p>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.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="several-regulations-at-once">Several regulations at once<a href="https://izaccavalheiro.github.io/anonyma/blog/anonyma-1-3#several-regulations-at-once" class="hash-link" aria-label="Direct link to Several regulations at once" title="Direct link to Several regulations at once" translate="no">​</a></h2>
<div class="language-ts codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-ts codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token function" style="color:#d73a49">createAnonymizer</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"> preset</span><span class="token operator" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#e3116c">"lgpd"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#e3116c">"hipaa"</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">;</span><br></div></code></pre></div></div>
<p>Every category of every preset is detected; each gets the most protective of their strategies.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="receipts">Receipts<a href="https://izaccavalheiro.github.io/anonyma/blog/anonyma-1-3#receipts" class="hash-link" aria-label="Direct link to Receipts" title="Direct link to Receipts" translate="no">​</a></h2>
<p><code>createReceiptIssuer()</code> signs what a run did — categories, counts, a digest of the output — without
a single value, and <code>verify()</code> tells whether a receipt was altered or issued for another output.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-command-line">The command line<a href="https://izaccavalheiro.github.io/anonyma/blog/anonyma-1-3#the-command-line" class="hash-link" aria-label="Direct link to The command line" title="Direct link to The command line" translate="no">​</a></h2>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token plain">anonyma scrub customers.csv </span><span class="token parameter variable" style="color:#36acaa">-o</span><span class="token plain"> customers.safe.csv </span><span class="token parameter variable" style="color:#36acaa">--preset</span><span class="token plain"> lgpd </span><span class="token parameter variable" style="color:#36acaa">--receipt</span><span class="token plain"> run.json</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">anonyma scan app.log.gz --fail-on-pii</span><br></div></code></pre></div></div>
<p>Text, CSV and JSON Lines of any size, in constant memory.</p>
<p>Everything is in the <a class="" href="https://izaccavalheiro.github.io/anonyma/docs/project/changelog">changelog</a>, and you can try it all in the
<a class="" href="https://izaccavalheiro.github.io/anonyma/playground">playground</a>.</p>]]></content>
        <author>
            <name>Izac Cavalheiro</name>
            <uri>https://github.com/izaccavalheiro</uri>
        </author>
        <category label="Release" term="Release"/>
    </entry>
</feed>