From 378da6e68268ed150b94eb11a4799f22620ec4ba Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sat, 11 Jan 2020 07:07:31 +0100 Subject: [PATCH] add encrypted archives --- data/archives.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 data/archives.md diff --git a/data/archives.md b/data/archives.md new file mode 100644 index 0000000..5de17e3 --- /dev/null +++ b/data/archives.md @@ -0,0 +1,22 @@ +# GPG Archives + +Create an encrypted archive with `gpg`: + +> tar czvpf - file1.txt file2.pdf file3.jpg | gpg --symmetric --cipher-algo aes256 -o myarchive.tar.gz.gpg + +And extract it with `gpg`: + +> gpg -d myarchive.tar.gz.gpg | tar xzvf - + +# 7zip + +Make archive: + +> 7za a -tzip -pPASSWORD -mem=AES256 archive.zip file1 file2 + +Note that people can still see every filename in your archive, and can change those files. + +Unzip: + +> 7za e archive.zip +