DLL security once again...
-
Hello experts, I haven't got any code or response how to secure my DLL's to access from other users..?:(( I think for a new concept. In VB.net their is word called as FRIEND that means only code within a particular solution can access that methods and properties. Suppose I have 10 DLL projects and 1 windows application then only these 11 can use methods and properties of each other I.e. no other one out-sider can access that class. If it is true then what is the equivalent of FRIEND in C#.net...?:rolleyes: Or if this is not true then what is the proper way to achieve this...?:confused: Any other suggestions on DLL security are also welcome.:cool:
Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...
-
Hello experts, I haven't got any code or response how to secure my DLL's to access from other users..?:(( I think for a new concept. In VB.net their is word called as FRIEND that means only code within a particular solution can access that methods and properties. Suppose I have 10 DLL projects and 1 windows application then only these 11 can use methods and properties of each other I.e. no other one out-sider can access that class. If it is true then what is the equivalent of FRIEND in C#.net...?:rolleyes: Or if this is not true then what is the proper way to achieve this...?:confused: Any other suggestions on DLL security are also welcome.:cool:
Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...
Hi! Did you look at the documentation about CAS and security attributes/permissions? One of them could be relevant for you: StrongNameIdentityPermission[^]
Regards, mav -- Black holes are the places where God divided by 0...
-
Hi! Did you look at the documentation about CAS and security attributes/permissions? One of them could be relevant for you: StrongNameIdentityPermission[^]
Regards, mav -- Black holes are the places where God divided by 0...
Ya I see it but dosen't seems to prevent the code for unauthorized use. I want to protect my DLL's.
Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...
-
Ya I see it but dosen't seems to prevent the code for unauthorized use. I want to protect my DLL's.
Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...
Pankaj - Joshi wrote:
I see it
Did you understand it as well? Using this permission you can make sure that only callers with a certain strong name signature can call your code. You'll have to sign all your assemblies with this strong name, so they are allowed to use the code. Someone else doesn't have the same private/public key pair neccessary for signing, so it seems to be exactly what you want.
Regards, mav -- Black holes are the places where God divided by 0...
-
Pankaj - Joshi wrote:
I see it
Did you understand it as well? Using this permission you can make sure that only callers with a certain strong name signature can call your code. You'll have to sign all your assemblies with this strong name, so they are allowed to use the code. Someone else doesn't have the same private/public key pair neccessary for signing, so it seems to be exactly what you want.
Regards, mav -- Black holes are the places where God divided by 0...
Sorry for previos post. I read it but I wans unable to create the code for this. I read too many articles but those all are bit confusing.:~ Any simple link to visit...?
Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...