Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. DLL security once again...

DLL security once again...

Scheduled Pinned Locked Moved C#
csharpquestionsecuritytutorial
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pankaj Joshi
    wrote on last edited by
    #1

    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...

    M 1 Reply Last reply
    0
    • P Pankaj Joshi

      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...

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      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...

      P 1 Reply Last reply
      0
      • M mav northwind

        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...

        P Offline
        P Offline
        Pankaj Joshi
        wrote on last edited by
        #3

        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...

        M 1 Reply Last reply
        0
        • P Pankaj Joshi

          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...

          M Offline
          M Offline
          mav northwind
          wrote on last edited by
          #4

          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...

          P 1 Reply Last reply
          0
          • M mav northwind

            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...

            P Offline
            P Offline
            Pankaj Joshi
            wrote on last edited by
            #5

            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...

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups