Solved

Non Volatile Check  Not registry

Posted on 2009-05-14
4
180 Views
Last Modified: 2012-05-07
Hello,

I have a program that when installs sets a value in the registry.  When the program starts it checks this registry value to determine how many times the program has been run.  If its the first time then form1 will run, if not then form2 will run.

This works fine, however the security of the application could be compromised if someone manually changed the registry value to trick the program into believing that its the first run even though it might not be.
Im trying to think of mechanism that I could use to prevent / detect this?

Any suggestions most appreciated.

Thanks.
0
Comment
Question by:andyw27
  • 3
4 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 500 total points
ID: 24389398
Encrypting the Registry values will get you a little more security.

But you'll still have problems with those who track changes across installs.

0
 

Author Comment

by:andyw27
ID: 24389439
I guess I could hash the value using MD5?
0
 
LVL 22

Expert Comment

by:cookre
ID: 24389445
Of course, you could always have the install require a web connection to your own site wherein you save install info.
0
 
LVL 22

Expert Comment

by:cookre
ID: 24390897
MD5 would be fine.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now