本文介绍了可识别的USB存储设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试找到一个方面可以进行编程的USB存储设备?

例如一个EPROM组件,它使您可以更改型号/序列号或其他未存储在文件系统中的信息.甚至是一种在文件系统中隐藏信息的方法,而传统的文件复制/磁盘克隆方法无法访问这些信息.

我们有一个脱机数据传输过程,并且希望通过限制软件使其只能与我们为该过程提供的USB存储设备一起使用来限制/许可使用.

Hi,

I''m trying to find a USB storage device where there is an aspect which is programmable?

Such as an EPROM component to allow you to change the model/serial number or another piece of information which isn''t stored within the file system. Or even a way to hide information within the file system which can''t be accessed by traditional file copying/disk cloning methods.

We have an offline data transfer process and would like to restrict/license the use by limiting the software to only work with the USB storage devices that we provide for the process.

推荐答案

ManagementObjectSearcher mos = new ManagementObjectSearcher("select model from Win32_DiskDrive");

对该值进行加密并将其存储在资源文件中.
运行程序时,只需检查具有可接受名称的磁盘即可.
您可以添加诸如VendorID,PrductID等的更多详细信息.如果您购买了足够多的商品,制造商可能会为您更改ProductID-这样您就安全了.

encrypt that value and store it in a Resource file.
When you run your program, just check that a disk with an acceptable name is available.
You could add further details like VendorID, PrductID etc. If you purchase enough items, a manufacturer might change the ProductID for you - and then you are on the safe side.


这篇关于可识别的USB存储设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 15:47