Created
May 17, 2021 15:42
-
-
Save webarchitect609/6b606436ccd931ca4db88457d7a534f7 to your computer and use it in GitHub Desktop.
Отправить мне зашифрованное сообщение | Send me encrypted message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Должен быть установлен GnuPG | |
# GnuPG must be installed | |
# Импортировать мой публичный ключ с сервера | |
# Import my public key from the server | |
gpg --auto-key-locate hkps://keys.openpgp.org --locate-keys [email protected] | |
# Получить список всех публичных ключей с идентификаторами. | |
# List all public keys with IDs | |
gpg --list-public-keys --keyid-format LONG | |
# Найти там строчку вида | |
# pub rsa4096/1E78FEB6C4E420D7 2020-05-17 [SC] [expires: 2022-05-17] | |
# , где 1E78FEB6C4E420D7 - это id ключа | |
# Find there a line of form | |
# pub rsa4096/1E78FEB6C4E420D7 2020-05-17 [SC] [expires: 2022-05-17] | |
# , where 1E78FEB6C4E420D7 - is the key's ID | |
# Зашифровать файл message.txt публичным ключом 1E78FEB6C4E420D7 | |
# Encrypt the file message.txt by the public key 1E78FEB6C4E420D7 | |
gpg --trust-model always -r 1E78FEB6C4E420D7 -e message.txt | |
# Будет создан файл message.txt.gpg, который можно отправить любым удобным способом. | |
# A message.txt.gpg file will be created, which can be sent in any convenient way. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment