Dim an As AssemblyName
Dim pubKey As Byte()
an = AssemblyName.GetAssemblyName([Assembly].GetCallingAssembly().Location)
pubKey = an.GetPublicKey()
-Rob Teixeira [MVP]
> Hello all,
> I want to make sure that methods calling a cryptographic assembly of mine have been written by an authorized individual. My plan is to sign
assemblies with my public / private key pair (sn.exe). So I want to be able
to call the GetPublicKey() method of the AssemblyName class in the
System.Reflection namespace. Where I am stuck is how to get the assembly
information of the caller.
> Thanks all.