Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
Originally posted by CobyIni 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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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. |
| ||
Originally posted by Dragato 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 | | | |