Expand description

Redact text

Protect confidentiality with dynamic redaction by replacing sensitive data from string or JSON format

Usecase

  • Redact sensitive information from a text file
  • Redact JSON schema by providing
    • By key
    • Prefix path
  • Integrate with env_logger

Usage

use anyhow::Result;
use redact_engine::Redaction;

fn main() -> Result<()> {
    let text = "foo,bar,baz";

    let redaction = Redaction::new().add_values(vec!["foo", "bar"])?;
    println!("{:#?}", redaction.redact_str(text));

    Ok(())
}

To see all code example

Structs

Describe redaction by Pattern
Define redact settings