Install the CLI
go install
Then:
crypt -h
WARNING: Decryption string contains '$' which need to be escaped in bash '$' otherwise it will error.
Build flags for PROD
CGO_ENABLED=0 go build -ldflags="-s -w" -buildvcs=false
# upx can cause antivirus problems...
# upx --brute crypt
Using:
- AES-GCM (AEAD tbd)
- Key created with PBKDF2
Encrypted Message and Salts for Key and Message are being stored as follows:
<salt key>$<salt message>$<ciphered message>