G
Guest
Hi:
I want to create a DLL that only can be used from applications signed with
my strong key file.
I have checked the StrongNameIdentityPermissionAttribute but it does not
work for me. So I did the next logic: When someone access the code in the
DLL, the class contained check the running application friendly name, find
the application executable, obtain its public key token and compare it with
the self public key token, if it is the same continue with the execution.
But the problem is i found applications can change its friendly name... how
can I be sure the application.exe that is running?
Or there is another way to secure who uses my dll file?
I want to create a DLL that only can be used from applications signed with
my strong key file.
I have checked the StrongNameIdentityPermissionAttribute but it does not
work for me. So I did the next logic: When someone access the code in the
DLL, the class contained check the running application friendly name, find
the application executable, obtain its public key token and compare it with
the self public key token, if it is the same continue with the execution.
But the problem is i found applications can change its friendly name... how
can I be sure the application.exe that is running?
Or there is another way to secure who uses my dll file?