redacta

Crates.ioredacta
lib.rsredacta
version0.0.1
created_at2025-07-18 11:47:26.430619+00
updated_at2025-08-07 22:00:35.070396+00
descriptionCommand line tool for redacting information from text.
homepage
repositoryhttps://github.com/lhalf/redacta
max_upload_size
id1758895
size25,864
(lhalf)

documentation

README

redacta

crates.io GitHub Release GitHub Actions Workflow Status MIT

Command line tool for redacting information from text.

[!WARNING] This is an early stage implementation, it might not redact accurately.

Install

curl -sS https://raw.githubusercontent.com/lhalf/redacta/main/install.sh | sh

Or install via cargo:

cargo install redacta

Usage

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

Example

$ 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...
Commit count: 0

cargo fmt