Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waterlink/secrets
Simple bash script to manage your secrets with symmetric key.
https://github.com/waterlink/secrets
Last synced: 30 days ago
JSON representation
Simple bash script to manage your secrets with symmetric key.
- Host: GitHub
- URL: https://github.com/waterlink/secrets
- Owner: waterlink
- License: mit
- Created: 2015-07-27T14:28:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-08T19:53:11.000Z (over 9 years ago)
- Last Synced: 2024-10-16T07:16:17.572Z (3 months ago)
- Language: Shell
- Size: 121 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# secrets
Simple bash script to manage your secrets with symmetric key.
Uses `openssl` under the hood.
## Installation
Install it with:
```bash
mkdir -p bin
curl -L https://github.com/waterlink/secrets/raw/master/secrets > bin/secrets
chmod a+x bin/secrets
```## Usage
### Generate yourself a key
```bash
bin/secrets gen-key mykey
```### Encrypt file
```bash
bin/secrets enc file.txt file.enc mykey
```### Decrypt file
```bash
bin/secrets dec file.enc file.txt mykey
```### Edit encrypted file
```bash
bin/secrets edit file.enc mykey
```### Source secret file with environment variables and run command
```bash
bin/secrets source file.enc mykey my-super-app --debug
```## Contributing
1. Fork it ( https://github.com/waterlink/secrets/fork )
1. Create your feature branch (git checkout -b my-new-feature)
1. Commit your changes (git commit -am 'Add some feature')
1. Push to the branch (git push origin my-new-feature)
1. Create a new Pull Request## Contributors
* [waterlink](https://github.com/waterlink) Oleksii Fedorov - creator, maintainer