Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - VB encrypting files
  
User name:
Password:
Reply:
 

UserPost
Cellar Dweller
Posts: 35/269
Originally posted by Dragato
But when it comes to using files, I need a way to encrypt them to they can only be used by my program.


If you want to distribute the program, then you might as well give up. If someone of skill wants to use another program to use the files, (s)he can reverse engineer your program and recover the needed algorithms and keys. This is a lesson that the software industry learned the hard way in the 1980s and the entertainment industry is still learning.
Tuvai
Posts: 183/211
INI files are NOT meant for database storage, period.
Darth Coby
Posts: 469/1371
Well then you could write your own INI file routine.
dan
Posts: 38/782
Yeah, but with INI files API, you can only have a maximum filesize of 65kb. Which can really suck when it comes to storing large amounts of information.
Darth Coby
Posts: 458/1371
Yes, but they get the job done.
Tuvai
Posts: 181/211
Originally posted by Coby
For Database kind of work you could use INI files. They're easy to use once you get used to the API.
Ini files for a database? Doesn't really sound like a real practical sollution if you ask me; INI files and registry storage are meant to store little values. Program settings and the likes.
Darth Coby
Posts: 455/1371
For Database kind of work you could use INI files. They're easy to use once you get used to the API.
Tuvai
Posts: 179/211
Well, then your only sollution would be your own encryption and decryption code. All premades one would be able to get reversed, except for example MD5, which can't be reversed.

And ywah, found a way around with using the MySQL database thanks to Jesper, and it's pretty simple; all you have to do is let a PHP page spit out whatever information you need and then retreive the content of that page with the Internet Transfer Control.
Dragato
Posts: 17/25
I thought your MySQL database was protected from external usage, or did you find a way around it? I was going to make a program to interact with a MySQL database, but I couln't really find many resourses about it.

But when it comes to using files, I need a way to encrypt them to they can only be used by my program.
Tuvai
Posts: 178/211
I've been using XML lately for the smaller database stuff, such as logfiles. For bigger databases I haven't really come accross a need yet other than the fact I make some programs interchanging with my server's MySQL database, which is semi big.
Dragato
Posts: 16/25
What would you recommend to use as a database? I don't want to use an access database since they get big in file size very quickly, and they start quite big too.
Tuvai
Posts: 176/211
Em, CSV's are simply text files containing comma sepparated values (which is what CSV stands for as well) so if not obvious enough you can treat it as if you would treat a normal text file. Not exactly an efficient way of using it as a big DB, though.
Dragato
Posts: 15/25
While creating my Visual Basic program I decided to use .dat and CSV files to store all the data in...

The problem is, I do not know how to encrypt information inside these files. Does anyobdy here know how to encrypt them, and unencrypt them when running the VB program. If so, could you please tell me how to, I would be grateful if you could help.
Acmlm's Board - I2 Archive - Programming - VB encrypting files


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.006 seconds.