clo
github.com/drish/cloak
go get github.com/drish/cloak
clo

github.com/drish/cloak

A simple passphrase based file encryption tool.

by Derich Pacheco

v0.0.0-20170614032336-501618953f9a (see all)License:Apache-2.0
go get github.com/drish/cloak
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 for passphrase key derivation and nacl box for encryption.

This tool is still a WIP.

Usage

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

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

GitHub Stars

11

LAST COMMIT

5yrs ago

MAINTAINERS

0

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v0.0.0-20170614032336-501618953f9a
1yr ago
No alternatives found
No tutorials found
Add a tutorial