-
Reading Encrypted INI
Hi,
Can anyone advise me in how I can decrypt a file and then have my program read it.
I have managed to encrypt the ini file, and I am able to read the encrypted file and store this information in a richtextbox. I am able to convert this back into plain English (Read the encrypted file into richtextbox1, decrypt the the data from richtextbox1 to richtextbox2, richtextbox2 is now in English), but the problem I have is that my program does not want to read the data richtextbox2.
Is it possible to make my program read the ini data from a richtextbox, if so how can I go about doing that ? (Or is my approach wrong)
Any help is appreciated.
Thanks.
Al.
-
Rather than encrypt the entire file, coulnd't you just encrypt the values for each key? That way you can still use the INI functions to retrieve the values, and THEN encrypt them. If this isn't secure enough for you, then you are going to have to write your own routines that extract key's and values from a string of text, rather than a file.
-
encrypting the whole file is alot easier,
i had this problem already