如何使用 StrongName 的公钥和私钥?

发布于 2024-12-04 03:51:46 字数 28 浏览 6 评论 0原文

.snk 文件的公钥和私钥使用有什么区别?

What is the difference between public key and private key usage for .snk files?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眉目亦如画i 2024-12-11 03:51:46

您使用:

  • 私钥对程序集进行签名;
  • 用于验证签名的公钥(在程序集上);

两者在数学上都是相关的,请阅读 RSA 公钥加密技术以了解详细信息。

因此,如果您想确保其他人无法使用与您相同的公钥令牌生成签名的程序集,则需要保护私钥。

注意:公钥令牌是公钥的简化版本(SHA1 摘要的一部分)(在大多数情况下太长而无法显示)。

You use the:

  • private key to sign the assembly;
  • public key to validate the signature (on the assembly);

Both are mathematically related, read about RSA public key cryptography for details.

As such you need to protect the private key if you want to ensure no one else can produce a signed assembly using the same public key token as yourself.

note: the public key token is a reduced version (part of the SHA1 digest) of your public key (which would be too long to show in most scenarios).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文