pencilCake
pencilCake

Reputation: 53243

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

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

Upvotes: 2

Views: 361

Answers (1)

poupou
poupou

Reputation: 43553

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

Upvotes: 1

Related Questions