Identification generation method, identification query method, device and storage medium
By encrypting and generating a secure identifier from mobile phone number, private network IP, and regional code, the method addresses IMEI tampering and misuse, ensuring secure and compliant user/device identification.
Patent Information
- Application Number
- CN202210500954.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-10
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2042-05-10
AI Technical Summary
Existing device identification codes such as IMEI are often tampered with or misused, leading to economic losses and challenges in device traceability and user privacy protection.
A method involving the extraction of target fields including mobile phone number, private network IP, regional code, and IMEI, followed by encryption with variable factors to generate a secure target identifier, which is stored in a library for secure user or device identification.
The method ensures secure and tamper-proof identification of users or devices, complying with privacy regulations and meeting industry needs by avoiding tampering and impersonation.
Smart Images

Figure CN114915963B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of identification generation, and in particular to an identification generation method, an identification query method, a device and a storage medium. Background Art
[0002] With the explosive growth of mobile Internet applications, the identity identification of hundreds of millions of users and a safe and reliable network environment have always been internationally recognized problems that have been studied and solved in the development of mobile Internet.
[0003] In many scenarios, traditional device identification codes such as the International Mobile Equipment Identity (IMEI) are often tampered with or misused, causing economic losses to device manufacturers and having a significant impact on device traceability.
[0004] Therefore, when IMEI is used as a device identification code, there is a risk of being tampered with or misused. Summary of the invention
[0005] The present application provides an identification generation method, an identification query method, an apparatus and a storage medium to solve the problem that the device identification code is tampered with or misused.
[0006] In a first aspect, the present application provides a method for generating an identifier, comprising:
[0007] Get the user's target information data.
[0008] According to the target information data, the target fields are extracted; among them, the target fields include mobile phone number, private network IP, regional code, IMEI and base station number.
[0009] The target field is encrypted to obtain a target identifier, and the target identifier is stored in a target identifier library.
[0010] Optionally, the target field is encrypted to obtain a target identifier, including:
[0011] The target field is adjusted by the first variable factor and the second variable factor to obtain a target identifier; wherein the first variable factor and the second variable factor are used to encrypt the target field.
[0012] Optionally, adjusting the target field by a first variable factor and a second variable factor to obtain a target identifier includes:
[0013] Select at least one field in the target field, adjust the at least one field by the first variable factor corresponding to each field, and obtain the first identifier corresponding to each field; wherein, at least one field includes a mobile phone number, or at least one field includes a mobile phone number and one or more of the following: private network IP, regional code, IMEI or base station number.
[0014] The first identifiers corresponding to the at least one field are coupled to obtain a second identifier.
[0015] The second identifier is adjusted by the second variable factor to obtain the target identifier.
[0016] Optionally, before obtaining the user's target information data, include:
[0017] The user's first information data is extracted from the source information data, and the first information data is standardized to obtain the user's second information data.
[0018] The second information data is stored in the information database according to the timestamp of the second information data.
[0019] Optionally, storing the second information data in an information database according to the timestamp of the second information data includes:
[0020] According to the preset field in the second information data, it is determined whether the information data corresponding to the user has been stored in the information database.
[0021] If not, the second information data is stored in the information database, and the second information data is determined as the target information data.
[0022] If so, compare the timestamps of the second information data and the stored information data. If the timestamp of the second information data is later than the timestamp of the stored information data, store the second information data in the information database and determine the second information data as the target information data; if the timestamp of the second information data is earlier than the timestamp of the stored information data, do not store the second information data and determine the stored information data as the target information data.
[0023] In a second aspect, the present application provides an identification query method, comprising:
[0024] Get the query request of the application development server; the query request includes the user's private network IP and region code.
[0025] According to the private network IP and regional code in the query request, the user's target identifier is queried from the target identifier library, and the target identifier is sent to the application development server; wherein the target identifier is obtained after encrypting the target field, and the target field includes the mobile phone number, private network IP, regional code, IMEI and base station number.
[0026] In a third aspect, the present application provides an identification generation device, including:
[0027] The acquisition module is used to obtain the user's target information data.
[0028] The extraction module is used to extract the target field according to the target information data; wherein the target field includes the mobile phone number, private network IP, regional code, IMEI and base station number.
[0029] The generation module is used to encrypt the target field, obtain the target identifier, and store the target identifier in the target identifier library.
[0030] Optionally, the generation module is specifically used for:
[0031] The target field is adjusted by the first variable factor and the second variable factor to obtain a target identifier; wherein the first variable factor and the second variable factor are used to encrypt the target field.
[0032] Optionally, the generation module is specifically used for:
[0033] Select at least one field in the target field, adjust the at least one field by the first variable factor corresponding to each field, and obtain the first identifier corresponding to each field; wherein, at least one field includes a mobile phone number, or at least one field includes a mobile phone number and one or more of the following: private network IP, regional code, IMEI or base station number.
[0034] The first identifiers corresponding to the at least one field are coupled to obtain a second identifier.
[0035] The second identifier is adjusted by the second variable factor to obtain the target identifier.
[0036] Optionally, the identification generating device also includes a storage module.
[0037] The storage module is used for:
[0038] The user's first information data is extracted from the source information data, and the first information data is standardized to obtain the user's second information data.
[0039] The second information data is stored in the information database according to the timestamp of the second information data.
[0040] Optionally, the storage module is specifically used for:
[0041] According to the preset field in the second information data, it is determined whether the information data corresponding to the user has been stored in the information database.
[0042] If not, the second information data is stored in the information database, and the second information data is determined as the target information data.
[0043] If so, compare the timestamps of the second information data and the stored information data. If the timestamp of the second information data is later than the timestamp of the stored information data, store the second information data in the information database and determine the second information data as the target information data; if the timestamp of the second information data is earlier than the timestamp of the stored information data, do not store the second information data and determine the stored information data as the target information data.
[0044] In a fourth aspect, the present application provides an identification query device, including:
[0045] The acquisition module is used to obtain the query request of the application development server; wherein the query request includes the user's private network IP and regional code.
[0046] The query module is used to query the user's target identifier from the target identifier library according to the private network IP and regional code in the query request, and send the target identifier to the application development server; wherein the target identifier is obtained after encrypting the target field, and the target field includes the mobile phone number, private network IP, regional code, IMEI and base station number.
[0047] In a fifth aspect, the present application provides an electronic device, including: a memory and a processor;
[0048] Memory, used to store computer programs.
[0049] The processor is used to read the computer program stored in the memory and execute the identification generation method of the first aspect according to the computer program in the memory, or to execute the identification query method of the second aspect.
[0050] In a sixth aspect, the present application provides a readable storage medium having a computer program stored thereon, wherein the computer program stores computer execution instructions, which, when executed by a processor, are used to implement an identification generation method as described in the first aspect above, or to implement an identification query method as described in the second aspect above.
[0051] In the seventh aspect, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the identifier generation method of the first aspect above, or is used to implement the identifier query method of the second aspect above.
[0052] The identification generation method, identification query method, device and storage medium provided by the present application obtain the target information data of the user, extract the target field according to the target information data, the target field includes the mobile phone number, private network IP, regional code, IMEI and base station number, encrypt the target field to obtain the target identification, and store the target identification in the target identification library. In this method, the target identification is obtained by encrypting the target field, and the target identification can realize the identification of the user or device under the premise of avoiding tampering or impersonation. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0054] Figure 1 A flowchart of a method for generating an identifier provided in an embodiment of the present application;
[0055] Figure 2 A schematic diagram of a specific generation process of a target identifier provided in an embodiment of the present application;
[0056] Figure 3 A flowchart of a method for generating an identifier provided in an embodiment of the present application;
[0057] Figure 4 A schematic diagram of the structure of an identification generating device provided in an embodiment of the present application;
[0058] Figure 5 A schematic diagram of the structure of an identification query device provided in an embodiment of the present application;
[0059] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0060] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0061] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0062] The technical solution provided in the embodiment of the present application can be applied to the scenario of generating identification, especially to the scenarios of application developers optimizing user's business experience, business risk control, advertising, security management, anti-fraud, etc. With the advent of the era of big data and artificial intelligence, the value of data is gradually increasing, and the use of mobile terminal device identification information such as IMEI, Wi-Fi Media Access Control (Media Access Control, MAC) address, SIM card International Mobile Subscriber Identity (International Mobile Subscriber Identity, IMSI) and Bluetooth address has become a common phenomenon.
[0063] The existing method is to match devices based on device identifiers such as IMEI. In scenarios such as production, after-sales, customs declaration or government random inspections, IMEI is used to identify and inspect devices; in scenarios such as optimizing user business experience, business risk control, advertising, security management or anti-fraud, IMEI is used to obtain user information, judge and measure business results. However, in the field of black and gray industries, IMEI and other device identifiers are often modified in large quantities through massive purchases of hardware devices. When IMEI is used as a device identification code, there is a risk of tampering or misuse, which will have different degrees of impact on IMEI applications in different industries and scenarios.
[0064] In addition, as countries and industry organizations have increasingly higher requirements for user privacy protection, device identifiers such as IMEI have been recognized as user privacy information by some countries. At the same time, due to operating system restrictions, the control of access rights to advertising identifiers (IDFA) and IMEI has been strengthened. As mobile operating systems gradually move towards a closed industry trend, it is difficult for application developers and Internet platform service providers to continue to obtain user-related information, which has also had a certain degree of impact on their push services. Therefore, it is necessary to formulate a desensitized user identification system that complies with national privacy regulations and can meet the needs of different industries to meet the needs of different industries.
[0065] In order to solve the above problems, this application proposes an identification generation method, which obtains the user's target information data, extracts the target field according to the target information data, and the target field includes the mobile phone number, private network IP, regional code, IMEI and base station number, encrypts the target field to obtain the target identification, and stores the target identification in the target identification library. In this method, the target identification is obtained by encrypting the target field, and the target identification can realize the identification of the user or device under the premise of avoiding tampering or impersonation.
[0066] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0067] In the present application, the identification generation method and the identification query method can be executed by an identification generation platform. First, the identification generation platform extracts the user's first information data from the source information data, and standardizes the first information data to obtain the user's second information data, and determines whether the information data corresponding to the user has been stored in the information database according to the preset field in the second information data. If not, the second information data is stored in the information database, and the second information data is determined as the target information data; if so, the timestamps of the second information data and the stored information data are compared. If the timestamp of the second information data is later than the timestamp of the stored information data, the second information data is stored in the information database, and the second information data is determined as the target information data; if the timestamp of the second information data is earlier than the timestamp of the stored information data, the second information data is not stored, and the stored information data is determined as the target information data. Then, the identification generation platform extracts the target field according to the target information data. Finally, the identifier generation platform selects at least one field in the target field, adjusts the at least one field by the corresponding first variable factor, obtains the first identifier corresponding to the at least one field, couples the first identifier corresponding to the at least one field to obtain the second identifier, adjusts the second identifier by the second variable factor to obtain the target identifier, and stores the target identifier in the target identifier library.
[0068] When the application development server wants to obtain the information data of the user or device, it can query the corresponding target identifier in the target identifier library. Specifically, when the application development server wants to obtain the information data of the user or device, first, the application development server sends an acquisition request to the user terminal device. The user terminal device identifies the user's private network IP according to the acquisition request. The user terminal device carries the private network IP to access the authentication service platform. By accessing the authentication service platform, the user's public network IP and the corresponding regional code can be identified, and the private network IP and regional code are sent to the application development server. Then, the application development server sends a query request to the identifier generation platform, which includes the user's private network IP and regional code. The identifier generation platform queries the user's current target identifier in the target identifier library according to the query request initiated by the application development server, the private network IP and the regional code, and returns the target identifier to the application development server. Finally, the application development server can query the corresponding target information data according to the target identifier, and perform application promotion or activation services for the user.
[0069] The identification generation platform and the authentication service platform may be electronic devices, such as terminals or servers; the user terminal device may be a smart device such as a mobile terminal, a tablet computer, a computer or a laptop computer.
[0070] Among them, there is a communication connection between the identification generation platform, the authentication service platform, the user terminal device and the application development server. The communication connection can utilize the network, including various types of wired and wireless networks, such as but not limited to: the Internet, local area network, WIFI, WLAN, cellular communication network (GPRS, CDMA, 2G / 3G / 4G / 5G cellular network) or satellite communication network, etc.
[0071] Figure 1 This is a flow chart of a method for generating an identifier provided in an embodiment of the present application. The method for generating an identifier can be executed by software and / or hardware devices. For example, the hardware device can be an identifier generation platform. For example, see Figure 1 As shown, the identification generation method may include:
[0072] S101. Obtain target information data of the user.
[0073] In this step, the target information data can be understood as information data extracted from the source information data and subjected to standardized processing.
[0074] Exemplarily, before obtaining the user's target information data, the user's first information data is extracted from the source information data, and the first information data is standardized to obtain the user's second information data, and the second information data is stored in the information database according to the timestamp of the second information data.
[0075] The source of the source information data may be diverse, including various information data of users and devices, such as central processing unit (CPU), memory, power, Hypertext Transfer Protocol (HTTP) header, user behavior and other information data.
[0076] Among them, in order to better protect user privacy, the first information data can be understood as information with high user privacy, such as mobile phone number, IMEI, Wi-Fi MAC address, SIM card IMSI, Bluetooth address, private network IP, regional code or base station number, etc. Due to the privacy protection requirements for user information and the limitations of the operating system, it is difficult to collect user information on the terminal side, so some user information with high privacy (such as regional code, base station number, etc.) needs to be collected through the operator's core network elements (such as user plane function (User Plane Function: UPF) or session management function (Session Management Function, SMF), etc.).
[0077] Specifically, first information data with higher user privacy is extracted from source information data including multiple user or device information, and the first information data is set to a unified format to obtain second information data, and the second information data is stored in an information database according to the early or late timestamp of the second information data.
[0078] In this embodiment, first information data with high user privacy is extracted from source information data including multiple user or device information, and the identification generated by this is more difficult to be tampered with, which can better ensure that user privacy is not leaked. In addition, the first information data is set to a unified format and stored, which is convenient for access to the information data.
[0079] Exemplarily, when storing the second information data according to the timestamp of the second information data, it can be determined whether the information data corresponding to the user has been stored in the information database according to the preset field in the second information data. If not, the second information data is stored in the information database, and the second information data is determined as the target information data; if so, the timestamps of the second information data and the stored information data are compared. If the timestamp of the second information data is later than the timestamp of the stored information data, the second information data is stored in the information database, and the second information data is determined as the target information data; if the timestamp of the second information data is earlier than the timestamp of the stored information data, the second information data is not stored, and the stored information data is determined as the target information data.
[0080] Among them, the preset fields in the second information data can be fields such as mobile phone number.
[0081] Among them, under normal circumstances, the timestamp of new information data will be later than the timestamp of the stored information data, but in some abnormal situations, such as network delays, collection problems, etc., the timestamp of new information data may be earlier than the timestamp of the stored information data. This information data is invalid information data.
[0082] Specifically, the mobile phone number in the second information data can be used as a keyword to search in the information database. If no result is retrieved, the information data of the user is not stored in the information database. In this case, the second information data is stored and the second information data is determined as the target information data. If the information data of the user can be retrieved, the information data of the user has been stored in the information database. In this case, the timestamps of the second information data and the stored information data are compared. If the timestamp of the second information data is later than the timestamp of the stored information data, the second information data is stored and the second information data is determined as the target information data. If the timestamp of the second information data is later than the timestamp of the stored information data, it means that the second information data is invalid information data. In this case, the second information data is not stored and the stored information data is determined as the target information data.
[0083] In this embodiment, by retrieving the user's information data keywords in the information database to determine whether the user's information data has been stored, and by determining whether the timestamp is early or late to decide whether to update the stored information data, abnormal information data can be avoided and the accuracy of the stored information data can be guaranteed.
[0084] S102. Extract target fields according to target information data.
[0085] Among them, the target fields include mobile phone number, private IP, regional code, IMEI and base station number.
[0086] S103: Encrypt the target field to obtain a target identifier, and store the target identifier in a target identifier library.
[0087] The target identifier may be understood as a user identifier or a device identifier, which may be used to identify a device or to identify a user and obtain user information.
[0088] Exemplarily, a correspondence may be established between the user's target identifier and the target information data, that is, the corresponding target information data may be queried according to the target identifier.
[0089] Exemplarily, when the target field is encrypted, the target field is adjusted by the first variable factor and the second variable factor to obtain a target identifier.
[0090] Among them, the first variable factor and the second variable factor are used to encrypt the target field. The encryption form can be to insert other characters such as numbers or letters into the field, change one or more characters in the field, delete one or more characters in the field, etc. The specific encryption form is not limited here.
[0091] Specifically, the target field is encrypted by the first variable factor and the second variable factor in turn to obtain a target identifier. In the target identifier, the composition of the target field is not fixed, and after the two encryption processes of the first variable factor and the second variable factor, it can be ensured that the target identifier cannot be tampered with or used fraudulently, which can increase the security of the target identifier.
[0092] Exemplarily, when the target field is adjusted by the first variable factor and the second variable factor, at least one field in the target field is first selected, and the at least one field is adjusted by the first variable factor corresponding to each field to obtain the first identifier corresponding to each field. Then, the first identifier corresponding to each field is coupled to obtain the second identifier. Finally, the second identifier is adjusted by the second variable factor to obtain the target identifier.
[0093] Among them, at least one field includes a mobile phone number, or at least one field includes a mobile phone number and one or more of the following: private network IP, regional code, IMEI or base station number, that is, the selected field includes at least a mobile phone number, then at least one field may include a mobile phone number, or may include a mobile phone number, a private network IP and IMEI, or may include a mobile phone number, a private network IP, a regional code and IMEI, etc. The above fields can be combined according to actual conditions, and the specific content is not limited here.
[0094] The coupling forms may include end-to-end connection or mutual interlacing, and the specific coupling form is not limited here.
[0095] In a possible implementation, the selected at least one field may include a mobile phone number and an IMEI. Figure 2 is a specific generation process of a target identifier, such as Figure 2 As shown, the mobile phone number and IMEI are first encrypted by the corresponding first variable factor to obtain the first mobile phone number identifier and the first IMEI identifier respectively, and then the first mobile phone number identifier and the first IMEI identifier are coupled to obtain the second identifier, and finally the second identifier is encrypted by the second variable factor to obtain the target identifier.
[0096] For example, the mobile phone number in the field is 180XXXX9171, and the IMEI is Q0PXHM2QYT. The encryption form corresponding to the mobile phone number is to insert the number 8 after the third digit in the mobile phone number, and the encryption form corresponding to the IMEI is to insert the letter Z after the fourth digit in the IMEI. The first identifier of the mobile phone number is 1808XXXX9171, and the first identifier of the IMEI is Q0PXZHM2QYT. The coupling form is the tail of the first identifier of the mobile phone number connected to the head of the first identifier of the IMEI, and the second identifier is represented as 1808XXXX9171Q0PXZHM2QYT. The encryption form when the second identifier is encrypted after the second variable factor is to delete the number 1 in the second identifier, and the final target identifier is 1808XXXX97Q0PXZHM2QYT.
[0097] In this embodiment, the composition form of at least one selected field is not fixed, and the encryption form when the encryption process is performed by the first variable factor and the second variable factor can be diverse, and the coupling form when the multiple first identifiers are coupled is also diverse. Therefore, the target identifier obtained by the encryption method has a higher security, which can ensure that the target identifier cannot be tampered with or misused.
[0098] The identification generation method provided in the embodiment of the present application obtains the target information data of the user, extracts the target field according to the target information data, and the target field includes the mobile phone number, private network IP, regional code, IMEI and base station number, encrypts the target field to obtain the target identification, and stores the target identification in the target identification library. In this method, the target identification is obtained by encrypting the target field, and the target identification can realize the identification of the user or device under the premise of avoiding tampering or impersonation.
[0099] Figure 3 This is a flow chart of an identification query method provided in an embodiment of the present application. The identification query method can be executed by software and / or hardware devices. For example, the hardware device can be an identification generation platform. For example, see Figure 3 As shown, the identification query method may include:
[0100] S301: Obtain a query request from an application development server.
[0101] The query request includes the user's private network IP and regional code. The private network IP can be obtained by the application development server sending a request to the user terminal device, and the user terminal device can identify the user's private network IP. The regional code can be obtained by the user terminal device carrying the private network IP to access the authentication service platform after identifying the user's private network IP. The public network IP and the corresponding regional code of the user can be identified by accessing the authentication service platform, and the private network IP and regional code are sent to the application development server.
[0102] S302: According to the private network IP and the regional code in the query request, the target identifier of the user is searched from the target identifier library, and the target identifier is sent to the application development server.
[0103] Among them, the target identifier is obtained after encrypting the target field, which includes mobile phone number, private network IP, regional code, IMEI and base station number.
[0104] Among them, the user's mobile phone number can be obtained based on the user's private network IP and regional code.
[0105] Specifically, according to the query request initiated by the application development server, the current target identifier of the user is queried in the target identifier library according to the private network IP and the regional code, and the target identifier is returned to the application development server.
[0106] For example, when the target identifier is an encrypted field including a mobile phone number and an IMEI, the mobile phone number of the user can be queried based on the user's private network IP and regional code, and then the current target identifier of the user can be queried based on the mobile phone number. For another example, when the target identifier is an encrypted field including a private network IP and / or regional code, the current target identifier of the user can be directly queried based on the private network IP and regional code.
[0107] For example, when the application development server wants to obtain information data of a user or device, it can query the corresponding information data according to the target identifier, and then perform application promotion or activation services for the user. It can also establish an account system based on mobile phone numbers to perform refined operations on users, thereby improving the efficiency and effectiveness of application promotion.
[0108] The identification query method provided in the embodiment of the present application obtains the query request of the application development server, queries the user's target identification from the target identification library according to the private network IP and the regional code in the query request, and sends the target identification to the application development server. In this method, the application development server obtains the target identification according to the private network IP and the regional code query. When the application development server wants to obtain the user's information data, it queries the corresponding user information data according to the target identification, which can ensure that the user's privacy information is not leaked.
[0109] Figure 4 This is a schematic diagram of the structure of an identification generating device 40 provided in an embodiment of the present application. For example, see Figure 4 As shown, the identification generating device 40 includes:
[0110] The acquisition module 401 is used to acquire the user's target information data.
[0111] The extraction module 402 is used to extract the target field according to the target information data; wherein the target field includes the mobile phone number, private network IP, regional code, IMEI and base station number.
[0112] The generating module 403 is used to encrypt the target field to obtain a target identifier, and store the target identifier in a target identifier library.
[0113] Optionally, the generating module 403 is specifically used for:
[0114] The target field is adjusted by the first variable factor and the second variable factor to obtain a target identifier; wherein the first variable factor and the second variable factor are used to encrypt the target field.
[0115] Optionally, the generating module 403 is specifically used for:
[0116] Select at least one field in the target field, adjust the at least one field by the first variable factor corresponding to each field, and obtain the first identifier corresponding to each field; wherein, at least one field includes a mobile phone number, or at least one field includes a mobile phone number and one or more of the following: private network IP, regional code, IMEI or base station number.
[0117] The first identifiers corresponding to the at least one field are coupled to obtain a second identifier.
[0118] The second identifier is adjusted by the second variable factor to obtain the target identifier.
[0119] Optionally, the identification generating device further includes a storage module 404 .
[0120] The storage module 404 is used to:
[0121] The user's first information data is extracted from the source information data, and the first information data is standardized to obtain the user's second information data.
[0122] The second information data is stored in the information database according to the timestamp of the second information data.
[0123] Optionally, the storage module 404 is specifically used for:
[0124] According to the preset field in the second information data, it is determined whether the information data corresponding to the user has been stored in the information database.
[0125] If not, the second information data is stored in the information database, and the second information data is determined as the target information data.
[0126] If so, compare the timestamps of the second information data and the stored information data. If the timestamp of the second information data is later than the timestamp of the stored information data, store the second information data in the information database and determine the second information data as the target information data; if the timestamp of the second information data is earlier than the timestamp of the stored information data, do not store the second information data and determine the stored information data as the target information data.
[0127] The identification generation device 40 shown in the embodiment of the present application can execute the technical solution of the identification generation method in the above embodiment. Its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the identification generation method. Please refer to the implementation principle and beneficial effects of the identification generation method, and no further details will be given here.
[0128] Figure 5 This is a schematic diagram of the structure of an identification query device 50 provided in an embodiment of the present application. For example, see Figure 5 As shown, the identification query device 50 includes:
[0129] The acquisition module 501 is used to acquire the query request of the application development server; wherein the query request includes the user's private network IP and regional code.
[0130] The query module 502 is used to query the user's target identifier from the target identifier library according to the private network IP and regional code in the query request, and send the target identifier to the application development server; wherein the target identifier is obtained after encrypting the target field, and the target field includes the mobile phone number, private network IP, regional code, IMEI and base station number.
[0131] The identification query device 50 shown in the embodiment of the present application can execute the technical solution of the identification query method in the above embodiment. Its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the identification query method. Please refer to the implementation principle and beneficial effects of the identification query method, and no further details will be given here.
[0132] Figure 6 This is a schematic diagram of the structure of an electronic device 60 provided in an embodiment of the present application. For example, see Figure 6 As shown, the electronic device 60 may include a processor 601 and a memory 602; wherein,
[0133] The memory 602 is used to store computer programs.
[0134] The processor 601 is configured to read the computer program stored in the memory 602 and execute the identification generation method in the above embodiment according to the computer program in the memory 602 , or execute the identification query method in the above embodiment.
[0135] Optionally, the memory 602 may be independent or integrated with the processor 601. When the memory 602 is a device independent of the processor 601, the electronic device 60 may further include a bus for connecting the memory 602 and the processor 601.
[0136] Optionally, this embodiment further includes: a communication interface, which can be connected to the processor 601 through a bus. The processor 601 can control the communication interface to implement the acquisition and transmission functions of the electronic device 60.
[0137] For example, in the embodiment of the present application, the electronic device 60 may be a terminal or a server, and may be specifically configured according to actual needs.
[0138] The electronic device 60 shown in the embodiment of the present application can execute the technical solution of the identification generation method in the above-mentioned embodiment, and its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the identification generation method, and reference can be made to the implementation principle and beneficial effects of the identification generation method; or, execute the technical solution of the identification query method in the above-mentioned embodiment, and its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the identification query method, and reference can be made to the implementation principle and beneficial effects of the identification query method, which will not be repeated here.
[0139] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When a processor executes the computer-executable instructions, the technical solution of the identifier generation method in the above-mentioned embodiment is implemented, and its implementation principle and beneficial effects are similar to those of the identifier generation method, and reference may be made to the implementation principle and beneficial effects of the identifier generation method. Alternatively, the technical solution of the identifier query method in the above-mentioned embodiment is implemented, and its implementation principle and beneficial effects are similar to those of the identifier query method, and reference may be made to the implementation principle and beneficial effects of the identifier query method, which will not be repeated here.
[0140] An embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the technical solution of the identifier generation method in the above-mentioned embodiment, and its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the identifier generation method. Please refer to the implementation principle and beneficial effects of the identifier generation method. Alternatively, it implements the technical solution of the identifier query method in the above-mentioned embodiment, and its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the identifier query method. Please refer to the implementation principle and beneficial effects of the identifier query method, which will not be repeated here.
[0141] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0142] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0143] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute some steps of the methods of various embodiments of the present application.
[0144] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0145] The memory may include high-speed random access memory (RAM), and may also include non-volatile memory (NVM), such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.
[0146] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0147] The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium may be any available medium that can be accessed by a general or special-purpose computer.
[0148] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for generating an identifier, characterized in that: include: Obtain the user's target information data; Extracting target fields according to the target information data; wherein the target fields include mobile phone number, private Internet protocol IP, regional code, international mobile equipment identity IMEI and base station number; Selecting at least one field from the target fields, adjusting the at least one field by respectively corresponding first variable factors, and obtaining first identifiers respectively corresponding to the at least one field; Couple the first identifiers corresponding to the at least one field to obtain a second identifier; The second identifier is adjusted by a second variable factor to obtain a target identifier, and the target identifier is stored in a target identifier library; The composition form of the at least one field is not fixed, and the encryption form after the encryption process is performed by the first variable factor and the second variable factor can be various.
2. The method according to claim 1, before obtaining the user's target information data, comprises: Extracting the first information data of the user from the source information data, and performing standardization processing on the first information data to obtain the second information data of the user; The second information data is stored in an information database according to the timestamp of the second information data.
3. The method according to claim 2, wherein storing the second information data in an information database according to the timestamp of the second information data comprises: According to the preset field in the second information data, determining whether the information data corresponding to the user has been stored in the information database; If not, storing the second information data in the information database, and determining the second information data as the target information data; If yes, compare the timestamps of the second information data and the stored information data, and if the timestamp of the second information data is later than the timestamp of the stored information data, store the second information data in the information database, and determine the second information data as the target information data; If the timestamp of the second information data is earlier than the timestamp of the stored information data, the second information data is not stored, and the stored information data is determined as the target information data.
4. A method for identifying a query, characterized in that: include: Obtaining a query request from an application development server; wherein the query request includes the user's private Internet protocol IP and regional code; According to the private network IP and the regional code in the query request, query the target identifier of the user from the target identifier library, and send the target identifier to the application development server; The target identifier is obtained by encrypting the target field, which includes the mobile phone number, private network IP, regional code, international mobile equipment identity code IMEI and base station number; The process of encrypting the target field specifically includes: Select at least one field in the target field, adjust the at least one field by respectively corresponding first variable factors to obtain first identifiers corresponding to the at least one field, couple the first identifiers corresponding to the at least one field to obtain second identifiers, adjust the second identifier by a second variable factor to obtain the target identifier, and store the target identifier in the target identifier library, wherein the composition form of the at least one field is not fixed, and the encryption form when encrypted by the first variable factor and the second variable factor can be diverse.
5. A device for generating an identification, characterized in that: include: An acquisition module is used to acquire the user's target information data; An extraction module is used to extract a target field according to the target information data; wherein the target field includes a mobile phone number, a private Internet protocol IP, a regional code, an international mobile equipment identity code IMEI and a base station number; A generation module is used to select at least one field in the target field, adjust the at least one field by the first variable factor corresponding to each field to obtain the first identifier corresponding to each field, couple the first identifier corresponding to each field to obtain the second identifier, adjust the second identifier by the second variable factor to obtain the target identifier, and store the target identifier in a target identifier library, wherein the composition form of the at least one field is not fixed, and the encryption form when encrypted by the first variable factor and the second variable factor can be diverse.
6. An identification query device, characterized in that: include: An acquisition module, used to acquire a query request from an application development server; wherein the query request includes the user's private Internet protocol IP and regional code; A query module, used to query the target identifier of the user from a target identifier library according to the private network IP and the regional code in the query request, and send the target identifier to the application development server; wherein the target identifier is obtained after encrypting the target field, and the target field includes the mobile phone number, private network IP, regional code, international mobile equipment identity code IMEI and base station number; The process of encrypting the target field specifically includes: Select at least one field in the target field, adjust the at least one field by respectively corresponding first variable factors to obtain first identifiers corresponding to the at least one field, couple the first identifiers corresponding to the at least one field to obtain second identifiers, adjust the second identifier by a second variable factor to obtain the target identifier, and store the target identifier in the target identifier library, wherein the composition form of the at least one field is not fixed, and the encryption form when encrypted by the first variable factor and the second variable factor can be diverse.
7. An electronic device, characterized in that: include: Memory and processor; The memory is used to store computer programs; The processor is used to read the computer program stored in the memory and execute the identification generation method described in any one of claims 1 to 3 according to the computer program in the memory, or to execute the identification query method described in claim 4.
8. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement the identification generation method as described in any one of claims 1 to 3 above, or to implement the identification query method as described in claim 4 above.
9. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program is used to implement the identification generation method described in any one of claims 1 to 3 above, or to implement the identification query method described in claim 4 above.
Citation Information
Patent Citations
Creating and verifying globally unique device-specific identifiers
CN101563880A
Method for generating fingerprint identifier of hybrid terminal equipment based on JS
CN111698082A
Method and device for generating unique identifier of Android equipment
CN112507291A
Equipment identifier generation method and device, and equipment identifier verification method and device
CN114222288A
Method and apparatus for a device identifier based solution for user identification
US20120102008A1
