Зачем конвертировать ASC в GPG?
A .asc file is ASCII-armored OpenPGP data: the binary content is wrapped in Base64 text so it survives email and copy-paste. A .gpg file holds the same data as raw binary. Some tools - particularly Linux package managers and keyring import routines - require the binary .gpg form and reject armored input, which is why gpg --dearmor appears in many software installation guides.
Способы конвертации ASC в GPG
GnuPG FREE
Run gpg --dearmor file.asc in a terminal; the output is file.asc.gpg (rename to file.gpg), or use gpg --dearmor < file.asc > file.gpg to write the correct filename directly.
Gpg4win FREE
Install Gpg4win (which includes GnuPG), open Command Prompt or PowerShell, and run gpg --dearmor file.asc; rename the output from file.asc.gpg to file.gpg.
Об этих форматах
Файл ASC почти всегда представляет собой блок OpenPGP с ASCII-оболочкой: цифровую подпись, открытый ключ или зашифрованное сообщение от PGP или GnuPG, закодированное в виде читаемого текста…
Открыть детали .ASC →Файл .gpg - это бинарные данные, созданные GnuPG (GNU Privacy Guard), бесплатным инструментом шифрования OpenPGP. Большинство файлов .gpg зашифрованы - чтобы прочитать такой файл, вам…
Открыть детали .GPG →Качество и на что обратить внимание
- Dearmoring is a pure encoding operation equivalent to Base64 decoding - the cryptographic content is bit-for-bit identical in both files and verification works the same way with either.
- The reverse operation
gpg --armor < file.gpg > file.ascconverts binary back to ASCII-armored. - Kleopatra's GUI does not expose a standalone dearmor button - the GnuPG command line is the practical path even when Gpg4win is installed.
Часто задаваемые вопросы
Does dearmoring change the cryptographic content?
Why does GnuPG name the output `file.asc.gpg` instead of `file.gpg`?
.gpg to the input filename; use gpg --dearmor < file.asc > file.gpg to control the output name directly.How do I tell if a `.gpg` file is actually ASCII-armored inside?
-----BEGIN PGP...-----, the content is armored regardless of the .gpg extension.