Read usb drive

I want an api or function to read a usb drive. Basically  the drive should contain an encrypted password so the user is not able to read it.

The drive when inserted in the pc the user should get prompted to enter a password and match that one in the drive.
LVL 4
Moizsaif123Asked:
Who is Participating?
 
Amit KhilnaneyConnect With a Mentor Commented:
You can use vb.net or C# via visual studio.net. since you are already familiar with vb6.0 you will be able to easily code it via vb.net in visual studio.

Try going through the basics of vb.net on msdn.
0
 
Martin LissOlder than dirtCommented:
I've never used it but this looks interesting.
0
 
Moizsaif123Author Commented:
sorry i didnt mention to implement it on my own. if i can have code in vb and have a executable and run it.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
Martin LissConnect With a Mentor Older than dirtCommented:
Okay, but it's free so why reinvent the wheel? (I'm just making a point and I don't expect an answer)
0
 
tmenascoCommented:
I have some tech's that like BitLocker.

http://en.wikipedia.org/wiki/BitLocker_Drive_Encryption

I personally don't care for the interface much on machines that don't natively support it, but it does encrypt the drive.
0
 
Moizsaif123Author Commented:
since i can customize it myself in future. Client can expect to have any modification and I am looking to code it myself.
0
 
Martin LissOlder than dirtCommented:
What version of VB are you using?
0
 
Amit KhilnaneyCommented:
This may be possible.

You can use a software called from
http://www.truecrypt.org/

Open in new window



and read it through a method explained here

http://stackoverflow.com/questions/1315677/is-there-an-way-to-programatically-read-a-file-from-a-truecrypt-disk-into-memory

Open in new window

0
 
Moizsaif123Author Commented:
im using vb 6.0, above is the post for c++. Since Im new to it, what c program interface should i use to execute the code
0
 
Moizsaif123Author Commented:
just some questions on the code line below

class TrueCrypeStart
    {
        static void Main(string[] args)


im assuming the string argument is the filepath used to mount the file from the drive. Is that so? Is the filepath hardcoded in the code below in mount info? can i have an example...

tc.StartInfo.Arguments = string.Format("/v \"{0}\" /p \"{1}\" /q", ...mount info ..., password); // for quiet!
0
 
Moizsaif123Author Commented:
im going to redirect my question to another forum, since i got the answer that i needed here
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.