开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜