Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 file

Flags:
-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 ?