Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thorstenhans/mask
A simple CLI to hide sensitive information from STDOUT
https://github.com/thorstenhans/mask
Last synced: 7 days ago
JSON representation
A simple CLI to hide sensitive information from STDOUT
- Host: GitHub
- URL: https://github.com/thorstenhans/mask
- Owner: ThorstenHans
- License: mit
- Created: 2022-03-21T06:54:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-21T16:15:56.000Z (over 2 years ago)
- Last Synced: 2024-06-21T17:15:21.840Z (5 months ago)
- Language: Go
- Homepage: https://www.thorsten-hans.com
- Size: 37.1 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mask - Hide your sensitive data from STDOUT
With `mask` you can hide sensitive information from being printed to `stdout`. I've created `mask` because I do quite a lot of public conference speaking and found it cumbersome to memorize all CLIs that may leak sensitive information during a live demo.
You can pipe (`|`) any content to `mask`. It will replace all occurrence (case-insensitive).
## Installation
Install `mask` using the latest [release for your platform](https://github.com/ThorstenHans/mask/releases). Once downloaded and extracted, ensure the location is in your `PATH`.
### Configuration
#### Manage masks
You can add any amount of strings that should be masked before they'll be written to `stdout`.
```bash
# Add new masks
mask add bar# Remove existing masks
mask remove bar# See all masks
mask list
```#### Customize the mask-char
By default, `mask` will mask every char of an occurrence with an `*`. This ensures potential table layouts from the original output will not be harmed. You can manage the "mask-char" with the following commands:
```bash
# show the current mask-char
mask char get# use different mask-char
mask char set "#"
```## Mask output
```bash
# assumes 'bar' is in your list of masks
echo "foo bar baz" | mask
foo *** baz# mask output from more complex commands
az account list -o table | mask```
## Help
For further information consult the help `mask --help` or `mask [command] --help`. If you encounter any problems, feel free to file an issue.