查询GnuPG加密文件信息

时间:2019-12-25 09:11:40

标签: gnupg

似乎用GnuPG加密的文件的首字节是签名ID。 我注意到,即使输入了错误的密码,我也会获得有关加密文件的所有信息:

me@mypc [2]:/tmp$ gpg2 --decrypt --output /dev/null -v .key.gpg 
gpg: public key is AA9A99AA99A9A99A
gpg: using subkey AA9A99AA99A9A99A instead of primary key 99A9AA999A999AAA
gpg: pinentry launched (5059 gnome3 1.1.0 /dev/pts/2 xterm-256color :0)
gpg: using subkey AA9A99AA99A9A99A instead of primary key 99A9AA999A999AAA
gpg: encrypted with 4096-bit RSA key, ID 99A9AA999A999AAA, created 2019-12-23
      "The key name <somebody@gmail.com>"
gpg: public key decryption failed: Operation cancelled
gpg: decryption failed: No secret key

gpg2工具是否可以选择获取文件的所有信息,而无需尝试对其进行解密?

0 个答案:

没有答案