MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= PC, Desktop and Laptop Support =---------- > Software
Register FAQ Members List Calendar Casino Mark Forums Read

Software Software such as operating systems like Windows XP, Windows Vista, Windows 7 etc., or specific programs.


Reply
 
Thread Tools Display Modes
  #1  
Old 08-05-12, 04:03
red death68's Avatar
red death68 red death68 is offline
Command Sergeant Major
 
Join Date: Dec 2008
Location: my own lil world
Posts: 910
Thanks: 18
Thanked 32 Times in 29 Posts
Default need help writing a program

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"
Reply With Quote
Sponsored links
  #2  
Old 08-05-12, 06:40
GermanOne's Avatar
GermanOne GermanOne is offline
Major Geek's Coding Genius Extraordinaire
 
Join Date: Feb 2009
Location: Thuringia / Germany
Posts: 317
Thanks: 4
Thanked 72 Times in 68 Posts
Default Re: need help writing a program

Quote:
Originally Posted by red death68 View Post
Problem is I want the program to run on linux, windows, and mac.
Well, there are cross-platform languages like C++ or Java, but other guys already spent years to develop a good encryption software. Why to reinvent the wheel?
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
Reply With Quote
  #3  
Old 08-09-12, 20:26
red death68's Avatar
red death68 red death68 is offline
Command Sergeant Major
 
Join Date: Dec 2008
Location: my own lil world
Posts: 910
Thanks: 18
Thanked 32 Times in 29 Posts
Default Re: need help writing a program

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"
Reply With Quote
  #4  
Old 08-10-12, 01:46
PC-XT's Avatar
PC-XT PC-XT is offline
Master Sergeant
 
Join Date: Oct 2007
Location: on a farm
Posts: 645
Thanks: 27
Thanked 80 Times in 74 Posts
Default Re: need help writing a program

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);
Reply With Quote
  #5  
Old 08-11-12, 08:00
GermanOne's Avatar
GermanOne GermanOne is offline
Major Geek's Coding Genius Extraordinaire
 
Join Date: Feb 2009
Location: Thuringia / Germany
Posts: 317
Thanks: 4
Thanked 72 Times in 68 Posts
Default Re: need help writing a program

@PC-XT -- ACK.

I won't advertize but the reason why I suggest to use TrueCrypt anyway instead of writing your own:
Quote:
Files can be copied to and from a mounted TrueCrypt volume just like they are copied to/from any normal disk (for example, by simple drag-and-drop operations). Files are automatically being decrypted on the fly (in memory/RAM) while they are being read or copied from an encrypted TrueCrypt volume. Similarly, files that are being written or copied to the TrueCrypt volume are automatically being encrypted on the fly (right before they are written to the disk) in RAM.
That also protects you from losing data due to a power interrupt.

Regards
aGerman
Reply With Quote
Sponsored links
  #6  
Old 08-11-12, 12:32
PC-XT's Avatar
PC-XT PC-XT is offline
Master Sergeant
 
Join Date: Oct 2007
Location: on a farm
Posts: 645
Thanks: 27
Thanked 80 Times in 74 Posts
Default Re: need help writing a program

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);
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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 Software 1 05-20-09 10:13
Need help writing a program Jacobdet Software 1 10-22-07 10:10
dvd writing program art2d2 Software 7 10-06-07 20:43


All times are GMT -5. The time now is 22:36.

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds


All content Copyright MajorGeeks.com source code Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger