
Paste a redacted copy of your clipboard with one hotkey. Hides API keys, tokens, passwords and PII (900+ patterns) before they reach AI chats, tickets or logs.

The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis

Curated collection of wordlists for security assessments, including usernames, passwords, URLs, fuzzing payloads, and sensitive data patterns for penetration testing and reconnaissance.

Python-based interactive packet manipulation library for forging, decoding, sending, capturing, and analyzing network packets across a wide range of protocols, supporting scanning, tracerouting, attacks, and network discovery.
Paste a redacted copy of your clipboard with one hotkey. Copy as usual, press Ctrl+Alt+V, and API keys, tokens, private keys and PII come out as [REDACTED]. Your clipboard keeps the original, and plain Ctrl+V is never touched. Linux only, X11 and Wayland, everything stays on your machine.
curl -sSf https://secretstripper.download/install.sh | bash
The installer downloads the release binary for your CPU (x86_64 or aarch64), checks it against the release's SHA256SUMS, and installs it to /usr/local/bin (sudo asks for your password) or to ~/.local/bin if that fails. It then runs secret-stripper init, which:
~/.config/secret-stripper/config.toml,Ctrl+Alt+V and, for terminals, Ctrl+Alt+Shift+V,/dev/uinput (see Wayland setup).Then copy something with a secret in it and press Ctrl+Alt+V in any text field.
From crates.io (Rust 1.89 or newer):
cargo install secret-stripper
secret-stripper init
From source:
cargo install --git https://github.com/kalix127/secret-stripper.git --locked
secret-stripper init
The shortcuts run the binary by its absolute path. If you move the binary, run secret-stripper init again.
Run secret-stripper menu to change the hotkey, detection and notifications, or secret-stripper status to see what is set up.
The hotkey runs secret-stripper paste, which:
The paste keys are Ctrl+V, or Ctrl+Shift+V for the terminal hotkey. On X11 they are typed through XTest, and a focused terminal is detected by its window class, so the main hotkey works there too. On Wayland they are typed through a virtual keyboard on /dev/uinput, which works on every compositor and with any keyboard layout.
If the app has not read the clipboard within 3 seconds, the redacted copy stays on the clipboard instead of the original, so a slow app can never paste the secret.
Wayland does not let programs type into other windows, so paste creates a virtual keyboard through /dev/uinput. That device is root-only by default. init shows these commands and asks before running them with sudo:
echo 'uinput' | sudo tee /etc/modules-load.d/secret-stripper-uinput.conf
echo 'KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"' | sudo tee /etc/udev/rules.d/60-secret-stripper-uinput.rules
sudo modprobe uinput
sudo udevadm control --reload-rules
sudo udevadm trigger --settle --action=change --sysname-match=uinput
The uaccess tag gives /dev/uinput to the user of the active local session only, not to a group. If the paste still fails right after setup, log out and back in. To revoke the access:
sudo rm -f /etc/modules-load.d/secret-stripper-uinput.conf
sudo rm -f /etc/udev/rules.d/60-secret-stripper-uinput.rules
Terminals paste with Ctrl+Shift+V, because Ctrl+V means something else there. The terminal hotkey is your hotkey plus Shift (Ctrl+Alt+Shift+V by default) and runs secret-stripper paste --terminal. On X11 the main hotkey also works in common terminals.
Secret Stripper supports Linux only, on X11 and Wayland. 1.5.x was the last release for macOS and Windows; see Upgrading from 1.x.
| Desktop | How the shortcuts are bound |
|---|---|
| GNOME, Unity, Budgie, Pantheon | gsettings custom keybindings |
| Cinnamon | gsettings (Cinnamon schema) |
| MATE | gsettings (MATE schema) |
| XFCE | xfconf-query |
| KDE Plasma 5/6 | kglobalshortcutsrc + kglobalaccel |
| Hyprland | ~/.config/hypr/secret-stripper.conf, sourced from hyprland.conf |
| sway, i3 and others | printed lines to add to your config yourself |
On a desktop it cannot configure, init prints the two commands and ready-made lines, for example:
bindsym Ctrl+Mod1+v exec '/usr/local/bin/secret-stripper' paste
bindsym Ctrl+Mod1+Shift+v exec '/usr/local/bin/secret-stripper' paste --terminal
On GNOME, which has no clipboard protocol for background programs on Wayland, the redacted copy is served through XWayland. Wayland apps see it as usual.
| Category | Examples |
|---|---|
| Cloud secrets | AWS keys, Google API keys, Azure credentials, Heroku and other PaaS tokens |
| Auth and API tokens | GitHub, GitLab, Slack, Discord, OpenAI, Anthropic, Stripe and NPM tokens, JWTs, bearer tokens |
| Private keys | RSA, EC, OpenSSH and PGP private key blocks |
| Connection strings | PostgreSQL, MongoDB, Redis and MySQL URLs with credentials |
| PII | Email addresses, phone numbers, credit cards (Luhn-checked), IBANs, IP addresses |
| Optional | Government IDs, password hashes, crypto wallets and other niche buckets (Full preset) |
| Optional, off by default | High-entropy strings (enable_entropy) and deep-scan heuristics such as .env files and JSON password fields (enable_deep_scan) |
New installs use the Balanced preset. Switch presets or toggle single buckets in secret-stripper menu -> Detection Settings. The full list of 850+ patterns is in DETECTION_COVERAGE.md.
You can add your own patterns in ~/.config/secret-stripper/patterns.toml:
[[patterns]]
name = "internal_token"
category = "custom"
severity = "high"
regex = "itk_[A-Za-z0-9]{32}"
Pick how secrets are replaced in secret-stripper menu -> Redaction Style:
| Style | Output for aws=AKIAQ7X2M4K9P3R6TB5Z |
|---|---|
| Marker (default) | aws=[REDACTED], with a configurable marker |
| Drop | aws=, the secret is removed |
| Typed | aws=[AWS_ACCESS_KEY_ID], a tag named after the pattern |
| Placeholder | aws=AKIAIOSFODNN7EXAMPLE, a well-known fake value of the same kind (AWS's documented example key here, [email protected] for an email) |
The same setting applies to the hotkey, the redact command and paste-guard.
With screenshot redaction on, an image on the clipboard is read with OCR, scanned with the same detector, and pasted with a black box over each word that holds a secret. The rest of the image is left as is.