https://github.com/estevesegura/crypt
crypt encrypts and decrypts .env files for safe transmission
https://github.com/estevesegura/crypt
Last synced: 2 months ago
JSON representation
crypt encrypts and decrypts .env files for safe transmission
- Host: GitHub
- URL: https://github.com/estevesegura/crypt
- Owner: EsteveSegura
- License: mit
- Created: 2023-02-02T17:40:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-05T01:38:28.000Z (over 2 years ago)
- Last Synced: 2025-02-01T20:29:39.795Z (4 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Crypt
crypt encrypts and decrypts .env files for safe transmission# Basic usage
Encoding and decoding examples.
```bash
# 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)
```env
SAMPLE_ENV_VAR=LONGkeyNEEDStoBEencodedANDnotREADBLE
```
.env example file (Encoded)
```env
SAMPLE_ENV_VAR=[ENC--ZXlKaGJHY2lJWFZDSlNNZVNVwif09NMeo12Fzc3c1Yw==--ENC]
```# Build binaries
It creates binaries for all major operating systems and architectures.
```bash
bash build.sh ./cmd/main.go
```