![]() |
IOBit Software
|
|
|
||||||
| Programming Place to discuss programming including HTML, Java, C++, MySQL and others. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
I want to write a program that can protect my external drive from being accessed without a password.
I want to make it run when the external drive is plugged into the usb port, and then not allow it to be closed. The program should prompt for a password and if it isn't entered or entered incorrectly will not allow access to the drive. Problem is I want the program to run on linux, windows, and mac. I know this is alot to ask so here is what i need to know: What language to use(I'm not object to learning a new language for this as I know some java and batch scripting language.) how would i implement the stop access feature and not allow the program to be closed by any means? how would I make this program run when the drive is plugged in? all help welcome thank you very much in advance!
__________________
"there are 2 kinds of crazy one makes life livable the other gets you the chair" |
| Sponsored links |
|
|
|
#2
|
||||
|
||||
|
Quote:
Check this out: TrueCrypt You have to encrypt the data because otherwise the files could be accessed with other operating systems... Note: Programming languages can be cross-platform -- the compiled binaries aren't since different operating systems work differently. You have to choose one. Regards GermanOne |
|
#3
|
||||
|
||||
|
thanks german i figured you would post sorry for lte reply i havnt been to a computer since the 5th....
I would still like to make the program for the experience as well as the challange so any advice is welcome as for true crypt i checked it out a few years ago but it has been a while so i will check it out again
__________________
"there are 2 kinds of crazy one makes life livable the other gets you the chair" |
|
#4
|
||||
|
||||
|
Here are my thoughts, if I were doing this, for what it's worth:
Definitely encrypt the drive. There is no way to absolutely guarantee your program will run. Even drives with access protections in the hardware can have them circumvented in one way or another if they don't encrypt the information securely. The type and level of encryption would depend on what is best for your situation. Your program(s) would basically just accept a password and use it to decrypt information it reads from the drive, probably putting it into a form your OS can understand at some point. I would probably end up writing different programs for the different OSs, though Java could possibly be used in a limited way to cross platforms if you basically just want to copy files or do other operations in your program, without using the OS to directly access the drive. If you want to use the OS for disk operations, you need code written for that OS to tell it how to understand the drive. If it tries to use the drive, anyway, you get errors or data corruption.
__________________
I.think(code); I.eat(code.spaghetti); |
|
#5
|
||||
|
||||
|
@PC-XT -- ACK.
I won't advertize but the reason why I suggest to use TrueCrypt anyway instead of writing your own: Quote:
Regards aGerman |
| Sponsored links |
|
|
|
#6
|
||||
|
||||
|
Yes, I think TrueCrypt does a good job, and would use it before I would try to write my own. TrueCrypt is complete and developed. It's a big job to write something similar, and would take a while to achieve the necessary functionality. I would only write my own as a learning experience, but for actual usage, I'd usually go with TrueCrypt, even if my own is functional. A lot of thought and testing has gone into it that would be hard for one person to achieve.
One more important thought: For things like this, you will need to be careful of data corruption. If there is anything on the drive you want, work with a copy of the drive, not the original.
__________________
I.think(code); I.eat(code.spaghetti); |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Backup programs having probs writing image to ext hd, including windows own program?? | icekool | Software | 11 | 07-11-10 05:29 |
| cd writing help | griggi63 | Software | 3 | 06-04-09 21:40 |
| C# writing | Recycle Bin | Programming | 1 | 05-20-09 10:13 |
| Need help writing a program | Jacobdet | Programming | 1 | 10-22-07 10:10 |
| dvd writing program | art2d2 | Software | 7 | 10-06-07 20:43 |