Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,178 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,999 people online right now. Registration is fast and FREE... Join Now!




encrypt a file using vb 6.0

 
Reply to this topicStart new topic

encrypt a file using vb 6.0

jimjohn
23 Sep, 2007 - 12:15 PM
Post #1

New D.I.C Head
*

Joined: 23 Sep, 2007
Posts: 1


My Contributions
hi all

i am using vb 6.0 to develop applications. my request is how to create a configuration file using vb 6.0 so that the user can change the values of the file using my exe, but they must not be able view or change the values of that file using any other editor or something.
at present i am using a ms access file by providing some password for that. but in case someone can hack the password and directly open and change values, i dont want this. can someone help with a definite solution please. i tried to create the file as binary formatted file, but it doesn't work.

open "C:\mybinary.bin" for binary as #1
put #1,,"Welcome"
close #1

thanks
jim

User is offlineProfile CardPM
+Quote Post

Daiken
RE: Encrypt A File Using Vb 6.0
23 Sep, 2007 - 06:04 PM
Post #2

New D.I.C Head
*

Joined: 22 Sep, 2007
Posts: 27


My Contributions
Does it have to be a very secure encryption with encryption key or would you just like to prevent a regular user from opening your data files in an editor and understanding what's in there?

If you are looking for the latter try to convert the charset into another one... maybe do some branching on what ASCII values should be translated into what.
That way your data would look like meaningless nonsense to others and you would just have to do the same thing in reverse when reading from it.

I'd write you a little sample but I don't think I'm supposed to *eyeroll*.

Should be fairly easy to get some code snippets for this on google, or just be creative.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 12:57AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month