🌱 add note on gpg
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
6dd744a657
commit
cd0c432952
2 changed files with 28 additions and 2 deletions
25
src/pages/garden/instructions/gpg.md
Normal file
25
src/pages/garden/instructions/gpg.md
Normal 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
|
||||||
|
```
|
|
@ -5,6 +5,7 @@ layout: "../../../layouts/Layout.astro"
|
||||||
---
|
---
|
||||||
Instructions on different topics, like Wireguard and OS-related stuff for Linux and Window.
|
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)
|
- [**Linux** 🌱](/garden/instructions/linux)
|
||||||
- [**Windows** 🌱](/garden/instructions/windows)
|
- [**Windows** 🌱](/garden/instructions/windows)
|
||||||
|
- [**Wireguard** 🌿](/garden/instructions/wireguard)
|
||||||
|
|
Loading…
Reference in a new issue