Solved

Non Volatile Check  Not registry

Posted on 2009-05-14
4
185 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…

752 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