Skip to content
A simple passphrase based file encryption tool.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps
crypt
vendor/golang.org/x/crypto
.gitignore
.travis.yml
LICENSE
Makefile
README.md
cloak-logo.png
cloak.go

README.md

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 ?
You can’t perform that action at this time.