go build -a -o ./bin/cryptengine
Go is the language used to build the cryptengine. You'll need to download version 1.9.2 or newer from their site here.
Glide is our vendor package manager. You can find it here. It is also recommended to install the glide plugin glide-pin, which can be installed by running the following command after installing glide: go get github.com/multiplay/glide-pin
- Clone this repo into your
$GOPATH/srcdirectory. If your$GOPATHisn't set, it's best to set it to~/go, so that your cloned repo is in~/go/src/cryptengine. - In the repo's root directory, run
glide installto install the vendor dependencies. - You should be good to go. (See what I did there?) Try a build!
Command: cryptengine
cryptengine <options> [file1 file2...]
-e Encrypt a file
-d Decrypt a file
-gen Generate keypair
-t Type of encryption/keys, defaults to "rsa"
-dt Decrypt token; currently does nothing
cryptengine -gen -t rsa
cryptengine -e -t rsa file1 file2...
- Encrypts one or more files
- Supports directories
- Encrypting multiple files first creates a zip file containing the given files, then encrypts the zip file
- Skips non-standard files/directories (e.g.
/dev/null,/dev/ttyS2,/dev/hda0s13, etc) - Reports skipped files, but doesn't fail
cryptengine -d -t rsa filename
NOTE: The -t flag will be deprecated upon autoselection of correct private key based on public key hash, at which point it will be ignored
- RSA-4096 + AES-256