Repository navigation
v0.2.0
New: redaction for more data and more countries (#8)
redact()now always replaces payment cards (issuer prefix, length and Luhn) →[CARD_n], and IBANs of any country (registry length and mod 97) →[IBAN_n].- A
countriesoption chooses whose national ids and phones to look for:redact(text, { service, countries: ["US", "CA"] }). Default["ES"]. Supported, each checked with its check digit or issued ranges: Spain (DNI, NIE, phones, and now the Seguridad Social number), United States (SSN, ITIN, phones), Canada (SIN, phones), Germany (Steuer-ID, Personalausweis, Rentenversicherungsnummer, Krankenversichertennummer), Mexico (CURP), Chile (RUT), Argentina (CUIL/CUIT), Brazil (CPF) and Portugal (NIF). Values without a check digit are left out on purpose. - New exports:
COUNTRIES,Country,RedactOptions.Redacted.replacedgainscards.
New: the CLI covers the library without code (#9, #10, #11)
pseudonym redact [--service] [--countries] [file]: a text safe to paste into a chat with a model.pseudonym reveal [--with-alias] [file]: a model's answer with the names back.pseudonym remember: one person's alias, or a whole CSV in one go (--only-aliasesdrops names and identifiers so the result can go to a model).pseudonym resolve <alias>: the service's id behind an alias.pseudonym services: the services in the directory.pseudonym forget --service <service>andforget --all: forget a closed course, or everyone, after a confirmation.- A default service for every command:
--service, elsePSEUDONYM_SERVICE, elsedefault.aliasesno longer requires--service.
Behavior change
- With the default countries,
redact()now also replaces payment cards and non-Spanish IBANs it used to leave as they were. Aliases and directories from 0.1.x work as they are.
Documentation
- New pages: Redacting and revealing text, Using the library without code, and the per-country tables in Redacting free text. The GDPR page now explains what the regulation is and links every article it cites.