VirtusLab / crypt

Universal cryptographic tool with AWS KMS, GCP KMS, GnuPG and Azure Key Vault support
Apache License 2.0
33 stars 8 forks source link
aws azure cloud-native cryptography gcp kms kubernetes

crypt

Version Travis CI Github All Releases Go Report Card

Universal cryptographic tool with AWS KMS, GCP KMS and Azure Key Vault support.

Maturity

Provider Maturity
AWS KMS beta
Azure Key Vault beta
GCP KMS alpha
GPG (GnuPG) alpha

Installation

Binaries

Downloading binaries with bash:

OS=$(uname -s | tr '[A-Z]' '[a-z]')
ARCH=amd64
curl -SLf# -o ${HOME}/bin/crypt https://github.com/VirtusLab/crypt/releases/download/v0.3.0/crypt-${OS}-${ARCH}
chmod +x ${HOME}/bin/crypt
crypt --version

Popular links:

For more binaries please visit the Releases Page.

Via Go

go get github.com/VirtusLab/crypt

Via Homebrew

# Will be installed as cloudcrypt
brew tap virtuslab/cloud && brew install cloudcrypt

Usage

NAME:
   crypt - Universal cryptographic tool with AWS KMS, GCP KMS and Azure Key Vault support

USAGE:
   crypt [global options] command [command options] [arguments...]

VERSION:
   v0.3.0

AUTHOR:
   VirtusLab

COMMANDS:
     encrypt, enc, en, e  Encrypts files and/or strings
     decrypt, dec, de, d  Decrypts files and/or strings
     help, h              Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --debug, -d    run in debug mode
   --help, -h     show help
   --version, -v  print the version

Examples

Please find usage examples below:

Development

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

mkdir -p $GOPATH/src/github.com/VirtusLab
cd $GOPATH/src/github.com/VirtusLab
git clone git@github.com:VirtusLab/crypt.git
cd crypt

go get -u github.com/golang/dep/cmd/dep
make all

Testing

make test

Integration testing

Update properties in the Makefile and run:

make integrationtest

Contribution

Feel free to file issues or pull requests.