问题描述
我需要从一台PC生成一个唯一的代码,我的软件将通过许可证分发,在本地我需要识别环境并将此代码发送到服务器。
我不想在服务器上保留一个序列号,每个客户端收到一些序列,我试图从NetworkInterfaces读取MAC地址,但不安全,用户可以轻松更改MAC地址。
我认为最好的方法是可以读取主板的序列号,但直到现在我还没有找到方法。
任何消化?
I need to generate a unique code from a single PC, my software will be distribute by licence, and locally I need to identify the environment and send this code to the server.I don't want to mantain on the server a sequencial number and each client recieve a number of the sequence, i tried to read the MAC adress from NetworkInterfaces, but is not secure, the user can change easily the MAC adress.The best way I think if its possible to read the motherboard serial number, but I haven't found the way until now.Any sugestion?
推荐答案
你的软件价值多少?
目标市场盗版软件是否很多?
Does the target market pirate software a lot ?
使用WMI的Windows机箱上可以读取主板序列号
Motherboard serial number reading is possible on Windows boxes using WMI
使用WMI读取序列号
Use WMI to read serial numberhttp://www.c-sharpcorner.com/UploadFile/GemingLeader/mb-sn-wmi08242009101325AM/mb-sn-wmi.aspx
使用Java
中的WMI
WMI在AD上的Windows XP域成员上被破坏了域,如果他们使用组策略。
WMI is/was a broken on Windows XP domain members on a AD Domain, if they use group policies.
(这只影响XP的大多数企业用户,所以没什么大不了的)
( This only effects most corporate users of XP, so not a big deal)
希望这有助于位(MAC地址更简单......但很容易更改)
Hope this helps a bit ( MAC address is simpler... but is easy to change)
这篇关于基于Java的独特计算机ID硬件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!