473,413 Members | 1,801 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,413 software developers and data experts.

How to protect a dll

I wrote a dll and now I want to protect from mass distribution. What
is the most COST software for doing this, or can it easily be done in
vb.net.
Nov 20 '05 #1
19 2991
* pe***@mclinn.com (Peter) scripsit:
I wrote a dll and now I want to protect from mass distribution. What
is the most COST software for doing this, or can it easily be done in
vb.net.


That's possible "out of the box":

<URL:http://msdn.microsoft.com/library/en-us/cpguide/html/cpconlicensingcomponentscontrols.asp>
<URL:http://windowsforms.net/articles/Licensing.aspx>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
I don't see how that protects the code.
Cannot one can still decompile and defeat the code that using the licensing
components listed below?

--
http://www.standards.com/; See Howard Kaikow's web site.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2g************@uni-berlin.de...
* pe***@mclinn.com (Peter) scripsit:
I wrote a dll and now I want to protect from mass distribution. What
is the most COST software for doing this, or can it easily be done in
vb.net.
That's possible "out of the box":

<URL:http://msdn.microsoft.com/library/en...nlicensingcomp
onentscontrols.asp> <URL:http://windowsforms.net/articles/Licensing.aspx>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3
* "Howard Kaikow" <ka****@standards.com> scripsit:
I don't see how that protects the code.
Cannot one can still decompile and defeat the code that using the licensing
components listed below?


I didn't yet play around with them, but I think additional obfuscation
may be the way to go.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
Obfuscation just makes the task of decompiling harder.
In addition, using obfuscation adds another, needless, element that could
botch up a project.
What if the obfuscator screws up things?
It's hard enough to debug as is without having to worry about problems
caused by obfuscation.

Not to mention, using the built-in, or another commercially available,
obfuscator, means that those obfuscators are likely to be targeted and
cracked at some point, if not already.
--
http://www.standards.com/; See Howard Kaikow's web site.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2g************@uni-berlin.de...
* "Howard Kaikow" <ka****@standards.com> scripsit:
I don't see how that protects the code.
Cannot one can still decompile and defeat the code that using the licensing components listed below?


I didn't yet play around with them, but I think additional obfuscation
may be the way to go.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #5
* "Howard Kaikow" <ka****@standards.com> scripsit:
Obfuscation just makes the task of decompiling harder.
In addition, using obfuscation adds another, needless, element that could
botch up a project.
What if the obfuscator screws up things?
Depends on the obfuscator. There are AFAIK obfuscators available that
do not break reflection, for example.
Not to mention, using the built-in, or another commercially available,
obfuscator, means that those obfuscators are likely to be targeted and
cracked at some point, if not already.


I think there is big difference to what we had in VB6 or C. If the
algorithm itself should be protected, don't put it onto the
client. Provide a web service or something like that on a separate
server.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6
In the real world, most apps run locally, not over a web.

--
http://www.standards.com/; See Howard Kaikow's web site.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2g************@uni-berlin.de...
* "Howard Kaikow" <ka****@standards.com> scripsit:
Obfuscation just makes the task of decompiling harder.
In addition, using obfuscation adds another, needless, element that could botch up a project.
What if the obfuscator screws up things?


Depends on the obfuscator. There are AFAIK obfuscators available that
do not break reflection, for example.
Not to mention, using the built-in, or another commercially available,
obfuscator, means that those obfuscators are likely to be targeted and
cracked at some point, if not already.


I think there is big difference to what we had in VB6 or C. If the
algorithm itself should be protected, don't put it onto the
client. Provide a web service or something like that on a separate
server.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #7
* "Howard Kaikow" <ka****@standards.com> scripsit:
In the real world, most apps run locally, not over a web.


In real world, 99,99 percent of the users do not want the source code
and do not decompile the application.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #8
>
I didn't yet play around with them, but I think additional obfuscation may be the way to go.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Obfuscation will help protect your intellectual property, but it won't
prevent someone from distributing the latest version of your software
free. All they have to do is decompile, and step through one line at
a time to remove license checks or other checks, and presto - free
code.

The ability to decompile and step through line-by-line will always
ensure that anyone who wants your software without paying will have
it without paying.

Nov 20 '05 #9
> Obfuscation will help protect your intellectual property, but it won't
prevent someone from distributing the latest version of your software
free. All they have to do is decompile, and step through one line at
a time to remove license checks or other checks, and presto - free
code.

The ability to decompile and step through line-by-line will always
ensure that anyone who wants your software without paying will have
it without paying.


However in my country there is a law, that when you steal a car, the car is
still be stolen when you repaint it. However maybe that is not everywhere
the same.

Cor


Nov 20 '05 #10
* do*****@telus-dot-net.no-spam.invalid (Doknjas) scripsit:
Obfuscation will help protect your intellectual property, but it won't
prevent someone from distributing the latest version of your software
free. All they have to do is decompile, and step through one line at
a time to remove license checks or other checks, and presto - free
code.


I am still waiting for somebody to show me a sample where this has been
done.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #11
> Cor Ligthertwrote:
[quote:843e7a2233]Obfuscation will help protect your intellectual
property, but it won't
prevent someone from distributing the latest version of your software free. All they have to do is decompile, and step through one line at a time to remove license checks or other checks, and presto - free
code.

The ability to decompile and step through line-by-line will always
ensure that anyone who wants your software without paying will have
it without paying.

However in my country there is a law, that when you steal a car, the
car is
still be stolen when you repaint it. However maybe that is not
everywhere
the same.

Cor[/quote:843e7a2233]

Yes, of course - I live in one of the civilized countries also. I'm
just saying there is no safeguard for people wanting to break the
law. It is unfortunately incredibly easy to steal software,
especially software written in .NET.

Nov 20 '05 #12
> Herfried K. Wagner [MVP]wrote:
"]* do*****@telus-dot-net.no-spam.invalid (Doknjas) scripsit:
Obfuscation will help protect your intellectual property, but it won't prevent someone from distributing the latest version of your software free. All they have to do is decompile, and step through one line at a time to remove license checks or other checks, and presto - free
code.

I am still waiting for somebody to show me a sample where this has
been
done.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>[/quote:502c6bd431]

I see your point, but I'm just saying that (to the original poster),
you're deluding yourself if you think you can protect your .NET app
from being available to someone wanting it. Obfuscation protects
someone from understanding your intellectual approach somewhat, but
the 2-step mindlessly simple process of (a) running the app through a
decompiler and (b) stepping through the resulting source code in
Visual Studio line by line to identify and remove license checks
(even though obfuscation makes them unreadable) is so straightforward
that there is no point in worrying about protecting against it.

Nov 20 '05 #13
Read through the posts and then decided that I'll encrypt my code at
the source level with blowfish encryption. I'll lose some efficiency
but all in all that should make it at least misreable for someone to
figure it out.

I wish this issue would be resolved in the new framework release. We
can always pray.

Had a good laugh "..paint a diff...color." We are a country persons
obscured from a genetically criminal pool = True and Old complaint.
That's why we have the most $$$ floating through our economy....even
when it is bad....
Nov 20 '05 #14
Read through the posts and then decided that I'll encrypt my code at
the source level with blowfish encryption. I'll lose some efficiency
but all in all that should make it at least misreable for someone to
figure it out.

I wish this issue would be resolved in the new framework release. We
can always pray.

Had a good laugh "..paint a diff...color." We are a country persons
obscured from a genetically criminal pool = True and Old complaint.
That's why we have the most $$$ floating through our economy....even
when it is bad....
Nov 20 '05 #15
* pe***@mclinn.com (Peter) scripsit:
Read through the posts and then decided that I'll encrypt my code at
the source level with blowfish encryption. I'll lose some efficiency
but all in all that should make it at least misreable for someone to
figure it out.


Hopefully, it's not decrypted when loaded into memory...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #16
* pe***@mclinn.com (Peter) scripsit:
Read through the posts and then decided that I'll encrypt my code at
the source level with blowfish encryption. I'll lose some efficiency
but all in all that should make it at least misreable for someone to
figure it out.


Hopefully, it's not decrypted when loaded into memory...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #17
Sorry to be late :)

Steps to protect your software:

1. Don't tell anybody you made it, not even to your mather

2. Don't allow anyone to uses your computer

3. Don't distribute your software (it comes from 1.)

4. Don't connect to internet using the computer where your software resides.

5. Place lots of intruder alarms in your computer room

hope this helps a bit?

Peter wrote:
I wrote a dll and now I want to protect from mass distribution. What
is the most COST software for doing this, or can it easily be done in
vb.net.


Nov 20 '05 #18
Sorry to be late :)

Steps to protect your software:

1. Don't tell anybody you made it, not even to your mather

2. Don't allow anyone to uses your computer

3. Don't distribute your software (it comes from 1.)

4. Don't connect to internet using the computer where your software resides.

5. Place lots of intruder alarms in your computer room

hope this helps a bit?

Peter wrote:
I wrote a dll and now I want to protect from mass distribution. What
is the most COST software for doing this, or can it easily be done in
vb.net.


Nov 20 '05 #19
pe***@mclinn.com (Peter) wrote in message news:<dc**************************@posting.google. com>...
I wrote a dll and now I want to protect from mass distribution. What
is the most COST software for doing this, or can it easily be done in
vb.net.


We offer two products that may help protect your .NET intellectual
property. We use them ourselves to protect shipping versions of our
products. You can download free trial versions of both of them from
our website at http://www.junglecreatures.com/ Our Decompiler.NET
product serves both as a decompiler and language translator, and an
obfuscator. The decompiler feature will help you understand how
exposed your obfuscated code may be. Our Deploy.NET product,
compresses your assemblies into a single encrypted archive resource
embedded in loader application that displays your version info. This
adds a second level of protection on disk by loading the unencrypted
obfuscated code in memory only for execution. This doesn't prevent a
memory dump of process memory, but it makes it much more difficult for
someone to hack your obfuscated code using a debugger. Deploy.NET will
take advantage of secure computing hardware when it is available so it
will be possible soon to load the executable unencrypted code into a
memory space held private by the OS that supports execution but not
read, and prevents other processes for loading concurrently with the
protected application.

Go ahead and try both products for free by downloading them from
http://www.junglecreatures.com/

Jonathan Pierce
President
Jungle Creatures, Inc.
http://www.junglecreatures.com/
Nov 20 '05 #20

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

Similar topics

6
by: YK | last post by:
All, What is the best way to protect IL code? --------------------------------------------------- Typical scenario: Visual Studio .NET 2003 includes Dotfuscator Community Edition, which...
11
by: siliconmike | last post by:
Is there a way to protect data files from access by root ? I have a data-centered website and would like to protect data piracy from any foot-loose hosting company employee. Any ideas? ...
3
by: Parham | last post by:
Hello, How to protect structures(Tables,SP,Views and Functions) of a SQL Server Database?(Password protect a database file) I have a SQL database that will distribute with my application, I want...
29
by: Frank Millman | last post by:
Hi all I am writing a multi-user accounting/business system. Data is stored in a database (PostgreSQL on Linux, SQL Server on Windows). I have written a Python program to run on the client,...
3
by: Narlen | last post by:
Hi there, I don't know much about web design but I proudly managed to password protect a page on my site. Later I realized that everyone looking at the source in any web browser can see the...
15
by: Fady Anwar | last post by:
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised...
22
by: teejayem | last post by:
Hi, I am new to programming with databases and was wanting some help. Is there any way to password protect an access database and access sent sql commands to it via vb.net code? Any help...
10
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I protect my javascript code? ----------------------------------------------------------------------- ...
7
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I have an ASP.NET 2.0 web application which contains an Images directory with all website images. How can I prevent other websites from creating img tags with the source as my images? I want...
3
by: Sin Jeong-hun | last post by:
It seems like the Protect() uses the Windows accout information to encrypt data. If I know the user name and the password, can I decrypt it on another PC? If it is not, how about the exported key?...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.