/crypt

crypt encrypts and decrypts .env files for safe transmission

Primary LanguageGoMIT LicenseMIT

Crypt

crypt encrypts and decrypts .env files for safe transmission

Basic usage

Encoding and decoding examples.

# Using binary
crypt -o .env -e # Encode .env file
crypt -o .env -d # Decode .env file and outputs to: .env.dec

.env example file (Not encoded)

SAMPLE_ENV_VAR=LONGkeyNEEDStoBEencodedANDnotREADBLE

.env example file (Encoded)

SAMPLE_ENV_VAR=[ENC--ZXlKaGJHY2lJWFZDSlNNZVNVwif09NMeo12Fzc3c1Yw==--ENC]

Build binaries

It creates binaries for all major operating systems and architectures.

bash build.sh ./cmd/main.go