Securing an .INI file

Posted on 2005-04-26
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

    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

    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


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    disable windows 7 dialogs 6 56
    How to run this video in webbrowse ? 2 64
    IExtractImage Delphi 14 129
    Using idhttp to login to instagram 2 50
    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    This video discusses moving either the default database or any database to a new volume.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 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

    16 Experts available now in Live!

    Get 1:1 Help Now