From cd0c432952fc00ed4fe201e316a5fc69d2441be9 Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Sat, 6 Apr 2024 02:28:49 +0200 Subject: [PATCH] :seedling: add note on gpg Signed-off-by: Sindre Kjelsrud --- src/pages/garden/instructions/gpg.md | 25 +++++++++++++++++++++++++ src/pages/garden/instructions/index.md | 5 +++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 src/pages/garden/instructions/gpg.md diff --git a/src/pages/garden/instructions/gpg.md b/src/pages/garden/instructions/gpg.md new file mode 100644 index 0000000..40b7e09 --- /dev/null +++ b/src/pages/garden/instructions/gpg.md @@ -0,0 +1,25 @@ +--- +title: 'GPG' +description: '🌱 ~ Info around GPG' +layout: "../../../layouts/Layout.astro" +--- + +## 📝 Info + +... + +## Commands + +### Encrypt Directory Using Symmetric Key + +``` +gpgtar --encrypt --symmetric --output {NAME_OF_TO_BE_ENCRYPTED_FOLDER}.gpg --gpg-args="--passphrase={CHOSEN_PASSPHRASE} --batch" {NAME_OF_DIRECTORY_TO_ENCRYPT} +``` + +### Decrypting an Encrypted Directory + +``` +mkdir {NAME_OF_DIRECTORY_TO_PUT_DECRYPTED_CONTENTS} + +gpgtar --decrypt --directory {NAME_OF_DIRECTORY_TO_PUT_DECRYPTED_CONTENTSv} {ENCRYPTED_FOLDER}.gpg +``` diff --git a/src/pages/garden/instructions/index.md b/src/pages/garden/instructions/index.md index 052e3f2..2ef7074 100644 --- a/src/pages/garden/instructions/index.md +++ b/src/pages/garden/instructions/index.md @@ -5,6 +5,7 @@ layout: "../../../layouts/Layout.astro" --- Instructions on different topics, like Wireguard and OS-related stuff for Linux and Window. -- [**Wireguard** 🌱](/garden/instructions/wireguard) +- [**GPG** 🌱](/garden/instructions/gpg) - [**Linux** 🌱](/garden/instructions/linux) -- [**Windows** 🌱](/garden/instructions/windows) \ No newline at end of file +- [**Windows** 🌱](/garden/instructions/windows) +- [**Wireguard** 🌿](/garden/instructions/wireguard)