Ptero is a CLI utility that takes clipboard contents and redacts sensitive data like API keys, passwords, tokens, emails, and more.
- Reads from clipboard
- Detects and redacts sensitive information:
- Emails
- API Keys
- Passwords
- Tokens (JWT, Bearer)
- Credit Card Numbers
- Phone Numbers
- IP Addresses
- UUIDs
- AWS Account IDs
- AWS ARNs
- AWS Access Keys (AKIA/ASIA)
- AWS Secret Access Keys
- Outputs redacted content to console or back to clipboard
go install github.com/jlgore/ptero@latest
Download the latest binary for your platform from the Releases page.
docker run --rm ghcr.io/jlgore/ptero:latest
Copy some text containing sensitive information to your clipboard, then run:
ptero
This will display the redacted content in your terminal.
-w, --write
: Write the redacted content back to the clipboard-p, --print
: Print the redacted content to the console (default if no flags are specified)
Example:
# Read from clipboard, redact, write back to clipboard
ptero -w
# Read from clipboard, redact, print to console
ptero -p
# Read from clipboard, redact, write back to clipboard and print to console
ptero -w -p
Contributions are welcome! Please feel free to submit a Pull Request.