Hardware fingerprint-Based Software Encryption and registration technology-obtain the hard disk physical serial number, CPU serial number, Nic MAC address, BIOS serial number, and motherboard serial number

Source: Internet
Author: User
In software encryption protection technology, a common protection method is license authorization based on hardware fingerprint. This article will introduce the specific hardware fingerprint acquisition technology in detail and provide a demo source code program.

Hardware fingerprint encryption means that after a user obtains and installs the software for free, the software obtains some hardware information (such as the hard disk serial number and BOIS serial number) from the user's machine ), then, bind the information with user authorization to generate a hardware signature. The user must submit the signature to the software provider or developer. The software developer uses the registration machine (software) generate the registration number of the software and send it to the user. Through this registration number, the user can activate the local authorization license. Although Software Encryption is weaker than hardware encryption, Software Encryption has advantages such as low cost and convenient use, which is widely used in low-cost shared software.

The key to hardware fingerprint encryption is the acquisition of computer hardware information. We need to read the machine identification one by one through a program and use certain algorithms to restrict user authorization based on the machine identification.

Common hardware resource package: Hard Disk Physical serial number, CPU serial number, Nic MAC address, BIOS serial number, and motherboard serial number. If your hardware information changes, for example, if the network card or other hardware is replaced, the system determines according to a certain proportion. For example, if 2/3 of the hardware information does not change, it indicates the same user.

The following is a demo program that uses VB to call Windows WMI to obtain hardware fingerprints. You can simply save it as a VBS suffix file. You can apply the software in the shared software with a slight modification to implement the software protection function using the registration code.

MsgValue = ""
Set ob1_miservice = GetObject ("winmgmts: //./root/cimv2 ")
'Get the hard drive serial number
Set colItems = obw.miservice. ExecQuery ("SELECT * FROM Win32_PhysicalMedia", 48)
For Each objItem In colItems
Msgvalue = msgvalue & vbcrlf & "Hard Disk =" & objitem. serialnumber
Next
'Obtain the motherboard serial number
Set colitems = ob1_miservice. execquery ("select * From win32_baseboard", 48)
For each objitem in colitems
Msgvalue = msgvalue & vbcrlf & "motherboard =" & objitem. serialnumber
Next
'Obtain the CPU ID
Set colitems = obw.miservice. execquery ("select * From win32_processor", 48)
For each objitem in colitems
Msgvalue = msgvalue & vbcrlf & "CPU =" & objitem. processorid
Next
'Obtain the BIOS serial number
Set colItems = obw.miservice. ExecQuery ("Select * from Win32_BIOS", 48)
For Each objItem In colItems
MsgValue = MsgValue & vbCrLf & "BIOS =" & objItem. SerialNumber
Next
'Obtain the nic mac address
Set colItems = ob1_miservice. ExecQuery ("SELECT MACAddress FROM Win32_NetworkAdapter WHERE (MACAddress Is Not NULL) AND (Manufacturer <> 'Microsoft ')", 48)
For Each objItem In colItems
MsgValue = MsgValue & vbCrLf & "Nic =" & objItem. MACAddress
Next
Wscript. Echo MsgValue

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.