Method and apparatus for identifying device in network
暂无分享,去创建一个
Embodiments of the present invention provide a method and an apparatus for identifying a device in a network. The method comprises: performing preset function operation on an original network code of a first device to obtain a first network code code1 and broadcast the code1, recording a device capable of communicating with the first device or a device capable of communicating with a second device in a whitelist, and storing the whitelist and the original network code of the first device in a server, so that the second device can obtain the original network code of the first device from the server; and performing the same preset function operation on the original network code to obtain a second network code code2, comparing the second network code code2 and the first network code code1, and when the two are the same, determining that the first device is a target device of the second device, which prevents other devices that do not belong to the whitelist of the first device from obtaining the original network code of the first device, thereby ensuring the security of the first device.