开发者

How do I use public keys vs. private key for StrongName?

开发者 https://www.devze.com 2023-04-04 09:20 出处:网络
What is the difference be开发者_运维知识库tween public key and private key usage for .snk files?You use the:

What is the difference be开发者_运维知识库tween public key and private key usage for .snk files?


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号