How to get the unique machine identification code of the computer?

Each computer has its own unique machine identification code when it leaves the factory. This ID is unique like our ID card, so what is the use of this machine identification code?
When we download software on the Internet, we often encounter the case of entering the registration code. For the registration code, many softwares now do not distinguish the machine from the registration code, that is to say, a correct registration code is on the computer of A You can register on the computer, and you can also register on the computer of B, but there will be a problem, that is, if a computer master cracks the calculation rule of the registration code, a series of correct registration codes can be generated, and as long as one of them is registered Code can allow all users to successfully "baishen" this software, is the software development company not losing money?
For this reason, there are also many software registration codes that use the machine identification code of the computer. We all know that the machine identification code of each computer is different. If the registration code is calculated based on the machine identification code, it can effectively avoid the situation of registering all computers with a correct registration code.
Not only the existing software on the Internet, if you write a program, and you want you to manage the user's use rights, you can also use the computer's unique machine identification code to achieve.
Specific implementation ideas are as follows:
compute computer a unique machine identifier when the program begins, the identification code as plain text and get a unique registration code by some calculations, the plaintext presented to the user and prompt the user to apply your registration code
management side can write Registration code calculation program registration machine, when the user applies for the registration code, you can decide whether to give him the registration code to run your program, because this plain text is the only machine code corresponding to the user's computer, so if he uses your The registration code of other people cannot be decrypted normally. Only by obtaining the registration code generated by the encryption of the only machine code belonging to his computer can you use your program normally. In this way, you can do "one machine one "Code", "easy management".
There are a lot of ready-made codes for the acquisition of machine code. CSDN and Blog Park, you can view and study by yourself, I give the compiled exe program for everyone to use directly
Link: https://pan.baidu.com/s/18QxBwGAfxeZgAiA-CQDVeA
extraction code: s5q7

Published 4 original articles · Likes0 · Visits 242

Guess you like

Origin blog.csdn.net/weixin_44735156/article/details/105605451