Method and system for facilitating terminal identifiers
Embodiments of the present application disclose a method for providing a terminal identifier to a terminal. During operation, a security server receives a registration information set from the terminal, in which the registration information set includes multiple pieces of equipment information from the terminal. The security server then generates a terminal identifier based on the multiple pieces of equipment information in the registration information set. The security server then returns the terminal identifier to the terminal.
1. A computer-implemented method for providing a terminal identifier, comprising:
receiving, by a security server, a registration information set from a terminal that includes multiple pieces of terminal equipment, wherein the registration information set comprises a first set of equipment-related information associated with the multiple pieces of terminal equipment;
generating a terminal identifier based on the first set of equipment-related information associated with the multiple pieces of terminal equipment and a key of the security server;
receiving an authentication information set from the terminal, wherein the authentication information set comprises a second set of equipment-related information associated with the multiple pieces of terminal equipment;
searching through a plurality of mapping relationships between information sets and terminal identifiers for one or more information sets that have similarity exceeding a predetermined threshold with the authentication information set, wherein a respective mapping relationship maps a respective information set to a terminal identifier;
selecting, from a plurality of terminal identifiers, a terminal identifier mapped from an information set that has similarity exceeding the predetermined threshold with the authentication information set; and
returning the selected terminal identifier to the terminal.
2. The method of claim 1 , wherein generating the terminal identifier further comprises:
generating a character string based on the first set of equipment-related information associated with the multiple pieces of equipment;
generating a signature based on the character string and the key of the security server;
generating the terminal identifier based on the character string and the signature, and
storing data indicating a corresponding mapping relationship between the terminal identifier and the registration information set.
3. The method of claim 1 , further comprising:
sending the terminal identifier to the terminal at a plurality of predetermined time slots.
4. The method of claim 1 , further comprising:
receiving a second authentication information set from the terminal;
updating the information set using information from the second authentication information set;
receiving a new authentication information set;
searching through the plurality of mapping relationships for the information set that matches the new authentication information set; selecting the terminal identifier mapped from the information set;
and
returning the terminal identifier to the terminal.
5. The method of claim 1 , further comprising:
determining that that the second set of equipment-related information of the authentication information set is different from the first set of equipment-related information of the registration information set;
based on the determination, storing data representing the second set of equipment-related information of the authentication information set; and
storing data representing a new mapping relationship between the second set of equipment-related information and the terminal identifier, wherein the terminal identifier is generated based on the first set of equipment-related information of the registration information set.
6. The method of claim 1 , wherein searching through the plurality of mapping relationships further comprises using the authentication information set comprising the second set of equipment-related information associated with the multiple pieces of terminal equipment as a search key.
7. A device for providing a terminal identifier, comprising:
one or more processors;
a memory; and
a non-transitory computer-readable medium coupled to the one or more processors storing instructions stored that, when executed by the one or more processors, cause the device to perform a method for providing a terminal identifier, comprising:
receiving, by a security server, a registration information set from a terminal that includes multiple pieces of terminal equipment, wherein the registration information set comprises a first set of equipment-related information associated with the multiple pieces of terminal equipment;
generating a terminal identifier based on the first set of equipment-related information associated with the multiple pieces of terminal equipment and a key of the security server;
receiving an authentication information set from the terminal, wherein the authentication information set comprises a second set of equipment-related information associated with the multiple pieces of terminal equipment;
searching through a plurality of mapping relationships between information sets and terminal identifiers for one or more information sets that have similarity exceeding a predetermined threshold with the authentication information set, wherein a respective mapping relationship maps a respective information set to a terminal identifier;
selecting, from a plurality of terminal identifiers, a terminal identifier mapped from an information set that has similarity exceeding the predetermined threshold with the authentication information set; and
returning the selected terminal identifier to the terminal.
8. The device of claim 7 , wherein generating the terminal identifier further comprises:
generating a character string based on the first set of equipment-related information associated with the multiple pieces of equipment information in the registration information set;
generating a signature based on the character string and the key of the terminal identifier providing device;
generating the terminal identifier based on the character string and the signature, and
storing data indicating a corresponding mapping relationship between the terminal identifier and the registration information set.
9. The device of claim 7 , wherein the method further comprises:
sending the terminal identifier to the terminal at a plurality of predetermined time slots.
10. The device of claim 7 , wherein the method further comprises:
receiving a second authentication information set from the terminal;
updating the information set using information from the second authentication information set;
receiving a new authentication information set;
searching through the plurality of mapping relationships for the information set that matches the new authentication information set;
selecting the terminal identifier mapped from the information set; and
returning the terminal identifier to the terminal.
11. A non-transitory computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for providing a terminal identifier, the method comprising:
receiving, by a security server, a registration information set from a terminal that includes multiple pieces of terminal equipment, wherein the registration information set comprises a first set of equipment-related information associated with the multiple pieces of terminal equipment;
generating a terminal identifier based on the first set of equipment-related information associated with the multiple pieces of terminal equipment and a key of the security server;
receiving an authentication information set from the terminal, wherein the authentication information set comprises a second set of equipment-related information associated with the multiple pieces of terminal equipment;
searching through a plurality of mapping relationships between information sets and terminal identifiers for one or more information sets that have similarity exceeding a predetermined threshold with the authentication information set, wherein a respective mapping relationship maps a respective information set to a terminal identifier;
selecting, from a plurality of terminal identifiers, a terminal identifier mapped from an information set that has similarity exceeding the predetermined threshold with the authentication information set; and
returning the selected terminal identifier to the terminal.
12. The storage medium of claim 11 , wherein generating the terminal further comprises:
generating a character string based on the first set of equipment-related information associated with the multiple pieces of equipment;
generating a signature based on the character string and key of the security server; and
generating the terminal identifier based on the character string and the signature, and
storing data indicating a corresponding mapping relationship between the terminal identifier and the registration information set.
13. The storage medium of claim 11 , wherein the method further comprises:
sending the terminal identifier to the terminal at a plurality of predetermined time slots.
14. The storage medium of claim 11 , wherein the method further comprises:
receiving a second authentication information set from the terminal;
updating the information set using information from the second authentication information set;
receiving a new authentication information set;
searching through the plurality of mapping relationships for the information set that matches the new authentication information set; selecting the terminal identifier mapped from the information set;
and
returning the terminal identifier to the terminal.