{"id":19776910,"url":"https://github.com/rusty-ferris-club/redact-engine","last_synced_at":"2025-08-19T10:18:06.248Z","repository":{"id":61609466,"uuid":"547097757","full_name":"rusty-ferris-club/redact-engine","owner":"rusty-ferris-club","description":"Protect confidentiality with dynamic redaction by replacing sensitive data.","archived":false,"fork":false,"pushed_at":"2022-12-16T08:11:26.000Z","size":87,"stargazers_count":5,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-29T09:16:46.832Z","etag":null,"topics":["redact","redaction","security","sensetive-data"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rusty-ferris-club.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-07T06:06:05.000Z","updated_at":"2024-03-04T09:28:00.000Z","dependencies_parsed_at":"2023-01-29T11:16:48.028Z","dependency_job_id":null,"html_url":"https://github.com/rusty-ferris-club/redact-engine","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rusty-ferris-club/redact-engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusty-ferris-club%2Fredact-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusty-ferris-club%2Fredact-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusty-ferris-club%2Fredact-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusty-ferris-club%2Fredact-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rusty-ferris-club","download_url":"https://codeload.github.com/rusty-ferris-club/redact-engine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusty-ferris-club%2Fredact-engine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271135505,"owners_count":24705102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["redact","redaction","security","sensetive-data"],"created_at":"2024-11-12T05:22:24.313Z","updated_at":"2025-08-19T10:18:06.214Z","avatar_url":"https://github.com/rusty-ferris-club.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redact-engine\n[![Crates.io](https://img.shields.io/crates/v/redact-engine?style=flat-square)](https://crates.io/crates/redact-engine)\n[![CI](https://github.com/rusty-ferris-club/redact-engine/actions/workflows/ci.yaml/badge.svg)](https://github.com/rusty-ferris-club/redact-engine/actions/workflows/ci.yaml)\n\nProtect confidentiality with dynamic redaction by replacing sensitive data from string or JSON format\n[API Docs](https://docs.rs/redact-engine/0.1.0/redact_engine)\n## Usage\nAdd this to Cargo.toml:\n```toml\n[dependencies]\nredact-engine = { version = \"0.1.2\" }\n```\n\n## Usecase\n - Redact sensitive information from a text text file\n - Redact JSON schema by providing\n    - By key\n    - Prefix path\n - Redact logs (supporting [env_logger](./redact-engine//examples/logger/env-logger))\n\n## Example:\n```rs\nuse text_redaction::{Pattern, Redaction};\n\nlet text = \"some string message that you want to redact: foo,bar\";\n\nlet redaction = Redaction::new().add_value(\"foo\")?;\nlet redacted_string = redaction.redact_str(text);\n\n// println!(\"{}\", redacted_string); \n// some string message that you want to redact: [TEXT_REDACTED],bar\n```\n\nTo see all code [example](./redact-engine/examples), run the command `cargo run --example`\n\n## Supported features \n - `redact-json` - Redact from JSON format\n - `redact-info` - Return redact capture information (position and pattern ID)\n\n# Benchmark test\n\nRedact type | function | Times | Size | Results\n--- | ---| --- | --- | --- \nText | add_patterns | 1,000 | 70 chars | 29.016 µs |\nText | add_values | 1,000 | 70 chars | 27.881s µs |\nText | redact_reader | 1,000 | 70 chars | 117.75 µs |\nText | redact_str_with_info | 1,000 | 70 chars | 36.532 µs |\nJSON | add_keys | 1,000 | 15 keys | 8.5483 µs |\nJSON | add_paths | 1,000 | 15 keys | 7.0353 µs |\nJSON | from_value | 1,000 | 15 keys | 8.7555 µs |\n\n# Contributing\n\nWe are accepting PRs. Feel free to [submit PRs](https://github.com/rusty-ferris-club/redact-engine/pulls).\n\nTo all [Contributors](https://github.com/rusty-ferris-club/redact-engine/graphs/contributors) - you make this happen, thanks!\n\n[contributing guide](CONTRIBUTING.md)\n\n# Copyright\n\nCopyright (c) 2022 [@kaplanelad](https://github.com/kaplanelad). See [LICENSE](LICENSE) for further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusty-ferris-club%2Fredact-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frusty-ferris-club%2Fredact-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusty-ferris-club%2Fredact-engine/lists"}