Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Non Volatile Check  Not registry

Posted on 2009-05-14
4
Medium Priority
?
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

704 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