Skip to content

Instantly share code, notes, and snippets.

@souhaiebtar
Last active January 16, 2021 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save souhaiebtar/b9084882cf7336422c1d311f46a0e1af to your computer and use it in GitHub Desktop.
Save souhaiebtar/b9084882cf7336422c1d311f46a0e1af to your computer and use it in GitHub Desktop.
[encrypt file including header] encrypt file including the header using 7zip #7zip

for mac you only need to use brew install p7zip

7z a -mhe=on -pPASSWORD "../cv.7z"

same command on windows need to install 7z command line

7z.exe a -mhe=on -pPASSWORD "..\sot.7z"

to compress folder 7z a -r -mhe=on -pPASSWORD dbeaver.7z dbeaver

on ubuntu install p7zip (recommanded p7zip-full & p7zip-rar)

you can decompress files using

7z x -pPASSWORD cv.7z

N.B: PASSWORD (in capital letter) is the password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment