以编程方式与Flash Drive通信 [英] Communicating with Flash Drive Programmatically

查看:96
本文介绍了以编程方式与Flash Drive通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个在闪存驱动器中运行的便携式应用程序,它可以锁定闪存驱动器并限制对它的访问。当用户尝试打开闪存驱动器时,它将提示输入密码。



如何以编程方式与闪存驱动器进行通信,我更喜欢使用c或java作为编程语言,提前谢谢

解决方案

答案是你不能。



通常的闪存驱动器是被动设备。这意味着您在插入时无法强制执行,并且您无法限制访问。

唯一的希望是仅在驱动器上存储加密文件。



否则,您必须使用有源设备。这意味着该驱动器嵌入了一个控制I / O的μ处理器。在您提供密码之前,它将禁止访问。存在这样的设备但是容量和价格与通常的无源设备不同。



任何窗口都有一个设置来防止在插件上自动执行。

I want to create a portable apps that runs in flash drives that will have the capability to lock the flash drive and restrict access to it. As the user tries to open the flash drive, it will prompt for a password.

how can i communicate with the flash drive progammatically and preferrably i want to use c or java as a programming language thank you in advance

解决方案

The answer is NO you can't.

Usual flash drives are passive devices. This imply that you can't enforce an execute as you plug it, and you can't restrict access.
the only hope is to store only encrypted files on the drive.

Otherwise, you must use an active device. That means that the drive embed a µ-processor that control I/O. It will forbid access until you give the password. Such devices exist but capacity and pricing are not the same as usual passive devices.

Any windows have a setting to prevent any automatic execution on plug-in.


这篇关于以编程方式与Flash Drive通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆