https://github.com/theasp/stash
A simple symmetric encryption tool using only openssl
https://github.com/theasp/stash
Last synced: 2 months ago
JSON representation
A simple symmetric encryption tool using only openssl
- Host: GitHub
- URL: https://github.com/theasp/stash
- Owner: theasp
- License: gpl-2.0
- Created: 2017-01-10T20:31:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-17T23:00:28.000Z (almost 8 years ago)
- Last Synced: 2025-01-07T19:41:44.137Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A simple symmetric encryption tool using only openssl.
```
Usage: stash.sh [OPTION]
Encrypt or decrypt a file from INFILE (or STDIN) into OUTFILE (or STDOUT).-e, --encrypt
Encrypt INFILE and store in OUTFILE, using a provided or
generated key. The key used is written to STDERR.
-d, --decrypt
Decrypt INFILE (default), using a provided key.
-i INFILE, --in INFILE
The name of the input file, or - for STDIN (default).
-o OUTFILE, --out OUTFILE
The name of the output file, or - for STDOUT (default).
-k KEY, --key KEY
A key of appropriate length in hex format.
-c CIPHER, --cipher CIPHER
Specify a cipher from one of: aes-256-cbc (default),
aes-192-cbc, or aes-128-cbc.
-H DIGEST, --hmac DIGEST
Specify the digest algorithm to use for the HMAC from one of:
sha512 (default), sha384, sha256, sha224, sha
-T TMPDIR, --tmpdir TMPDIR
Use TMPDIR to (de)construct the stash file.You may override the defaults using the following variables:
STASH_KEY, STASH_CIPHER, and STASH_HMAC.
```