Protecting text file in VB6
-
I have this VB6 program which reads and retrieve information or data from a text file as needed. I need to protect this text file which hold my data, is there any way i can encrypt or compressed so that the program can only retrieve the data from the file in order to protect the data inside. Would be very grateful if anyone could help me on this. Thanks.
-
I have this VB6 program which reads and retrieve information or data from a text file as needed. I need to protect this text file which hold my data, is there any way i can encrypt or compressed so that the program can only retrieve the data from the file in order to protect the data inside. Would be very grateful if anyone could help me on this. Thanks.
You can encrypt/decrypt the text file, but you'd have to hold the contents of the file in memory to use it and modify it, then write it back out encrpyted. You can find a few examples in this list[^]. I highly recommend abandoning VB6 development and moving to VB.NET. Once you get past the learning curve, you'll find that you've been writing code in the Dark Ages.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
You can encrypt/decrypt the text file, but you'd have to hold the contents of the file in memory to use it and modify it, then write it back out encrpyted. You can find a few examples in this list[^]. I highly recommend abandoning VB6 development and moving to VB.NET. Once you get past the learning curve, you'll find that you've been writing code in the Dark Ages.
A guide to posting questions on CodeProject[^]
Dave KreskowiakThanks for the response, but the link mention just open the google page. Well my problem is like i have developed this software which use a text file to hold the data, this text data i need to protect like we made a protection in ms-access using password. I dont' want the user to make changes or directly access the text file but through the software only and only read the data. Is there any way I can encrypt or compressed the text file and open the file through the program while using it. I would be grateful if you could show me how to do this. Thanks.
-
Thanks for the response, but the link mention just open the google page. Well my problem is like i have developed this software which use a text file to hold the data, this text data i need to protect like we made a protection in ms-access using password. I dont' want the user to make changes or directly access the text file but through the software only and only read the data. Is there any way I can encrypt or compressed the text file and open the file through the program while using it. I would be grateful if you could show me how to do this. Thanks.
hang_em wrote:
but the link mention just open the google page.
Yeah, this is where you start your own research and start following those links and reading what they bring up. You will also find examples with some of them. I don't have any examples to give you because I abandoned all VB6 developement, in favor of VB.NET, about 9 years ago.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak