cloak

command module
v0.0.0-...-5016189 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

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 ?

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL