文件和密钥的签名就是盖章吗?

本文解析了GPG的三种签名方法--signfile、--clear-signfile和--detach-signfile,强调了它们的区别,如--detach-sign仅包含签名而不含文件内容,--sign用于加密并压缩文本,--clear-sign提供了明文签名。此外,还介绍了--clear-sign与--armor--sign的相似性和不同之处。
摘要由CSDN通过智能技术生成

机缘

gpg 三种签名方式的不同
gpg --sign file # produces file.gpg
gpg --clear-sign file # produces file.asc
gpg --detach-sign file # produces file.sig

Basically when signing with --detach-sign the resulting .sig won’t contain the signed file only the signature.
–sign compresses, signs and outputs the signed text in a binary format.
–clearsign wraps the text in an ASCII-armored signature—

收获

–sign does not encrypt files! –
Sebi2020
Jul 27, 2020 at 9:42
Is --clearsign any different from --armor --sign? –
xjcl
Jul 6, 2021 at 17:14
Yes. With --sign --armor the cleartext isn’t show, and the ascii will be different because the armor includes both the message and the signature. --clearsign is more similar to --detach-sign --armor, which is exactly the ascii that shows up after the cleartext. –
stewSquared
Nov 6, 2021 at 4:41


What does “signing” a file really mean?

It is similar to give your product(files) a laser anti-counterfeiting label,
to let others receiver(buyer) more confident in quality, when they see a signiture as real genuine certificate.

憧憬

提示:职业规划、创作规划等​​

Tips

  1. 您发布的文章将会展示至 里程碑专区 ,您也可以在 专区 内查看其他创作者的纪念日文章
  2. 优质的纪念文章将会获得神秘打赏哦
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值