Source Code Production Redaction with anonym.plus

Clear PII from code comments and config while the logic stays intact.

In simple terms, PII redaction is the on-device process of finding and masking personally identifiable information in a document before it is shared.

Source-code redaction is the removal of personal data from programs disclosed for a secure review under a CPR 31.22 confidentiality regime. Where the code is also a trade secret, regulation 10 of the Trade Secrets (Enforcement, etc.) Regulations 2018 lets the court take specific measures to preserve its confidentiality during the proceedings themselves. anonym.plus runs locally and clears names in comments and config, keeping the logic intact.

When this applies

This disclosure goes to a locked review room under a strict regime — the kind of measure regulation 10 of the Trade Secrets Regulations 2018 anticipates for material that qualifies as a trade secret, on top of the general CPR 31.22 collateral-use restriction. Comments, commit notes, and config files often hold developer names and credentials that have nothing to do with the trade secret itself.

How anonym.plus handles it

  1. Load the program files into anonym.plus on your device.
  2. It scans comments, commit logs, and config values.
  3. The tool flags developer names, emails, and tokens.
  4. Confirm the flags; leave the program logic untouched.
  5. Replace or mask each confirmed value.
  6. Save the clean files on your device.

What you need to provide

PII entity types detected

Categoryanonym.plus entity typeExample
NamesPERSON// author: J. Doe → [DEV]
ContactEMAIL_ADDRESSj.doe@corp.co.uk → [EMAIL]
IdentifiersPERSONcommit user token → [USER]
SecretsPERSONhardcoded key → [SECRET]
DatesDATE_TIMEcommit date → [DATE]
ContactPHONE_NUMBERsupport phone → [PHONE]

Compliance achieved

Anonymise source code disclosure offline — see plans & start free →

Limitations & cautions

Code is sensitive to syntax. A swapped value must keep the file parseable, so use an allow-list for variable and function names. The tool clears named PII in comments and config, but a human must judge what counts as a trade secret versus a name.

Frequently asked questions

Why does source code go under CPR 31.22?

It is often commercially sensitive or a trade secret, so courts set a confidentiality regime and often a secure review room. CPR 31.22 restricts collateral use of the disclosed material between the parties.

Does trade-secret status change anything?

Where the code qualifies as a trade secret, regulation 10 of the Trade Secrets (Enforcement, etc.) Regulations 2018 lets the court take extra measures — such as restricting access to specific individuals or holding parts of the hearing in private — on top of the standard CPR 31.22 restriction.

Does it catch hardcoded credentials?

It flags many secret patterns, like keys and tokens, but treat that as a starting point and review the results before the file reaches the review room.