.NET: Should executables be strong-name signed? What about private DLLs?

前端 未结 4 1379
臣服心动
臣服心动 2021-02-02 08:53

My application consists of three assemblies: a single EXE which references a couple of DLLs. The DLLs are private to my application - they are used only by this executable.

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-02 09:56

    Signing assemblies ensures that assemblies are not modified after compilation. And as long as you are the only private key owner no one is able to resign the assembly with your key.

    Sure, this is not an absolute protection. A hacker can modify assemblies and remove strong name signatures (and references) from all assemblies. These assemblies would also work.

    But in such a case you are able to say that the modifications are not made by you.

提交回复
热议问题