hokkos
hokkos

Reputation: 499

How can I obtain the hash of a .Net assembly used for Strong Names?

When signing an assembly, a hash value is first created from the assembly. Then, the hash value is encrypted with the private key and placed, along with the public key. But is there a way to have this hash value of the assembly? (Because it is also computed at runtime and compared with the one stored, decrypted.)

Thanks.

Upvotes: 3

Views: 4287

Answers (1)

Mike Zboray
Mike Zboray

Reputation: 40818

use signtool.exe: signtool verify /v /pa mydll.dll | find "Hash"

Upvotes: 1

Related Questions