Why can't strongly named assemblies use assemblies that aren't signed?

后端 未结 3 1476
春和景丽
春和景丽 2021-01-19 02:04

To sign an assembly A you have to make sure all assemblies B, C, D that are used by A are signed, and then all assemblies that are used by B, C, D, and so on. I don\'t under

3条回答
  •  无人及你
    2021-01-19 02:42

    The point is that otherwise you could replace assembly B/C/D with a different (hacked) one, and A would never notice; it would load them and execute the code. With strong naming, you can't do this without either re-signing the hacked B/C/D with the same key, or by hacking A.

提交回复
热议问题