473,320 Members | 1,993 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
Nov 15 '05 #1
6 1344
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:
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

Nov 15 '05 #2
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" <Ro********@student.tul.edu> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl...
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:
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


Nov 15 '05 #3
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" <ig*******@hotmail.com> skrev i meddelandet
news:#r**************@TK2MSFTNGP11.phx.gbl...
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" <Ro********@student.tul.edu> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl...
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:
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



Nov 15 '05 #4
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" <ig*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Nov 15 '05 #5
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" <ca********@swipnet.se> wrote in message
news:ON**************@tk2msftngp13.phx.gbl...
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" <ig*******@hotmail.com> skrev i meddelandet
news:#r**************@TK2MSFTNGP11.phx.gbl...
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" <Ro********@student.tul.edu> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl...
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:
> 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



Nov 15 '05 #6
Lookup StrongNameIdentityPermissionAttribute.

--
--Grant
This posting is provided "AS IS" with no warranties, and confers no rights.
"Ignacio Domínguez" <ig*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: nospam | last post by:
Just wondering, What do you think the difference in performance would be between (1.) Compiled C# (2.) Compiled C++ (3.) and Assembly Language And how would the mix be if some if any of...
1
by: Ryan Moore | last post by:
I need to add an additional directory to search for assemblies other than the "bin" directory.... how do I do this in the web.config file?
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
2
by: john | last post by:
Maybe I haven't had that "a-ha" moment yet, but I think the new approach to web projects is a step in the wrong direction. My main beef is that control over the assembly generation process has...
7
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
3
by: Shawnk | last post by:
I use two classes to manage the Main() command line (and alot of other stuff) for my prototyping environment. I tryed putting the MainClass in a DLL and just having the other class (which gets...
1
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been...
2
by: Paul | last post by:
Hi, I have experience in Java and C++ but I am rather new to C# and just started learning it. I am using Visual C# 2005 Express Edition and I found that there is a file called "AssemblyInfo.cs",...
14
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.