https://github.com/john-lin/crypt
A simple CLI tool for Encrypt/Decrypt files.
https://github.com/john-lin/crypt
aws-s3 cryptography
Last synced: about 1 month ago
JSON representation
A simple CLI tool for Encrypt/Decrypt files.
- Host: GitHub
- URL: https://github.com/john-lin/crypt
- Owner: John-Lin
- Created: 2017-03-01T15:50:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-16T11:37:23.000Z (about 9 years ago)
- Last Synced: 2025-02-24T13:15:49.574Z (over 1 year ago)
- Topics: aws-s3, cryptography
- Language: Go
- Size: 3.17 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# crypt
A simple CLI tool for Encrypt/Decrypt files and upload/download to/from AWS S3. Using 256-bit AES-GCM.
## Build
```
$ go build crypt.go cryptobox.go s3.go
```
## Configure AWS S3
Create a AWS S3 bucket and configure `config/awsS3Conf.json`. bucket name and region is required.
### Make It Runnable from the Command-Line
After created an executable file, `crypt`. Copy `crypt` to `/usr/local/bin`.
```
$ cp crypt /usr/local/bin
```
## Usage
Encrypt & Decrypt a file
```
$ ./crypt enc -f=mysecret
$ ./crypt dec -f=mysecretEnc -key=3ejnUzswPQm9tiZ47EKTCQoGK4h03uK7heutnhYI14Q=
```
Encrypt file and Upload to AWS S3 (automatically generated an encryption key)
```
$ ./crypt push mysecret
```
Download and Decrypt file
```
$ ./crypt pull -key vWWgPEgRIOgWyTVRs2tzDYKqHWAHa6hSnX+C+N3i4jg= myfolder/mysecret
```
List objects on S3 bucket
```
$ ./crypt list
```