10 Replies - 1518 Views - Last Post: 17 January 2010 - 08:05 AM Rate Topic: -----

#1 elmahdy2002  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 08-January 10

protect

Post icon  Posted 16 January 2010 - 10:17 AM

How to protect my vb project from illegal copy
Is This A Good Question/Topic? 0
  • +

Replies To: protect

#2 peter100191  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 60
  • Joined: 05-May 09

Re: protect

Posted 16 January 2010 - 03:05 PM

Copyright it, or have your program access a server on your computer, where the client has to enter a serial number. Also use a chaotic theory in your algorithm to make it harder for people to make a keygen. Also you can use "smart assembly"to protect your programs from being uncompiled.
Was This Post Helpful? 0
  • +
  • -

#3 Jack Eagles1  Icon User is offline

  • Pugnacious Penguin (inspired by no2pencil)
  • member icon

Reputation: 183
  • View blog
  • Posts: 1,152
  • Joined: 10-December 08

Re: protect

Posted 16 January 2010 - 05:03 PM

This will be a butt to do, but It will stop people from using one copy of your software on another computer (assuming they don't decompile it).

Ok.

1: When your program first runs, have it generate a random string. Next add to this string the name of the user on the computer. Then save that string to a file (somewhere in the System32 or where a user won't look). You might also want to encrypt this file with rijandel or some other encryption method.

2: Save the generated string to a rijandel encrypted string in My.Settings

3: Whenever the program runs, make it decrypt the rijandel file, and compare it with the string stored in My.Settings

4: If the string is different or absent, or the username saved on it does not correspond with what is stored in My.Settings, quit the application, otherwise let it run.
Was This Post Helpful? 0
  • +
  • -

#4 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2264
  • View blog
  • Posts: 9,470
  • Joined: 29-May 08

Re: protect

Posted 16 January 2010 - 05:27 PM

Why do you have to hide stuff in System32?
A very Windows XP style of doing things.
Was This Post Helpful? 0
  • +
  • -

#5 peter100191  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 60
  • Joined: 05-May 09

Re: protect

Posted 16 January 2010 - 05:34 PM

Because system 32 is a system folder that will never be deleted and contains thousands of files so it is easy to hide files in. Though the proper place to put them would be Application settings... AdamSpeight2008 do you have a better place?
Was This Post Helpful? 0
  • +
  • -

#6 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2264
  • View blog
  • Posts: 9,470
  • Joined: 29-May 08

Re: protect

Posted 16 January 2010 - 05:44 PM

When you install you should create a folder in the Application Data Folder (That is what's for.)
I suggest a folder similar to this.
ApplicationData
+Company Name
 +Product Name
  +Version



Treat the ProgramFiles as a Read Only Folder.

System32 is for system files. Is your file to do with the system? No then wtf is doing in there.
Was This Post Helpful? 0
  • +
  • -

#7 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: protect

Posted 16 January 2010 - 05:45 PM

Well, I have to jump in and at least say that putting a file anywhere on the computer lends itself to being "Cracked". If your program is popular enough, there will be someone using it that has the skills to get it for free. Putting a file in the system32 might stop a novice user but there are utilities out there that will show any system/registry changes and record them allowing a person to see where they need to look.

I'm not trying to discourage anyone from protecting their intellectual property but I will say that many large companies put a lot of funding into doing just that only to have their property "cracked" within weeks or days.
Was This Post Helpful? 0
  • +
  • -

#8 Jack Eagles1  Icon User is offline

  • Pugnacious Penguin (inspired by no2pencil)
  • member icon

Reputation: 183
  • View blog
  • Posts: 1,152
  • Joined: 10-December 08

Re: protect

Posted 17 January 2010 - 05:04 AM

I said the system32 because:

1: Most normal computer users don't mess around with that stuff
2: There are loads of files there, so it's easy to make another file blend in
3: Have you got anywhere better? The application settings will be the first place someone wants to look...
Was This Post Helpful? 0
  • +
  • -

#9 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2264
  • View blog
  • Posts: 9,470
  • Joined: 29-May 08

Re: protect

Posted 17 January 2010 - 05:32 AM

View PostJack Eagles1, on 17 Jan, 2010 - 12:04 PM, said:

I said the system32 because:
1: Most normal computer users don't mess around with that stuff

Normal users wouldn't be messing around in the directory I suggested.

Quote

2: There are loads of files there, so it's easy to make another file blend in

So. Why do you need for it blend in?

Quote

3: Have you got anywhere better? The application settings will be the first place someone wants to look...

Yes, <ApplicationData>/Company Name/Product Name/Version Number/
Was This Post Helpful? 0
  • +
  • -

#10 Jack Eagles1  Icon User is offline

  • Pugnacious Penguin (inspired by no2pencil)
  • member icon

Reputation: 183
  • View blog
  • Posts: 1,152
  • Joined: 10-December 08

Re: protect

Posted 17 January 2010 - 07:27 AM

1: The people who crack applications will look in the application settings files first to see if there is anything distinguishable, or obvious, such as a file called 'License Key'. Thats why I say put it in the System32
2: I want it to blend so it makes it more difficult for hackers to find it.
3: I just TOLD YOU the application settings will be the FIRST PLACE that people will look!!!
Was This Post Helpful? 0
  • +
  • -

#11 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2264
  • View blog
  • Posts: 9,470
  • Joined: 29-May 08

Re: protect

Posted 17 January 2010 - 08:05 AM

Have you consider using IsolatedStorage?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1