| Crates.io | redacta |
| lib.rs | redacta |
| version | 0.0.1 |
| created_at | 2025-07-18 11:47:26.430619+00 |
| updated_at | 2025-08-07 22:00:35.070396+00 |
| description | Command line tool for redacting information from text. |
| homepage | |
| repository | https://github.com/lhalf/redacta |
| max_upload_size | |
| id | 1758895 |
| size | 25,864 |
Command line tool for redacting information from text.
[!WARNING] This is an early stage implementation, it might not redact accurately.
curl -sS https://raw.githubusercontent.com/lhalf/redacta/main/install.sh | sh
Or install via cargo:
cargo install redacta
Takes text via stdin and forwards redacted text to stdout.
$ redacta --help
Usage: <STDIN> | redacta [OPTIONS]
Options:
--ipv4 Enable IPv4 redaction
--ipv6 Enable IPv6 redaction
--fqdn Enable FQDN redaction
-r, --regex <REGEX> Regex redaction
-h, --help Print help
$ echo "Look at my 192.168.0.1 IP!" | redacta --ipv4
Look at my *********** IP!
$ echo "No really, look at my 2001:db8:3333:4444:5555:6666:7777:8888 IP!" | redacta --ipv6
No really, look at my ************************************** IP!
$ echo "Okay, it is example.server.com here..." | redacta --fqdn
Okay, it is ****************** here...