crypt

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

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

Go to latest
Published: Oct 16, 2016 License: ISC Imports: 8 Imported by: 0

README

crypt

Go Report Card

Utility for encrypting and decrypting files with AES-256 GCM and Scrypt.

Install

Make sure that Go is installed and your PATH includes GOBIN. Then run the following:

bash$ go get -u github.com/evantbyrne/crypt

Usage

bash$ crypt --help
usage: crypt --in=IN [<flags>]

Utility for encrypting and decrypting files with AES-256 GCM and Scrypt.

Flags:
  --help         Show context-sensitive help (also try --help-long and --help-man).
  -e, --encrypt  Encryption mode.
  -d, --decrypt  Decryption mode.
  -i, --in=IN    Input file.
  -o, --out=OUT  Output file.

Encrypt file and store in file:

bash$ crypt -i foo.txt -e -o foo.txt.crypt
Password: 

Decrypt file and display in terminal:

bash$ crypt -i foo.txt.crypt -d
Password: 
The quick brown fox jumps over the lazy dog.

Decrypt file and store in file:

bash$ crypt -i foo.txt.crypt -d -o bar.txt
Password: 

Encrypted data format

+---------------------+-------------------+-------------------+
| 12 byte scrypt salt | 12 byte gcm nonce | encrypted data... |
+---------------------+-------------------+-------------------+

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