Data verification method, device, medium and electronic equipment
By using multi-level verification and update methods of device number, chip number, verification number and number of modifications in terminal verification, the problem of device identification number being stolen and renovated terminal disguises is solved, and the validity and security of verification are improved.
Patent Information
- Application Number
- CN202110733310.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2041-06-30
AI Technical Summary
The prior art is difficult to effectively checksum prevent the equipment identification number from being stolen or refurbished terminals from being disguised as legal terminals, resulting in reduced security of invalid checksums.
By adding the four fields of device number, chip number, verification number and modification number as terminal verification conditions, multi-level legality verification and update are carried out to ensure the accuracy and consistency of verification number and modification number.
It improves the effectiveness of terminal verification results, avoids invalid verification, avoids security problems caused by the theft of device numbers, and ensures the security of terminals and data.
Smart Images

Figure CN113344598B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data verification method, a data verification device, a computer-readable storage medium, and an electronic device. Background Art
[0002] With the development of computer technology, the market can now use device identification numbers to mark the uniqueness and legality of goods (i.e., from official channels). By scanning the device identification number, you can get a result indicating whether the product is legal, which can prevent counterfeit and shoddy products from disrupting the normal market order.
[0003] However, some unscrupulous merchants will refurbish illegal products and sell them as regular products. The existing device identification number is used as the unique identity of the terminal, affixed to the device label, and can be easily viewed and stolen during daily reporting, terminal transportation, and warehousing.
[0004] Nowadays, many unscrupulous manufacturers who sell counterfeit and mixed goods will evade traditional verification of counterfeit and mixed goods by collecting historical serial codes, obtaining serial code data of inventory, and re-burning and sticking codes on problematic terminals. This can easily cause invalid verification problems.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The purpose of the present application is to provide a data verification method, a data verification device, a computer-readable storage medium and an electronic device, which can add numbers with different representation meanings as terminal verification conditions, improve the validity of terminal verification results, and avoid invalid verification.
[0007] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0008] According to one aspect of the present application, a data verification method is provided, comprising:
[0009] When a first access request from a user terminal is detected, the legitimacy of the device number, chip number, check number, and modification number in the first access request is verified;
[0010] If the verification is successful, the verification number and modification times are updated;
[0011] Store the updated verification number and the updated modification times;
[0012] Send the updated verification number and updated modification times to the user terminal.
[0013] In an exemplary embodiment of the present application, if the first access request is a request initiated by the user terminal for the first time, the legitimacy of the device number, chip number, verification number, and modification number in the first access request is verified, including:
[0014] Check whether the device number matches the device number library;
[0015] If the device number matches the device number library, then check whether the chip number and the verification number are the same;
[0016] If the chip number is the same as the verification number, check whether the number of modifications is zero;
[0017] If the number of modifications is zero, the verification is considered successful.
[0018] In an exemplary embodiment of the present application, the method further includes:
[0019] If the number of modifications is not zero, the user terminal is determined to be a refurbished terminal;
[0020] Generating prompt information for indicating that the user terminal is a refurbished terminal;
[0021] The prompt information is sent to the user terminal, or the prompt information is sent to a designated legal terminal.
[0022] In an exemplary embodiment of the present application, after sending the updated verification number and the updated modification number to the user terminal, the method further includes:
[0023] When a second access request from the user terminal is detected, detecting whether the verification number in the second access request is the same as the updated verification number;
[0024] Detecting whether the number of modifications in the second access request is the same as the updated number of modifications;
[0025] If the verification number in the second access request is the same as the updated verification number and the modification number in the second access request is the same as the updated modification number, the user terminal is determined to be a legitimate terminal.
[0026] In an exemplary embodiment of the present application, storing the updated verification number and the updated modification number includes:
[0027] Discard the association between the device number, chip number, verification number and modification times;
[0028] An association relationship between the device number, the chip number, the updated verification number, and the updated modification number is constructed and stored.
[0029] In an exemplary embodiment of the present application, the above method further includes:
[0030] If the verification fails, it is determined that the user terminal is an illegal terminal.
[0031] In an exemplary embodiment of the present application, updating the verification number and the modification times includes:
[0032] Generating a random number as the updated verification number;
[0033] Incrementing the modification times by 1 as the updated modification times.
[0034] According to an aspect of the present application, there is provided a data verification device, including:
[0035] A number verification unit, configured to, when detecting a first access request of a user terminal, perform a legality verification on the device number, chip number, verification number, and modification times in the first access request;
[0036] A number update unit, configured to update the verification number and the modification times when the verification is successful;
[0037] A number storage unit, configured to store the updated verification number and the updated modification times;
[0038] A number sending unit, configured to send the updated verification number and the updated modification times to the user terminal.
[0039] In an exemplary embodiment of the present application, if the first access request is a request initiated by the user terminal for the first time, the number verification unit performs a legality verification on the device number, chip number, verification number, and modification times in the first access request, including:
[0040] Detecting whether the device number hits the device number library;
[0041] If the device number hits the device number library, detecting whether the chip number is the same as the verification number;
[0042] If the chip number is the same as the verification number, detecting whether the modification times is zero;
[0043] If the modification times is zero, it is determined that the verification is successful.
[0044] In an exemplary embodiment of the present application, the above device further includes:
[0045] A result determination unit, configured to determine that the user terminal is a refurbished terminal when the modification times is not zero;
[0046] An information generating unit, used to generate prompt information indicating that the user terminal is a refurbished terminal;
[0047] The information sending unit is used to send the prompt information to the user terminal, or send the prompt information to a designated legal terminal.
[0048] In an exemplary embodiment of the present application, the number verification unit is further configured to, after the number sending unit sends the updated verification number and the updated modification number to the user terminal, when a second access request of the user terminal is detected, detect whether the verification number in the second access request is the same as the updated verification number;
[0049] The number verification unit is further used to detect whether the modification number in the second access request is the same as the updated modification number;
[0050] The number verification unit is further used to determine that the user terminal is a legitimate terminal when the verification number in the second access request is the same as the updated verification number and the modification number in the second access request is the same as the updated modification number.
[0051] In an exemplary embodiment of the present application, the number storage unit stores the updated verification number and the updated modification number, including:
[0052] Discard the association between the device number, chip number, verification number and modification times;
[0053] An association relationship between the device number, the chip number, the updated verification number, and the updated modification number is constructed and stored.
[0054] In an exemplary embodiment of the present application, the result determination unit is further configured to determine that the user terminal is an illegal terminal when the verification fails.
[0055] In an exemplary embodiment of the present application, the number updating unit updates the verification number and the modification number, including:
[0056] Generate a random number as the updated verification number;
[0057] Add 1 to the number of modifications as the number of modifications after the update.
[0058] According to one aspect of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform any one of the above methods by executing the executable instructions.
[0059] According to one aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the above methods is implemented.
[0060] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0061] The exemplary embodiments of the present application may have some or all of the following beneficial effects:
[0062] In the data verification method provided in an example implementation of the present application, when a first access request from a user terminal is detected, the legitimacy of the device number, chip number, check number, and modification number in the first access request can be verified; if the verification is successful, the check number and the modification number are updated; the updated check number and the updated modification number are stored; and the updated check number and the updated modification number are sent to the user terminal. According to the above scheme description, on the one hand, the present application can add numbers with different representational meanings as terminal verification conditions, improve the validity of terminal verification results, and avoid invalid verification. On the other hand, the present application can avoid the problem of the inability to effectively verify the terminal due to the theft of the device number, improve the verification security, avoid counterfeit terminals impersonating legitimate terminals, improve user perception, and ensure terminal security and data security.
[0063] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0065] Figure 1 A schematic diagram showing an exemplary system architecture of a data verification method and a data verification device to which the embodiments of the present application can be applied;
[0066] Figure 2 A schematic diagram showing the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown;
[0067] Figure 3 A flowchart of a data verification method according to an embodiment of the present application is schematically shown;
[0068] Figure 4 A sequence diagram schematically shows a data verification method according to an embodiment of the present application;
[0069] Figure 5 A flowchart of a data verification method according to an embodiment of the present application is schematically shown;
[0070] Figure 6 The structural block diagram of a data verification device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0071] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present application will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present application.
[0072] In addition, the accompanying drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0073] Figure 1 A schematic diagram of a system architecture of an exemplary application environment in which a data verification method and a data verification device according to an embodiment of the present application can be applied is shown.
[0074] like Figure 1As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The terminal devices 101, 102, 103 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, tablet computers, etc. It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.
[0075] The data verification method provided in the embodiment of the present application is generally executed by the server 105, and accordingly, the data verification device is generally arranged in the server 105. However, it is easy for a person skilled in the art to understand that the data verification method provided in the embodiment of the present application can also be executed by the terminal device 101, 102 or 103, and accordingly, the data verification device can also be arranged in the terminal device 101, 102 or 103, and this is not particularly limited in this exemplary embodiment. For example, in an exemplary embodiment, when the server 105 detects the first access request of the user terminal, the device number, chip number, check number, and modification number in the first access request can be verified for legitimacy; if the verification is successful, the check number and the modification number are updated; the updated check number and the updated modification number are stored; and the updated check number and the updated modification number are sent to the user terminal.
[0076] Figure 2 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0077] It should be noted that Figure 2 The computer system 200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0078] like Figure 2 As shown, the computer system 200 includes a central processing unit (CPU) 201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 202 or a program loaded from a storage part 208 into a random access memory (RAM) 203. Various programs and data required for system operation are also stored in the RAM 203. The CPU 201, the ROM 202, and the RAM 203 are connected to each other via a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.
[0079] The following components are connected to the I / O interface 205: an input section 206 including a keyboard, a mouse, etc.; an output section 207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 208 including a hard disk, etc.; and a communication section 209 including a network interface card such as a LAN card, a modem, etc. The communication section 209 performs communication processing via a network such as the Internet. A drive 210 is also connected to the I / O interface 205 as needed. A removable medium 211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 210 as needed, so that a computer program read therefrom is installed into the storage section 208 as needed.
[0080] In particular, according to an embodiment of the present application, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 209, and / or installed from a removable medium 211. When the computer program is executed by the central processing unit (CPU) 201, various functions defined in the method and apparatus of the present application are executed.
[0081] This exemplary embodiment provides a data verification method. The data verification method can be applied to the above-mentioned server 105, and can also be applied to one or more of the above-mentioned terminal devices 101, 102, 103, which is not particularly limited in this exemplary embodiment. Figure 3 As shown, the data verification method may include the following steps S310 to S340.
[0082] Step S310: When a first access request from a user terminal is detected, the device number, chip number, check number, and modification times in the first access request are verified for legitimacy.
[0083] Step S320: If the verification is successful, update the verification number and the number of modifications.
[0084] Step S330: Store the updated verification number and the updated modification times.
[0085] Step S340: Send the updated verification number and the updated modification times to the user terminal.
[0086] Implementation Figure 3The method shown can add numbers with different meanings as terminal verification conditions, improve the validity of terminal verification results, and avoid invalid verification. In addition, it can also avoid the problem of ineffective terminal verification caused by the theft of device numbers, improve verification security, avoid counterfeit terminals impersonating legitimate terminals, improve user perception, and ensure terminal security and data security.
[0087] Next, the above steps of this exemplary embodiment are described in more detail.
[0088] In step S310, when a first access request from a user terminal is detected, the legitimacy of the device number, chip number, check number, and modification times in the first access request is verified.
[0089] Specifically, the device number (DeviceId) can be a device identification number (i.e., serial number), which is an identification code used to identify the unique identity of the device. The chip number (ChipID) is the number of the main chip in the user terminal. One main chip corresponds to one number. If the main chip in the user terminal is replaced, the chip number will also be changed. When the user terminal is turned on for the first time, the check number (CheckKey) is numerically consistent with the ChipID. After the terminal is restored to the factory, the CheckKey retains the modified value. If the user verifies whether the user terminal is new or genuine, an access request can be sent to the verification party (such as the terminal management system) so that the verification party verifies the legitimacy of the user terminal based on the device number, chip number, check number, and number of modifications. If it is detected that the chip number is consistent with the check number and the number of modifications is zero, it can be determined that the user terminal is a legitimate user. The number of modifications (ReNum) is used to identify the number of times the CheckKey has been modified by the verification party. In addition, the device number, chip number, check number, and number of modifications can all be composed of one or more of the following: letters, numbers, symbols, text, etc.
[0090] In an exemplary embodiment of the present application, if the first access request is a request initiated for the first time by a user terminal, the legitimacy of the device number, chip number, verification number, and number of modifications in the first access request is verified, including: detecting whether the device number hits the device number library; if the device number hits the device number library, detecting whether the chip number is the same as the verification number; if the chip number is the same as the verification number, detecting whether the number of modifications is zero; if the number of modifications is zero, determining that the verification is successful.
[0091] Specifically, if the device number does not hit the device number library, the above method may also include: determining that the device number is not a legal number and feeding back to the user terminal a prompt message indicating that the user terminal is not authentic; wherein the device number library is used to store one or more device numbers, each device number corresponds to a user terminal, and only the user terminal with the corresponding device number is likely to be authentic. In addition, if the chip number is different from the verification number, the above method may also include: determining that the user terminal is not being verified for the first time and feeding back to the user terminal a prompt message indicating that the user terminal is not a new product.
[0092] It can be seen that the implementation of this optional embodiment can expand the three fields of chip number, verification number, and number of modifications on the basis of the original use of the device number for terminal unique identity verification, thereby avoiding the problem of regular device numbers being reused and labeled on counterfeit and mixed goods for sale as regular goods, thereby improving the effectiveness of data verification.
[0093] In an exemplary embodiment of the present application, the above method also includes: if the number of modifications is not zero, determining that the user terminal is a refurbished terminal; generating prompt information for indicating that the user terminal is a refurbished terminal; sending the prompt information to the user terminal, or sending the prompt information to a designated legal terminal.
[0094] Specifically, after determining that the user terminal is a refurbished terminal, the method may further include: determining the refurbishment number according to the modification number, reporting the refurbishment number to the server, and sending the refurbishment number to the user terminal. In addition, the designated legal terminal may be a terminal corresponding to the designated IP, and the legal terminal may be a device of the terminal controller.
[0095] It can be seen that the implementation of this optional embodiment can determine the device status of the user terminal (such as whether the user terminal is a refurbished terminal, the user terminal is a legal terminal, etc.) based on the verification of the device number, chip number, check number, and number of modifications, and promptly feedback the device status to the terminal user to enhance user perception.
[0096] In step S320, if the verification is successful, the verification number and the modification times are updated.
[0097] In an exemplary embodiment of the present application, the method further includes: if the verification fails, determining that the user terminal is an illegal terminal.
[0098] Specifically, if there is a number among the device number, chip number, verification number, and modification number that does not meet the verification conditions, the verification is determined to have failed.
[0099] It can be seen that the implementation of this optional embodiment can improve the validity of the verification result through multi-layer verification of the device number, chip number, verification number, and modification number.
[0100] In an exemplary embodiment of the present application, updating the verification number and the number of modifications includes: generating a random number as the updated verification number; and adding 1 to the number of modifications as the updated number of modifications.
[0101] Specifically, generating a random number as the updated verification number includes: generating a random number as the updated verification number according to a random number generation algorithm; wherein the random number generation algorithm can be a Monte Carlo method, a normal random number generation algorithm, a random number generation algorithm from U(0,1) to other probability distributions, etc., which is not limited in the embodiments of the present application. Adding 1 to the number of modifications as the updated number of modifications includes: determining the number of modifications (e.g., 1) and calculating (number of modifications + 1), and using the calculation result as the updated number of modifications (e.g., 2).
[0102] It can be seen that by implementing this optional embodiment, the verification number and the modification number can be updated to record the verification number of the user terminal at any time, so that the user can find the real and valid terminal information.
[0103] In step S330, the updated verification number and the updated modification times are stored.
[0104] Specifically, storing the updated verification number and the updated modification times includes: storing the updated verification number and the updated modification times in a cloud server.
[0105] In an exemplary embodiment of the present application, the updated verification number and the updated number of modifications are stored, including: discarding the association between the device number, chip number, verification number and the number of modifications; constructing and storing the association between the device number, chip number, updated verification number and the updated number of modifications.
[0106] Specifically, the association relationship between the device number, chip number, verification number and modification times can be expressed in the form of key values, or in other data association methods, which is not limited in the embodiments of the present application.
[0107] It can be seen that the implementation of this optional embodiment can re-establish the association between the device number, chip number, verification number and the number of modification times, so that the association between the device number, chip number, verification number and the number of modification times stored in the server remains the latest, thereby improving the verification accuracy of the server.
[0108] In step S340, the updated verification number and the updated modification times are sent to the user terminal.
[0109] Specifically, after sending the updated verification number and the updated modification times to the user terminal, the above method may also include: sending a prompt message to the user terminal to indicate that the user terminal is a legal terminal, and the prompt message may also include the device number, chip number, verification number and modification times for the user to view.
[0110] In an exemplary embodiment of the present application, after sending the updated verification number and the updated number of modifications to the user terminal, the above method also includes: when a second access request of the user terminal is detected, detecting whether the verification number in the second access request is the same as the updated verification number; detecting whether the number of modifications in the second access request is the same as the updated number of modifications; if the verification number in the second access request is the same as the updated verification number and the number of modifications in the second access request is the same as the updated number of modifications, then determining that the user terminal is a legitimate terminal.
[0111] Specifically, the second access request and the first access request may be the same request, and the second access request and the first access request are only different in sequence. In addition, if the check number in the second access request is different from the updated check number or the modification number in the second access request is different from the updated modification number, the user terminal is determined to be an illegal terminal.
[0112] It can be seen that the implementation of this optional embodiment can perform number detection based on the relationship between the latest device number, chip number, verification number and modification times, thereby improving the verification accuracy and the validity of the verification results.
[0113] See also Figure 4 , Figure 4 The following schematically shows a sequence diagram of a data verification method according to an embodiment of the present application. Figure 4 As shown, the sequence diagram includes a user terminal and a terminal management system, wherein: Figure 3 The steps and embodiments shown can be executed by a terminal management system, which can be run on a remote server. Specifically, they include:
[0114] S410: The user terminal sends a first access request including a device number, a chip number, a verification number and a modification number to the terminal management system.
[0115] S420: The terminal management system feeds back the verification result to the user terminal.
[0116] S430: The user terminal confirms the verification result to the terminal management system.
[0117] S440: The terminal management system updates the verification number and the number of modifications.
[0118] S450: The terminal management system sends the updated verification number and the updated modification count to the user terminal.
[0119] S460: The user terminal feeds back the successful update to the terminal management system.
[0120] S470: The terminal management system stores the updated verification number and the updated modification count.
[0121] It can be seen that by implementing Figure 4 the method shown, numbers with different representational meanings can be added as terminal verification conditions, improving the effectiveness of the terminal verification result, avoiding invalid verification. In addition, it can also avoid the problem that the device number is stolen and the terminal cannot be effectively verified, improving the verification security, preventing fake terminals from impersonating legitimate terminals, enhancing the user perception, and ensuring the terminal security and data security.
[0122] Please refer to Figure 5 , Figure 5 which schematically shows a flowchart of a data verification method according to an embodiment of the present application. As Figure 5 shown, the data verification method includes: step S510 to step S560.
[0123] Step S510: When a first access request of the user terminal is detected and the first access request is the first request initiated by the user terminal, detect whether the device number hits the device number library. If the device number hits the device number library, then detect whether the chip number is the same as the verification number. If the chip number is the same as the verification number, then detect whether the modification count is zero. If the modification count is zero, then determine that the verification is successful; if the modification count is not zero, then determine that the user terminal is a refurbished terminal, generate a prompt message indicating that the user terminal is a refurbished terminal; send the prompt message to the user terminal, or send the prompt message to a specified legitimate terminal.
[0124] Step S520: If the verification is successful, then update the verification number and the modification count. Further, execute step S540.
[0125] Step S530: If the verification fails, then determine that the user terminal is an illegal terminal. Further, end the process.
[0126] Step S540: Discard the association relationship between the device number, the chip number, the verification number and the modification count, and construct and store the association relationship between the device number, the chip number, the updated verification number and the updated modification count.
[0127] Step S550: Send the updated verification number and the updated modification count to the user terminal.
[0128] Step S560: When a second access request from the user terminal is detected, detect whether the verification number in the second access request is the same as the updated verification number, and detect whether the number of modifications in the second access request is the same as the updated number of modifications. If the verification number in the second access request is the same as the updated verification number and the number of modifications in the second access request is the same as the updated number of modifications, the user terminal is determined to be a legitimate terminal.
[0129] It should be noted that steps S510 to S560 are Figure 3 The steps and their embodiments shown correspond to each other. For the specific implementation of steps S510 to S560, please refer to Figure 3 The steps and embodiments shown are not described in detail here.
[0130] It can be seen that implementation Figure 5 The method shown can add numbers with different meanings as terminal verification conditions, improve the validity of terminal verification results, and avoid invalid verification. In addition, it can also avoid the problem of ineffective terminal verification caused by the theft of device numbers, improve verification security, avoid counterfeit terminals impersonating legitimate terminals, improve user perception, and ensure terminal security and data security.
[0131] Furthermore, in this exemplary embodiment, a data verification device is also provided. Figure 6 As shown, the data verification device 600 may include:
[0132] The number verification unit 601 is used to verify the legitimacy of the device number, chip number, check number, and modification number in the first access request when a first access request from a user terminal is detected;
[0133] The number updating unit 602 is used to update the verification number and the modification times when the verification is successful;
[0134] A number storage unit 603, used to store an updated verification number and an updated modification number;
[0135] The number sending unit 604 is used to send the updated verification number and the updated modification times to the user terminal.
[0136] It can be seen that implementation Figure 6 The device shown can add numbers with different meanings as terminal verification conditions to improve the validity of terminal verification results and avoid invalid verification. In addition, it can also avoid the problem of device numbers being stolen, resulting in the inability to effectively verify the terminal, improve verification security, avoid counterfeit terminals impersonating legitimate terminals, improve user perception, and ensure terminal security and data security.
[0137] In an exemplary embodiment of the present application, if the first access request is a request initiated by the user terminal for the first time, the number verification unit 601 verifies the legitimacy of the device number, chip number, verification number, and modification number in the first access request, including:
[0138] Check whether the device number matches the device number library;
[0139] If the device number matches the device number library, then check whether the chip number and the verification number are the same;
[0140] If the chip number is the same as the verification number, check whether the number of modifications is zero;
[0141] If the number of modifications is zero, the verification is considered successful.
[0142] It can be seen that the implementation of this optional embodiment can expand the three fields of chip number, verification number, and number of modifications on the basis of the original use of the device number for terminal unique identity verification, thereby avoiding the problem of regular device numbers being reused and labeled on counterfeit and mixed goods for sale as regular goods, thereby improving the effectiveness of data verification.
[0143] In an exemplary embodiment of the present application, the above-mentioned device further includes:
[0144] A result determination unit (not shown), used to determine that the user terminal is a refurbished terminal when the number of modifications is not zero;
[0145] An information generating unit (not shown), used to generate prompt information indicating that the user terminal is a refurbished terminal;
[0146] The information sending unit (not shown) is used to send the prompt information to the user terminal, or send the prompt information to a designated legal terminal.
[0147] It can be seen that the implementation of this optional embodiment can determine the device status of the user terminal (such as whether the user terminal is a refurbished terminal, the user terminal is a legal terminal, etc.) based on the verification of the device number, chip number, check number, and number of modifications, and promptly feedback the device status to the terminal user to enhance user perception.
[0148] In an exemplary embodiment of the present application, the number verification unit 601 is further configured to, after the number sending unit 604 sends the updated verification number and the updated modification number to the user terminal, when a second access request of the user terminal is detected, detect whether the verification number in the second access request is the same as the updated verification number;
[0149] The number verification unit 601 is further used to detect whether the modification number in the second access request is the same as the updated modification number;
[0150] The number verification unit 601 is further configured to determine that the user terminal is a legitimate terminal when the verification number in the second access request is the same as the updated verification number and the modification number in the second access request is the same as the updated modification number.
[0151] It can be seen that by implementing this optional embodiment, number detection can be performed based on the relationship between the latest device number, chip number, verification number and the number of modifications, thereby improving the verification accuracy and the validity of the verification result.
[0152] In an exemplary embodiment of the present application, the number storage unit 603 stores the updated verification number and the updated modification number, including:
[0153] Discard the association between the device number, chip number, verification number and modification times;
[0154] An association relationship between the device number, the chip number, the updated verification number, and the updated modification number is constructed and stored.
[0155] It can be seen that the implementation of this optional embodiment can re-establish the association between the device number, chip number, verification number and the number of modification times, so that the association between the device number, chip number, verification number and the number of modification times stored in the server remains the latest, thereby improving the verification accuracy of the server.
[0156] In an exemplary embodiment of the present application, the result determination unit is further configured to determine that the user terminal is an illegal terminal when the verification fails.
[0157] It can be seen that the implementation of this optional embodiment can improve the validity of the verification result through multi-layer verification of the device number, chip number, verification number, and modification number.
[0158] In an exemplary embodiment of the present application, the number updating unit 602 updates the verification number and the modification number, including:
[0159] Generate a random number as the updated verification number;
[0160] Add 1 to the number of modifications as the number of modifications after the update.
[0161] It can be seen that by implementing this optional embodiment, the verification number and the modification number can be updated to record the verification number of the user terminal at any time, so that the user can find the real and valid terminal information.
[0162] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0163] Since the various functional modules of the data verification device of the example embodiment of the present application correspond to the steps of the example embodiment of the data verification method described above, for details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the data verification method described above in the present application.
[0164] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0165] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0166] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0168] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0169] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A data verification method, It is characterized in that include: When a first access request from a user terminal is detected, the legitimacy of the device number, chip number, check number, and modification number in the first access request is verified; If the verification is successful, the verification number and the modification times are updated; Store the updated verification number and the updated modification times; Sending the updated verification number and the updated modification number to the user terminal; If the first access request is a request initiated by the user terminal for the first time, the legitimacy of the device number, chip number, verification number, and modification number in the first access request is verified, including: Detecting whether the device number matches a device number library; If the device number matches the device number library, then detecting whether the chip number is the same as the verification number; If the chip number is the same as the verification number, detecting whether the number of modifications is zero; If the number of modifications is zero, the verification is determined to be successful.
2. The method according to claim 1, It is characterized in that The method further comprises: If the number of modifications is not zero, determining that the user terminal is a refurbished terminal; generating prompt information for indicating that the user terminal is the refurbished terminal; The prompt information is sent to the user terminal, or the prompt information is sent to a designated legal terminal.
3. The method according to claim 1, It is characterized in that After sending the updated verification number and the updated modification number to the user terminal, the method further includes: When detecting a second access request from the user terminal, detecting whether the verification number in the second access request is the same as the updated verification number; detecting whether the number of modifications in the second access request is the same as the updated number of modifications; If the verification number in the second access request is the same as the updated verification number and the modification number in the second access request is the same as the updated modification number, the user terminal is determined to be a legitimate terminal.
4. The method according to claim 1, It is characterized in that Stores the updated verification number and the updated modification count, including: discarding the association between the device number, the chip number, the verification number and the number of modifications; An association relationship between the device number, the chip number, the updated verification number and the updated modification number is constructed and stored.
5. The method according to claim 1, It is characterized in that The method further comprises: If the verification fails, the user terminal is determined to be an illegal terminal.
6. The method according to claim 1, It is characterized in that Updating the verification number and the modification times includes: Generate a random number as the updated verification number; Add 1 to the number of modifications as the updated number of modifications.
7. A data verification device, It is characterized in that include: A number verification unit, configured to verify the legitimacy of a device number, a chip number, a check number, and a modification number in a first access request when a first access request from a user terminal is detected; A number updating unit, used to update the verification number and the number of modifications when the verification is successful; A number storage unit, used to store an updated verification number and an updated modification number; A number sending unit, used for sending the updated verification number and the updated modification number to the user terminal; Among them, if the first access request is the first request initiated by the user terminal, the legitimacy of the device number, chip number, verification number, and modification number in the first access request is verified, including: detecting whether the device number hits the device number library; if the device number hits the device number library, detecting whether the chip number is the same as the verification number; if the chip number is the same as the verification number, detecting whether the modification number is zero; if the modification number is zero, determining that the verification is successful.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 6 by executing the executable instructions.
Citation Information
Patent Citations
Terminal test method, and terminal
WO2018166109A1