This article is a mirror article of machine translation, please click here to jump to the original article.

View: 23168|Reply: 2

[Source] .net/c# to obtain the machine's unique identifier

[Copy link]
Posted on 5/23/2017 2:23:32 PM | | |

preface
In the process of client authentication, we always have to obtain the unique identification information of the client, once thought that the MAC address would not change, but now various changes, especially the use of wireless Internet cards, the MAC address is plugged in and changed once, so it is meaningless to use MAC in this way

Principle
Generate a unique identifier by obtaining the ID of the motherboard, processor, BIOS, mac, graphics card, hard disk, etc

suggested
1. Use those modules that are not replaced frequently to generate identification codes.

2. If you frequently replace MAC, graphics card, and hard drive, do not use these IDs.

3. Make sure to use static variables to save unique identifiers throughout the application.

realized
Supplement
Now I encounter some simple models such as tablets, and all the device IDs obtained are the same (except mac), and finally I have to generate a logo of the software itself locally, and then attach it every time I calculate the logo, so that it will not be repeated again.

The code is as follows:


The file can be set to hide and other means to prevent users from misoperation.




Previous:[Spring.Data.Common.dbproviders.xml] line 766
Next:C# Mini Program for Operating MySQL 5.7 [Source Code]
Posted on 11/12/2022 1:37:17 PM |
Save for later use
Posted on 11/30/2022 3:07:54 PM |
Thank you for sharing, learning
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com