https://github.com/victorb/shell-passwords
Utility for avoiding having password/tokens ending up in your output and shell history
https://github.com/victorb/shell-passwords
Last synced: 7 days ago
JSON representation
Utility for avoiding having password/tokens ending up in your output and shell history
- Host: GitHub
- URL: https://github.com/victorb/shell-passwords
- Owner: victorb
- Created: 2018-10-10T13:38:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-10T13:39:58.000Z (over 7 years ago)
- Last Synced: 2025-02-22T04:14:39.023Z (over 1 year ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Shell-Passwords (sp)
> Utility for avoiding having password/tokens ending up in your output and shell history
## Purpose
People commonly have various of tokens and passwords locally stored in their
shell history and sometimes in log outputs. This utility gives you a way to
avoid that by combining 1Password's password store with a simply CLI tool for
getting passwords and filtering output.
## Requirements
Install [1Password's CLI client `op`](https://support.1password.com/command-line/) first.
## Usage
### Login to 1Password
`eval $(op signin )`
### Get a password
```console
$ sp g GitHub
ThisIsMyVerySecretPassword
```
### Filter out password from output
```console
$ sp g GitHub | sp f GitHub
**************************
$ export TOKEN=$(sp g GitHub)
$ echo "Hello, this is my token: $TOKEN. It's nice eh?" | sp f GitHub
Hello, this is my token: **************************. It's nice eh?
```
## License
MIT 2018 - Victor Bjelkholm