GNU_privacy_guard/README.md

60 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GNU_privacy_guard
## Установка:
### Ubuntu/Debian:
```bash
sudo apt update && sudo apt install gnupg
```
## Создание пары ключей:
```bash
gpg --full-generate-key
```
## Параметры генерации:
```text
Please select what kind of key:
(1) RSA and RSA (recommended)
(9) ECC (modern)
RSA keys may be between 1024 and 4096 bits.
What keysize do you want? (3072) 4096
Key is valid for? (0) 2y
Real name: Иван Петров
Email address: ivan@example.com
Comment: work key
```
## Парольная фраза:
```text
┌─────────────────────────────────────────────────────────┐
│ Please enter the passphrase to protect your new key │
│ │
│ Passphrase: ************************************ │
│ Repeat: ************************************ │
└─────────────────────────────────────────────────────────┘
```
### Парольная фраза защищает приватный ключ. Её потеря - потеря ключа.
## Просмотр ключей:
### Список публичных ключей:
```bash
gpg --list-keys
```
### Список приватных ключей:
```bash
gpg --list-secret-keys
```
## Подробная информация с отпечатком:
```bash
gpg --fingerprint ivan@example.com
```
### Пример вывода:
```text
pub rsa4096 2026-04-02 [SC] [expires: 2028-04-01]
1234 5678 9ABC DEF0 1234 5678 9ABC DEF0 1234 5678
uid [ultimate] Иван Петров <ivan@example.com>
sub rsa4096 2026-04-02 [E] [expires: 2028-04-01]
```