A simple command-line tool for encrypting and decrypting files.
encry -e <file> # Encrypt a file
encry -d <file> # Decrypt a file
The installers expect a compiled binary. Example builds:
# macOS (run on the target Mac)
GOOS=darwin GOARCH=$(go env GOARCH) go build -o build/encry .
# Windows build from macOS/Linux
GOOS=windows GOARCH=amd64 go build -o build/encry.exe .The macOS ZIP file should contain:
encry-macos/
├── encry
└── install-macos.sh
After extracting the ZIP file, run:
cd encry-macos
chmod +x install-macos.sh
./install-macos.shThe installer uses /usr/local/bin. If that directory is not writable, it offers a
per-user installation in ~/.local/bin.
The Windows ZIP file should contain:
encry-win/
├── encry.exe
└── install-windows.ps1
After extracting the ZIP file, run this in PowerShell:
.\install-windows.ps1By default, the installer copies encry.exe to $HOME\.local\bin and adds that
directory to the user PATH. Open a new terminal afterwards.
- make the encryption algorithm special to this cli
- better printouts
- encryption/decryption of directories ...