From: Dmitry Fedotov Date: Sat, 7 Jun 2025 21:18:39 +0000 (+0300) Subject: Add info about GnuPG. X-Git-Url: https://www.git.dmfe.net/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=dmfe-website Add info about GnuPG. --- diff --git a/docs/pfd.gpg b/docs/pfd.gpg index d6b98af..3295858 100644 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 index 0000000..85bab18 --- /dev/null +++ b/docs/unix-linux/utils/gpg.md @@ -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 .gpg --encrypt --recipient +``` + +### Encrypt a folder +```bash title="Archive the directory" +tar -cvf .tar.gz +``` + +```bash title="Encrypt the archive" +gpg -o .gpg --encrypt --recipient .tar.gz +``` + +## Decryption + +### Decrypt a file +```bash title="Decrypt a file" +gpg -o --decrypt .gpg +``` + +### Decrypt a folder +```bash title="Decrypt gpg file into the archive" +gpg -o .tar.gz --decrypt .gpg +``` + +```bash title="Extract files from the archive" +tar -xvf .tar.gz -C +``` + diff --git a/static/img/proxy/3x-ui.gpg b/static/img/proxy/3x-ui.gpg new file mode 100644 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 index 3673e12..0000000 Binary files a/static/img/proxy/3xui.gpg and /dev/null differ