PDA

View Full Version : USB device recognition/hardware number with VB.NET



Entity_Razer
09-28-2006, 11:09 AM
Well i'm making a program for a client, now the client requested if it was possible to use a USB key to use as a security lock for his application (concerns databases for his bussness etc.)

And i told'm i'd look into it. now i don't want to work with files that need to be present or whatever but i'm looking if it's possible to do:

Get the hardware number for a specific USB stick.
Contact the USB stick from Visual Basic code out (and have it poll like every 30 seconds if its still there)
Connect to the USB stick to read/write via that key.

Now the idea is to have a few "certified" USB sticks working with the program so it'd need to be able to check the ports and look for any of the sticks that are recognized as certified.

The idea is to use the hardware adress of the sticks as a pasword and then put encrypted partitions on it and have the program write it's database etc onto that. So that the stick serves as both a encrypted storage device as a key.

Can this be done?

and if so, how?


Thanks for the help

crodan85
10-13-2006, 04:37 AM
Might want to look at this
http://www.ftdichip.com/Products/FT245R.htm

It seems that it should not be hard to implement and could be very cheap as I would imagine commercial versions are not.