an assembly just for me

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ignacio Domínguez

    an assembly just for me

    Hi there. I'm asking for your help this time because I need to create a .net
    assembly that is only available to applications I make. I need that only my
    apps are able to use it (create an instance). Is this possible? What is the
    simplest way to do this?

    Thanks

    Ignacio Domínguez


  • Rob Tillie

    #2
    Re: an assembly just for me

    I believe not in a simple way, as anybody can call the assembly in the way
    you do. You could build in some kind of authentication in your library...
    but everything can be hacked...
    Why do you want to do that anywayz?

    Greetz,
    -- Rob.

    Ignacio Domínguez wrote:[color=blue]
    > Hi there. I'm asking for your help this time because I need to create
    > a .net assembly that is only available to applications I make. I need
    > that only my apps are able to use it (create an instance). Is this
    > possible? What is the simplest way to do this?
    >
    > Thanks
    >
    > Ignacio Domínguez[/color]


    Comment

    • Ignacio Domínguez

      #3
      Re: an assembly just for me

      Piracy is a big deal here. You won't believe. There are stands on the
      streets where you can find music CDs, software, VHS movies, DVD movies, just
      about everything on burned CDs/DVDs. You can buy them anywhere in the city.
      Some people even sell DVD movies and VHS movies (burned/copied) on highways
      while there's a trafic jam, and the movies are sold starting the same day
      they are first presented in the cinemas (some even before that).

      Even though there are laws that prohibit this kind of things, they are not
      applied at all. Authorities are aware of this but simply do nothing about
      it. You can find the stands every day on the same location, sometimes even
      in malls. Sometimes you can find police officers buying this stuff (mostly
      you see them only walking by the stands). And it's not like they're hiding
      the ilegal merchandise; you see the CDs exhibited in endless rows and piles.
      Of course in the slim CD cases with badly inkjet printed covers, or with no
      covers at all............ I think you get the point.

      I'm afraid that if I start selling my software, eventually another developer
      will get it somehow and start using my assemblies without permission, profit
      from it, and there will be no way for me to stop him. Not even legally! So
      after I spent a lot of time developing my application, and hoping to make a
      living out of freelance software development, no one will buy my software if
      they can find it burned on the street on their way home, or in the best of
      cases if they can buy a cheaper version that uses my stolen assemblies.

      Can anyone suggest a good way of preventing my software from being stolen? I
      know big companies spend lots of money trying to accomplish this, and
      there's always a way around, but anything that might help will be greatly
      appreciated.

      Thank you

      Ignacio Domínguez


      "Rob Tillie" <Rob.Tillie@stu dent.tul.edu> wrote in message
      news:uLaiiOHVDH A.2352@TK2MSFTN GP12.phx.gbl...[color=blue]
      > I believe not in a simple way, as anybody can call the assembly in the way
      > you do. You could build in some kind of authentication in your library...
      > but everything can be hacked...
      > Why do you want to do that anywayz?
      >
      > Greetz,
      > -- Rob.
      >
      > Ignacio Domínguez wrote:[color=green]
      > > Hi there. I'm asking for your help this time because I need to create
      > > a .net assembly that is only available to applications I make. I need
      > > that only my apps are able to use it (create an instance). Is this
      > > possible? What is the simplest way to do this?
      > >
      > > Thanks
      > >
      > > Ignacio Domínguez[/color]
      >
      >[/color]


      Comment

      • Marcus Ahlberg

        #4
        Re: an assembly just for me

        There are several decompilers available for C# (for example Reflector
        http://www.aisto.com/roeder/dotnet/) so there isn't much you can do to
        protect yourself.

        "Ignacio Domínguez" <ignacioxd@hotm ail.com> skrev i meddelandet
        news:#rnGxiHVDH A.2040@TK2MSFTN GP11.phx.gbl...[color=blue]
        > Piracy is a big deal here. You won't believe. There are stands on the
        > streets where you can find music CDs, software, VHS movies, DVD movies,[/color]
        just[color=blue]
        > about everything on burned CDs/DVDs. You can buy them anywhere in the[/color]
        city.[color=blue]
        > Some people even sell DVD movies and VHS movies (burned/copied) on[/color]
        highways[color=blue]
        > while there's a trafic jam, and the movies are sold starting the same day
        > they are first presented in the cinemas (some even before that).
        >
        > Even though there are laws that prohibit this kind of things, they are not
        > applied at all. Authorities are aware of this but simply do nothing about
        > it. You can find the stands every day on the same location, sometimes even
        > in malls. Sometimes you can find police officers buying this stuff (mostly
        > you see them only walking by the stands). And it's not like they're hiding
        > the ilegal merchandise; you see the CDs exhibited in endless rows and[/color]
        piles.[color=blue]
        > Of course in the slim CD cases with badly inkjet printed covers, or with[/color]
        no[color=blue]
        > covers at all............ I think you get the point.
        >
        > I'm afraid that if I start selling my software, eventually another[/color]
        developer[color=blue]
        > will get it somehow and start using my assemblies without permission,[/color]
        profit[color=blue]
        > from it, and there will be no way for me to stop him. Not even legally! So
        > after I spent a lot of time developing my application, and hoping to make[/color]
        a[color=blue]
        > living out of freelance software development, no one will buy my software[/color]
        if[color=blue]
        > they can find it burned on the street on their way home, or in the best of
        > cases if they can buy a cheaper version that uses my stolen assemblies.
        >
        > Can anyone suggest a good way of preventing my software from being stolen?[/color]
        I[color=blue]
        > know big companies spend lots of money trying to accomplish this, and
        > there's always a way around, but anything that might help will be greatly
        > appreciated.
        >
        > Thank you
        >
        > Ignacio Domínguez
        >
        >
        > "Rob Tillie" <Rob.Tillie@stu dent.tul.edu> wrote in message
        > news:uLaiiOHVDH A.2352@TK2MSFTN GP12.phx.gbl...[color=green]
        > > I believe not in a simple way, as anybody can call the assembly in the[/color][/color]
        way[color=blue][color=green]
        > > you do. You could build in some kind of authentication in your[/color][/color]
        library...[color=blue][color=green]
        > > but everything can be hacked...
        > > Why do you want to do that anywayz?
        > >
        > > Greetz,
        > > -- Rob.
        > >
        > > Ignacio Domínguez wrote:[color=darkred]
        > > > Hi there. I'm asking for your help this time because I need to create
        > > > a .net assembly that is only available to applications I make. I need
        > > > that only my apps are able to use it (create an instance). Is this
        > > > possible? What is the simplest way to do this?
        > > >
        > > > Thanks
        > > >
        > > > Ignacio Domínguez[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Chris LaJoie

          #5
          Re: an assembly just for me

          Here's what I do:
          When I create a class that I don't want anyone else to have access to, I
          make the constructor method require a "password" in order for the major
          functions of the class to work. Consider this:

          class Test {
          protected bool correctKey = false;

          public Test(double key) {
          if(key != 29387568727) {
          MessageBox.Show ("You are trying to instantiate" +
          " this class with the wrong key.");
          }
          else correctKey = true;
          }

          public int DoSomething() {
          if(!correctKey) return -1;

          return 0;
          }

          }

          you would simply instantiate the class with the key you specify in the big
          number. Hope that helps!

          Chris LaJoie


          "Ignacio Domínguez" <ignacioxd@hotm ail.com> wrote in message
          news:%235X4kAGV DHA.1512@TK2MSF TNGP11.phx.gbl. ..[color=blue]
          > Hi there. I'm asking for your help this time because I need to create a[/color]
          ..net[color=blue]
          > assembly that is only available to applications I make. I need that only[/color]
          my[color=blue]
          > apps are able to use it (create an instance). Is this possible? What is[/color]
          the[color=blue]
          > simplest way to do this?
          >
          > Thanks
          >
          > Ignacio Domínguez
          >
          >[/color]


          Comment

          • Ignacio Domínguez

            #6
            Re: an assembly just for me

            I can obfuscate my assembly, making it at least a little bit harder for
            someone to steal the code, but why would they want to decompile it when they
            can use it as it is stealing the entire assembly...


            "Marcus Ahlberg" <cable_guy6@swi pnet.se> wrote in message
            news:ONGxrsHVDH A.2568@tk2msftn gp13.phx.gbl...[color=blue]
            > There are several decompilers available for C# (for example Reflector
            > http://www.aisto.com/roeder/dotnet/) so there isn't much you can do to
            > protect yourself.
            >
            > "Ignacio Domínguez" <ignacioxd@hotm ail.com> skrev i meddelandet
            > news:#rnGxiHVDH A.2040@TK2MSFTN GP11.phx.gbl...[color=green]
            > > Piracy is a big deal here. You won't believe. There are stands on the
            > > streets where you can find music CDs, software, VHS movies, DVD movies,[/color]
            > just[color=green]
            > > about everything on burned CDs/DVDs. You can buy them anywhere in the[/color]
            > city.[color=green]
            > > Some people even sell DVD movies and VHS movies (burned/copied) on[/color]
            > highways[color=green]
            > > while there's a trafic jam, and the movies are sold starting the same[/color][/color]
            day[color=blue][color=green]
            > > they are first presented in the cinemas (some even before that).
            > >
            > > Even though there are laws that prohibit this kind of things, they are[/color][/color]
            not[color=blue][color=green]
            > > applied at all. Authorities are aware of this but simply do nothing[/color][/color]
            about[color=blue][color=green]
            > > it. You can find the stands every day on the same location, sometimes[/color][/color]
            even[color=blue][color=green]
            > > in malls. Sometimes you can find police officers buying this stuff[/color][/color]
            (mostly[color=blue][color=green]
            > > you see them only walking by the stands). And it's not like they're[/color][/color]
            hiding[color=blue][color=green]
            > > the ilegal merchandise; you see the CDs exhibited in endless rows and[/color]
            > piles.[color=green]
            > > Of course in the slim CD cases with badly inkjet printed covers, or with[/color]
            > no[color=green]
            > > covers at all............ I think you get the point.
            > >
            > > I'm afraid that if I start selling my software, eventually another[/color]
            > developer[color=green]
            > > will get it somehow and start using my assemblies without permission,[/color]
            > profit[color=green]
            > > from it, and there will be no way for me to stop him. Not even legally![/color][/color]
            So[color=blue][color=green]
            > > after I spent a lot of time developing my application, and hoping to[/color][/color]
            make[color=blue]
            > a[color=green]
            > > living out of freelance software development, no one will buy my[/color][/color]
            software[color=blue]
            > if[color=green]
            > > they can find it burned on the street on their way home, or in the best[/color][/color]
            of[color=blue][color=green]
            > > cases if they can buy a cheaper version that uses my stolen assemblies.
            > >
            > > Can anyone suggest a good way of preventing my software from being[/color][/color]
            stolen?[color=blue]
            > I[color=green]
            > > know big companies spend lots of money trying to accomplish this, and
            > > there's always a way around, but anything that might help will be[/color][/color]
            greatly[color=blue][color=green]
            > > appreciated.
            > >
            > > Thank you
            > >
            > > Ignacio Domínguez
            > >
            > >
            > > "Rob Tillie" <Rob.Tillie@stu dent.tul.edu> wrote in message
            > > news:uLaiiOHVDH A.2352@TK2MSFTN GP12.phx.gbl...[color=darkred]
            > > > I believe not in a simple way, as anybody can call the assembly in the[/color][/color]
            > way[color=green][color=darkred]
            > > > you do. You could build in some kind of authentication in your[/color][/color]
            > library...[color=green][color=darkred]
            > > > but everything can be hacked...
            > > > Why do you want to do that anywayz?
            > > >
            > > > Greetz,
            > > > -- Rob.
            > > >
            > > > Ignacio Domínguez wrote:
            > > > > Hi there. I'm asking for your help this time because I need to[/color][/color][/color]
            create[color=blue][color=green][color=darkred]
            > > > > a .net assembly that is only available to applications I make. I[/color][/color][/color]
            need[color=blue][color=green][color=darkred]
            > > > > that only my apps are able to use it (create an instance). Is this
            > > > > possible? What is the simplest way to do this?
            > > > >
            > > > > Thanks
            > > > >
            > > > > Ignacio Domínguez
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Grant Richins [MS]

              #7
              Re: an assembly just for me

              Lookup StrongNameIdent ityPermissionAt tribute.

              --
              --Grant
              This posting is provided "AS IS" with no warranties, and confers no rights.


              "Ignacio Domínguez" <ignacioxd@hotm ail.com> wrote in message
              news:%235X4kAGV DHA.1512@TK2MSF TNGP11.phx.gbl. ..[color=blue]
              > Hi there. I'm asking for your help this time because I need to create a[/color]
              ..net[color=blue]
              > assembly that is only available to applications I make. I need that only[/color]
              my[color=blue]
              > apps are able to use it (create an instance). Is this possible? What is[/color]
              the[color=blue]
              > simplest way to do this?
              >
              > Thanks
              >
              > Ignacio Domínguez
              >
              >[/color]


              Comment

              Working...