Securing an .INI file

Posted on 2005-04-26
Medium Priority
Last Modified: 2010-04-05
Hello all.
We have just written an application that has 2 versions, a server and a client. We want to use the same exe for both and have devised an INI file to handle this. What we want to know is how will it be possible to secure this INI file against unwanted attention from an end -user who, as it stands by ammending the INI file, will be able to add/remove functionallity to rhe prog.

Many thanks
Question by:Paul-Brooks
LVL 15

Accepted Solution

mikelittlewood earned 1200 total points
ID: 13866817
Thats gonna be hard to do unless you have access to the folder the ini file is stored on and can adjust folder rights so it is inaccessible.
Im presuming that you are not using a database anywhere to store settings instead.
Another possiblity is to move value to the registry instead, away from the user areas so that system administrators can only get to them, unless you dont want administrators to access them either.
How about encrypting values in the ini file so that they are not obvious as to the functionality.
LVL 11

Assisted Solution

pcsentinel earned 400 total points
ID: 13866877
Rather than using an ini file, why not store the data in a binary file which would be much harder for the user to meddle with.

Or if you dont want to go to that bother, use a text file made up of fixed length entries for the settings you want and then encrypt the string.

LVL 22

Assisted Solution

by:Mohammed Nasman
Mohammed Nasman earned 400 total points
ID: 13867024

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
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…
Suggested Courses

864 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