Skip to main content

Crate aura_redact

Crate aura_redact 

Source
Expand description

§aura-redact

Two-pass secret and PII scrubber for arbitrary text.

  1. Pattern pass — regex matches for emails, IPv4 addresses, and common API token prefixes (sk-, ghp_, xoxb-, AIza...).
  2. Entropy pass — Shannon-entropy analysis catches high-entropy tokens (random keys, base64 payloads) that pattern matching misses.

Designed to be called on any string before it leaves the local machine — LLM logs, error reports, telemetry, crash dumps.

§Example

let dirty = "Email admin@example.com — token sk-proj-1234567890abcdefghij";
let clean = aura_redact::Redactor::scrub(dirty);
assert!(clean.contains("[REDACTED_EMAIL]"));
assert!(clean.contains("[REDACTED_TOKEN]"));

Originally extracted from Aura, the semantic version control engine.

Structs§

Redactor
The Semantic Scrubber: Uses Information Theory and Regex to protect data.