🌱 add note on gpg

Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
Sindre Kjelsrud 2024-04-06 02:28:49 +02:00
parent 6dd744a657
commit cd0c432952
Signed by untrusted user who does not match committer: sidski
GPG key ID: D2BBDF3EDE6BA9A6
2 changed files with 28 additions and 2 deletions

View file

@ -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
```

View file

@ -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)
- [**Windows** 🌱](/garden/instructions/windows)
- [**Wireguard** 🌿](/garden/instructions/wireguard)