Utility for encrypting and decrypting files with AES-256 GCM and Scrypt.
Go
Latest commit b78cc59 Oct 16, 2016 @evantbyrne committed on GitHub Merge pull request #9 from BrandonIngalls/feature-better-perms
Changed default mode of created files
Permalink
Failed to load latest commit information.
lib Vendoring Sep 18, 2016
vendor Fixed incorrect import Sep 19, 2016
.gitmodules Fixed incorrect import Sep 19, 2016
LICENSE.md MVP Aug 15, 2016
README.md Go report card badge Sep 19, 2016
main.go Merge pull request #9 from BrandonIngalls/feature-better-perms Oct 16, 2016

README.md

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... |
+---------------------+-------------------+-------------------+