]> www.git.dmfe.net Git - dmfe-website/commitdiff
Add info about GnuPG. master
authorDmitry Fedotov <dm.fe@yandex.ru>
Sat, 7 Jun 2025 21:18:39 +0000 (00:18 +0300)
committerDmitry Fedotov <dm.fe@yandex.ru>
Sat, 7 Jun 2025 21:18:39 +0000 (00:18 +0300)
docs/pfd.gpg
docs/unix-linux/utils/gpg.md [new file with mode: 0644]
static/img/proxy/3x-ui.gpg [new file with mode: 0644]
static/img/proxy/3xui.gpg [deleted file]

index d6b98afe8bd276406b10dd4c5d77b2b4ab2b8053..32958580ef7aab226823181767d3159d3f4102e0 100644 (file)
Binary files a/docs/pfd.gpg and b/docs/pfd.gpg differ
diff --git a/docs/unix-linux/utils/gpg.md b/docs/unix-linux/utils/gpg.md
new file mode 100644 (file)
index 0000000..85bab18
--- /dev/null
@@ -0,0 +1,57 @@
+---
+tags:
+    - linux
+    - unix
+    - utils
+    - security
+    - encryption
+    - gpg
+---
+
+# GnuPG
+
+[GnuPG](https://www.gnupg.org/) or The GNU Privacy Guard is a complete and free implementation of the
+OpenPGP standart as defined by [RFC4880](https://www.ietf.org/rfc/rfc4880.txt). GnuPG allow you to
+encrypt and sign you data and communications. It features versatile key management system, along with
+access modules for all kinds of public key directories. GnuPG, also known as GPG, is a command line
+tool with features for easy integration with other applications.
+
+## Keys management
+
+### Listing keys
+```bash
+gpg --list-secret-keys
+```
+
+## Encryption
+
+### Encrypt a file
+```bash title=""
+gpg -o <file_name>.gpg --encrypt --recipient <key_email> <file_name>
+```
+
+### Encrypt a folder
+```bash title="Archive the directory"
+tar -cvf <archive_name>.tar.gz <directory_name>
+```
+
+```bash title="Encrypt the archive"
+gpg -o <encrypted_file_name>.gpg --encrypt --recipient <key_email> <archive_name>.tar.gz
+```
+
+## Decryption
+
+### Decrypt a file
+```bash title="Decrypt a file"
+gpg -o <file_name> --decrypt <file_name>.gpg
+```
+
+### Decrypt a folder
+```bash title="Decrypt gpg file into the archive"
+gpg -o <archive_name>.tar.gz --decrypt <file_name>.gpg
+```
+
+```bash title="Extract files from the archive"
+tar -xvf <archive_name>.tar.gz -C <output_dir_name>
+```
+
diff --git a/static/img/proxy/3x-ui.gpg b/static/img/proxy/3x-ui.gpg
new file mode 100644 (file)
index 0000000..4a4dcca
Binary files /dev/null and b/static/img/proxy/3x-ui.gpg differ
diff --git a/static/img/proxy/3xui.gpg b/static/img/proxy/3xui.gpg
deleted file mode 100644 (file)
index 3673e12..0000000
Binary files a/static/img/proxy/3xui.gpg and /dev/null differ