Where to Store the Protection Trial Info for Software Protection Purpose

Posted by Peter Lee on Stack Overflow See other posts from Stack Overflow or by Peter Lee
Published on 2010-12-23T18:36:56Z Indexed on 2010/12/23 19:54 UTC
Read the original article Hit count: 509

Filed under:
|
|
|

It might be duplicate with other questions, but I swear that I googled a lot and search at StackOverflow.com a lot, and I cannot find the answer to my question:

In a C#.Net application, where to store the protection trial info, such as Expiration Date, Number of Used Times?

I understand that, all kinds of Software Protection strategies can be cracked by a sophiscated hacker (because they can almost always get around the expiration checking step). But what I'm now going to do is just to protect it in a reasonable manner that a "common"/"advanced" user cannot screw it up.

OK, in order to proof that I have googled and searched a lot at StackOverflow.com, I'm listing all the possible strategies I got:

1. Registry Entry

First, some users might not have the access to even read the Registry table.

Second, if we put the Protection Trial Info in a Registry Entry, the user can always find it out where it is by comparing the differences before and after the software installation. They can just simply change it.

OK, you might say that we should encrypt the Protection Trial Info, yes we can do that. But what if the user just change their system date before installing?

OK, you might say that we should also put a last-used date, if something is wrong, the last-used date could work as a protection guide. But what if the user just uninstall the software and delete all Registry Entries related to this software, and then reinstall the software?

I have no idea on how to deal with this. Please help.

A Plain File

First, there are some places to put the plain file:

  • 2.a) a simple XML file under software installation path
  • 2.b) configuration file

Again, the user can just uninstall the software and remove these plain file(s), and reinstall the software.

- The Software Itself

If we put the protection trial info (Expiration Date, we cannot put Number of Used Times) in the software itself, it is still susceptible to the cases I mentioned above. Furthermore, it's not even cool to do so.

- A Trial Product-Key

It works like a licensing process, that is, we put the Trial info into an RSA-signed string. However, it requires too many steps for a user to have a try of using the software (they might lose patience):

  • 4.a) The user downloads the software;
  • 4.b) The user sends an email to request a Trial Product-Key by providing user name (or email) or hardware info;
  • 4.c) The server receives the request, RSA-signs it and send back to the user;
  • 4.d) The user can now use it under the condition of (Expiration Date & Number of Used Times).

Now, the server has a record of the user's username or hardware info, so the user will be rejected to request a second trial. Is it legal to collection hardware info?

In a word, the user has to do one more extra step (request a Trial Product Key) just for having a try of using the software, which is not cool (thinking myself as a user).

NOTE: This question is not about the Licensing, instead, it's about where to store the TRIAL info. After the trial expires, the user should ask for a license (CD-Key/Product-Key). I'm going to use RSA signature (bound to User Hardware)

© Stack Overflow or respective owner

Related posts about c#

Related posts about store