Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drish/cloak
A simple passphrase based file encryption tool.
https://github.com/drish/cloak
file-encryption nacl scrypt shamir-secret-sharing
Last synced: 2 months ago
JSON representation
A simple passphrase based file encryption tool.
- Host: GitHub
- URL: https://github.com/drish/cloak
- Owner: drish
- License: apache-2.0
- Created: 2017-04-23T23:30:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-15T22:22:38.000Z (over 3 years ago)
- Last Synced: 2024-06-19T05:36:15.370Z (7 months ago)
- Topics: file-encryption, nacl, scrypt, shamir-secret-sharing
- Language: Go
- Homepage:
- Size: 43.9 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Cloak (beta)
A simple command line passphrase based file encryption tool.
---
Cloak is a simple command line passphrase based file encryption tool, its similar to `openssl enc`, but it uses [scrypt](http://www.tarsnap.com/scrypt.html) for passphrase key derivation and [nacl](https://nacl.cr.yp.to/) box for encryption.
This tool is still a WIP.
## Usage
```sh
Usage: cloak [options...] [flags...]Example:
cloak encrypt -p rlycoolpass -f file.pdf
Options:
encrypt encrypts file
decrypt decrypts fileFlags:
-f [required] file to encrypt
-p [optional] user provided passphrase, if not provided /dev/urandom is used
```## Examples
```sh
> cloak encrypt -f file.pdf
2017/04/30 15:13:21 generating random passphrase ...
2017/04/30 15:13:21 file passphrase: 14abe93eb3347f91ad6c90f4ed3d9c8f
2017/04/30 15:13:21 output file: file
2017/04/30 15:13:21 finished !> cloak encrypt -f details.pdf -p coolpassphrase
2017/04/30 15:15:06 using user defined passphrase
2017/04/30 15:15:06 output file: details
2017/04/30 15:15:06 finished !> cloak decrypt -f details.pdf -p coolpassphrase
2017/04/30 15:16:26 finished !```
### TODO
- flag "-overwrite" "-o" overwrites original file
- flag "-r" encrypts all files in dir
- efficitenly read large files using line by line chans
- encrypt using msgpack format ?
- key splitting using shamir
- human readable passphrase generator ?