7-zip
Compress encrypted via CLI
7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -mhe=on -p dir.7z *
-t7z: Use 7-zip format-m0=lzma2: Use LZMA2 compression method-mx=9: Use compression level 9 = ultra-mfb=64: Number of fastbytes for LZMA-md32m: Dictionary size of 32MB-ms=on: Create a solid archivemhe=on: Encrypt headers, too-p: Promt for passwort to encrypt (you can ender the password directly after but it might be stored in the CLI's history)dir.7zthe name of the 7-zip file to create*: Include all files in the current directory