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 | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Dragato

Goomba
Level: 9

Posts: 15/25
EXP: 3053
For next: 109

Since: 03-15-04
From: England

Since last post: 517 days
Last activity: 339 days
Posted on 04-09-04 10:01 PM Link | Quote
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.
Tuvai
Permanently banned for account hacking.
Level: 24

Posts: 176/211
EXP: 74894
For next: 3231

Since: 03-15-04

Since last post: 566 days
Last activity: 339 days
Posted on 04-10-04 12:07 AM Link | Quote
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

Goomba
Level: 9

Posts: 16/25
EXP: 3053
For next: 109

Since: 03-15-04
From: England

Since last post: 517 days
Last activity: 339 days
Posted on 04-10-04 12:22 AM Link | Quote
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
Permanently banned for account hacking.
Level: 24

Posts: 178/211
EXP: 74894
For next: 3231

Since: 03-15-04

Since last post: 566 days
Last activity: 339 days
Posted on 04-10-04 12:46 AM Link | Quote
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

Goomba
Level: 9

Posts: 17/25
EXP: 3053
For next: 109

Since: 03-15-04
From: England

Since last post: 517 days
Last activity: 339 days
Posted on 04-10-04 01:45 AM Link | Quote
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
Permanently banned for account hacking.
Level: 24

Posts: 179/211
EXP: 74894
For next: 3231

Since: 03-15-04

Since last post: 566 days
Last activity: 339 days
Posted on 04-10-04 03:29 AM Link | Quote
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.
Darth Coby

Vire
Dacht je nou echt dat het over was?
Dacht je nou echt dat ik gebroken was? Nee toch?
Nou kijk eens goed op uit je ogen gast.
zonder clic heb je geen kloten tjap... bitch
Level: 55

Posts: 455/1371
EXP: 1240774
For next: 73415

Since: 03-15-04
From: Belgium

Since last post: 2 days
Last activity: 9 hours
Posted on 04-10-04 03:34 AM Link | Quote
For Database kind of work you could use INI files. They're easy to use once you get used to the API.
Tuvai
Permanently banned for account hacking.
Level: 24

Posts: 181/211
EXP: 74894
For next: 3231

Since: 03-15-04

Since last post: 566 days
Last activity: 339 days
Posted on 04-10-04 03:37 AM Link | Quote
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

Vire
Dacht je nou echt dat het over was?
Dacht je nou echt dat ik gebroken was? Nee toch?
Nou kijk eens goed op uit je ogen gast.
zonder clic heb je geen kloten tjap... bitch
Level: 55

Posts: 458/1371
EXP: 1240774
For next: 73415

Since: 03-15-04
From: Belgium

Since last post: 2 days
Last activity: 9 hours
Posted on 04-10-04 03:47 AM Link | Quote
Yes, but they get the job done.
dan

Snap Dragon
Level: 43

Posts: 38/782
EXP: 534516
For next: 30530

Since: 03-15-04

Since last post: 20 hours
Last activity: 14 hours
Posted on 04-10-04 05:22 AM Link | Quote
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

Vire
Dacht je nou echt dat het over was?
Dacht je nou echt dat ik gebroken was? Nee toch?
Nou kijk eens goed op uit je ogen gast.
zonder clic heb je geen kloten tjap... bitch
Level: 55

Posts: 469/1371
EXP: 1240774
For next: 73415

Since: 03-15-04
From: Belgium

Since last post: 2 days
Last activity: 9 hours
Posted on 04-10-04 05:29 AM Link | Quote
Well then you could write your own INI file routine.
Tuvai
Permanently banned for account hacking.
Level: 24

Posts: 183/211
EXP: 74894
For next: 3231

Since: 03-15-04

Since last post: 566 days
Last activity: 339 days
Posted on 04-10-04 01:55 PM Link | Quote
INI files are NOT meant for database storage, period.
Cellar Dweller

Flurry
!!!
Level: 27

Posts: 35/269
EXP: 107817
For next: 8342

Since: 03-15-04
From: Arkansas

Since last post: 16 days
Last activity: 34 min.
Posted on 04-11-04 09:46 AM Link | Quote
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.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
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.015 seconds.