An information verification method, a computing device and a storage medium
Patent Information
- Application Number
- CN202210130120.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-11
- Publication Date
- 2026-08-18
- Estimated Expiration
- 2042-02-11
AI Technical Summary
但是,这种方式存在比对效率低,数据库压力大,比对耗时长等问题
[0017]根据本发明的方案,通过对各硬件的硬件信息进行处理,得到一个第二全局信息,通过将第二全局信息与第一全局信息进行比对,可以快速分析出有变化的硬件信息,从整体上将比对次数由1+N(硬件数量)转换为比对次数为1,减少了客户终端与服务服务终端之间,以及服务终端与数据库的交互次数,提高了服务终端的吞吐量,优化了服务终端的处理速度。
Smart Images

Figure CN114510707B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, specifically to an information verification method, a computing device, and a storage medium. Background Technology
[0002] In a domain management platform (a platform that manages a large number of terminal devices with unified system policies and configurations), it is necessary to manage client terminals within the domain, including their hardware information. A client terminal includes multiple hardware components such as a CPU and memory. Client terminals connected to the domain (terminals in the domain connected to the domain management platform) periodically report their hardware information to the service terminal, which then determines whether an update is needed based on the reported information.
[0003] In existing technologies, firstly, a hardware information query request is sent from the client terminal to the service terminal (this request records the hardware information of the hardware to be queried). Then, the service terminal retrieves the hardware information of all relevant hardware from the database. Finally, the service terminal compares the hardware information retrieved from the database with the hardware information in the hardware information query request, analyzing the discrepancies. However, this method suffers from low comparison efficiency, high database load, and long comparison time. Summary of the Invention
[0004] In view of the above problems, the present invention is proposed to provide an information verification method, computing device, and storage medium that overcomes or at least partially solves the above problems.
[0005] According to one aspect of the present invention, an information verification method is provided, executed in a client terminal, wherein at least one piece of hardware resides in the client terminal and the client terminal is connected to a service terminal, and the service terminal stores first global information. The method includes: acquiring hardware information of each piece of hardware recorded in the first global information, and calculating first digest information of each piece of hardware information; acquiring second digest information of each type of hardware based on each first digest information; calculating check codes of each second digest information, and merging the check codes in a predetermined order to obtain second global information; and sending the second global information to the service terminal so that the service terminal compares the second global information with the first global information to obtain a verification result.
[0006] Optionally, in the information verification method according to the present invention, the step of obtaining the hardware information of each piece of hardware in the first global information record includes: detecting whether all hardware in the first global information record exists in the current client terminal; if not, setting the hardware information of the non-existent hardware to a null value.
[0007] Optionally, in the information verification method according to the present invention, the step of calculating the first digest information of each piece of hardware information includes: using a hash algorithm to calculate the first digest information of each piece of hardware information.
[0008] Optionally, in the information verification method according to the present invention, the step of obtaining the second digest information of each type of hardware based on each first digest information includes: obtaining the first digest information of each type of hardware; and concatenating the first digest information of each type of hardware to obtain the second digest information.
[0009] Optionally, in the information verification method according to the present invention, the step of calculating the check code of each second digest information includes: calculating the check code of each second digest information using cyclic redundancy check.
[0010] Optionally, in the information verification method according to the present invention, the predetermined order is the order of the hardware components recorded in the first global information.
[0011] Optionally, in the information verification method according to the present invention, after the service terminal obtains the verification result, the method further includes: determining whether there is any changed hardware information based on the verification result; if so, updating the first global information to the second global information.
[0012] Optionally, in the information verification method according to the present invention, the step of the service terminal comparing the second global information with the first global information includes: comparing the second global information with the first global information sequentially according to the character length of each check code; when it is detected that there is a check code that is different between the second global information and the first global information, obtaining the second digest information corresponding to the check code, and obtaining the changed hardware information based on the second digest information.
[0013] According to another aspect of the present invention, an information verification method is provided, which is executed in a service terminal connected to at least one client terminal. The service terminal stores first global information. The method includes: receiving second global information sent from the client terminal; and comparing the second global information with the first global information to obtain a verification result.
[0014] According to another aspect of the present invention, an information verification system is provided, comprising: at least one client terminal and a service terminal, each client terminal being connected to the service terminal, each client terminal having at least one piece of hardware residing therein, and the service terminal storing first global information; wherein, the client terminal is adapted to acquire hardware information of each piece of hardware recorded in the first global information, calculate first digest information of each piece of hardware information, acquire second digest information of each type of hardware based on each first digest information, calculate check codes of each second digest information, and merge the check codes in a predetermined order to obtain second global information, and send the second global information to the service terminal; the service terminal is adapted to compare the second global information with the first global information to obtain a verification result.
[0015] According to another aspect of the present invention, a computing device is provided, comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions including instructions for performing the methods described above.
[0016] According to another aspect of the present invention, a readable storage medium storing program instructions is provided, which, when read and executed by a computing device, causes the computing device to perform the method described above.
[0017] According to the present invention, by processing the hardware information of each hardware component, a second global information is obtained. By comparing the second global information with the first global information, the changed hardware information can be quickly analyzed. The number of comparisons is reduced from 1+N (number of hardware components) to 1, thereby reducing the number of interactions between the client terminal and the service terminal, as well as between the service terminal and the database, improving the throughput of the service terminal, and optimizing the processing speed of the service terminal.
[0018] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0019] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0020] Figure 1 A schematic diagram of a computing device 100 according to an embodiment of the present invention is shown;
[0021] Figure 2 A flowchart of an information verification method 200 according to an embodiment of the present invention is shown;
[0022] Figure 3 A flowchart of an information verification method 300 according to another embodiment of the present invention is shown;
[0023] Figure 4 A schematic diagram of the structure of an information verification system 400 according to another embodiment of the present invention is shown;
[0024] Figure 5 A schematic diagram of the workflow of an information verification system according to another embodiment of the present invention is shown. Detailed Implementation
[0025] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0026] Client terminal hardware includes all physical hardware within the client terminal, distinguishing it from the data it contains or executes and the software that provides instructions to the hardware to complete tasks. It mainly includes: chassis, motherboard, bus, power supply, hard drive, storage controller, interface card, portable storage device, internal memory, input devices, output devices, CPU fan, buzzer, etc. Currently, during hardware information verification, a hardware comparison process is required for each piece of hardware. This involves the client terminal sending a hardware information verification request to the server terminal, which then compares this hardware information with the hardware information stored in its database. If they match, the hardware has not changed; if they do not match, the hardware has been replaced. As described above, client terminals have more than a dozen types of hardware, and each type includes multiple hardware components (for example, a client terminal can have multiple CPUs). The sheer number of hardware components results in a massive workload for the entire hardware information verification process.
[0027] In addition, under normal circumstances, the possibility of changes in the hardware information of the client terminal (i.e., replacement of hardware in the client terminal) is very small. The server terminal only wants to know which hardware has changed. By comparing each piece of hardware information one by one, there are problems such as low processing efficiency, high pressure on the database, and long processing time.
[0028] To address the problems existing in the prior art, the present invention provides a solution. One embodiment of the present invention provides an information verification method that can be executed in a computing device. Figure 1 A structural diagram of a computing device 100 according to an embodiment of the present invention is shown. Figure 1 As shown, in the basic configuration 102, the computing device 100 typically includes system memory 106 and one or more processors 104. Memory bus 108 can be used for communication between processor 104 and system memory 106.
[0029] Depending on the desired configuration, processor 104 can be any type of processor, including but not limited to: microprocessor (μP), microcontroller (μC), digital information processor (DSP), or any combination thereof. Processor 104 may include one or more levels of cache such as L1 cache 110 and L2 cache 112, processor core 114, and registers 116. Example processor core 114 may include an arithmetic logic unit (ALU), floating-point unit (FPU), digital signal processing core (DSP core), or any combination thereof. Example memory controller 118 may be used with processor 104, or in some implementations, memory controller 118 may be an internal part of processor 104.
[0030] Depending on the desired configuration, system memory 106 can be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. Physical memory in a computing device typically refers to volatile RAM, and data on a disk needs to be loaded into physical memory before it can be read by processor 104. System memory 106 may include operating system 120, one or more applications 122, and program data 124. Application 122 is actually a series of program instructions that instruct processor 104 to perform corresponding operations. In some embodiments, application 122 may be arranged to execute instructions on the operating system by one or more processors 104 using program data 124. Operating system 120 may be, for example, Linux, Windows, etc., and includes program instructions for handling basic system services and performing hardware-dependent tasks. Application 122 includes program instructions for implementing various user-desired functions, and application 122 may be, for example, a browser, instant messaging software, software development tools (such as integrated development environments (IDEs), compilers, etc.), but is not limited to these. When application 122 is installed on computing device 100, a driver module can be added to operating system 120.
[0031] When computing device 100 starts up, processor 104 reads and executes program instructions from memory 106 of operating system 120. Application 122 runs on operating system 120, utilizing interfaces provided by operating system 120 and underlying hardware to implement various user-expected functions. When user starts application 122, application 122 is loaded into memory 106, and processor 104 reads and executes program instructions from memory 106 of application 122.
[0032] The computing device 100 also includes a storage device 132, which includes a removable storage device 136 and a non-removable storage device 138, both of which are connected to a storage interface bus 134.
[0033] The computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via a bus / interface controller 130. Example output devices 142 include a graphics processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices such as displays or speakers via one or more A / V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboards, mice, pens, voice input devices, touch input devices) or other peripherals (e.g., printers, scanners, etc.) via one or more I / O ports 158. Example communication devices 146 may include a network controller 160, which may be arranged to facilitate communication with one or more other computing devices 162 via a network communication link through one or more communication ports 164.
[0034] A network communication link can be an example of a communication medium. A communication medium can typically be embodied in a modulated data signal, such as a carrier wave or other transmission mechanism, and can include any information delivery medium. A “modulated data signal” can be a signal whose data set, or whose modifications, can be encoded with information within the signal. As a non-limiting example, a communication medium can include wired media such as wired networks or leased lines, and various wireless media including sound, radio frequency (RF), microwave, infrared (IR), or other wireless media. The term “computer-readable medium” as used herein can include both storage media and communication media.
[0035] The computing device 100 also includes a storage interface bus 134 connected to a bus / interface controller 130. The storage interface bus 134 is connected to a storage device 132 adapted to perform data storage. An example storage device 132 may include a removable storage device 136 (e.g., CD, DVD, USB flash drive, removable hard drive, etc.) and a non-removable storage device 138 (e.g., hard disk drive HDD, etc.).
[0036] In the computing device 100 according to the present invention, application 122 includes a plurality of program instructions for executing method 200.
[0037] Figure 2 A flowchart of an information verification method 200 according to an embodiment of the present invention is shown. Method 200 is adapted to be executed in a client terminal (which may be configured as the aforementioned computing device 100), the client terminal having at least one residing hardware, and the client terminal being connected to a service terminal (which may also be configured as the aforementioned computing device 100), the service terminal storing first global information. Specifically, the first global information is stored in a storage device. In some embodiments, the storage device may be a local disk, such as the C drive, D drive, etc., in the service terminal; it may also be a relational database such as MySQL, ACCESS, etc.; or a non-relational database such as NoSQL; it may also be a local database residing in the service terminal; or it may be a distributed database such as HBase located in multiple geographical locations. In short, the storage device is used to store data, and the present invention does not limit the specific deployment and configuration of the storage device. The service terminal can connect to the storage device and obtain the data stored in the storage device. For example, the service terminal can directly read the data in the storage device (when the storage device is a local database of the service terminal), or it can access the Internet via wired or wireless means and obtain the data in the storage device through a data interface. This application does not impose any limitations on this.
[0038] It should be noted that the storage device stores the first global information of all client terminals in the domain; that is, each client terminal in the domain corresponds to one piece of first global information. The first global information consists of multiple check codes that can represent different types of hardware information (the generation process of the check codes will not be described here, but will be explained in detail later). In other words, a check code is generated from the hardware information of one type of hardware. The character length and order of any check code are fixed. For example, the first global information consists of check codes for three types of hardware: CPU, memory, and hard disk. The check code for CPU is 123, the check code for memory is 132, and the check code for hard disk is 213. The order of the three check codes is: CPU check code → memory check code → hard disk check code. Therefore, the first global information is 123132213. When hardware information verification is required, a second global information corresponding to the first global information is generated based on the current hardware information of each hardware component of the client terminal. For example, the second global information is 123132312. Then, the first global information is compared with the second global information. If they are different, it indicates that the hardware in the client terminal to be verified has changed. Furthermore, the type of hardware that has changed can be determined from the checksum corresponding to the difference. In this example, the difference is found in the last checksum, indicating that the hard drive type hardware in the current client terminal has changed. By parsing the checksum of this type of hardware, the specific hardware that has changed can be determined. Preferably, the character length and order of each checksum can be recorded in a relevant configuration file, for example, forming the structure shown in Table 1 below.
[0039]
[0040] It should be noted that the character length and order of each check code in the first global information can be set by those skilled in the art, and are not limited here.
[0041] like Figure 2 As shown, the purpose of method 200 is to implement a method for verifying hardware information in a client terminal. It begins at step S202, in which hardware information of each piece of hardware recorded in the first global information is obtained, and a first summary of each piece of hardware information is calculated. As described above, the first global information is stored in the service terminal. When performing the information verification method 200 of this embodiment, the client terminal needs to first send an information verification request to the service terminal. The service terminal responds to the information verification request and returns a feedback result, which includes the hardware information of each piece of hardware recorded in the first global information. For example, the feedback result may include a structure as shown in Table 1 above. The hardware information includes the hardware's name, model, brand, factory ID, etc.
[0042] In some embodiments, a hash algorithm can be used to calculate the first digest information of each piece of hardware information. A hash algorithm transforms an input of arbitrary length into a fixed-length output. For example, the hardware information of hardware 1 is 12345, and the hardware information of hardware 2 is 123. By processing the hardware information of hardware 1 and hardware 2 respectively using a hash algorithm, the first digest information abc for hardware 1 and ABC for hardware 2 can be obtained. That is, the character length of the first hardware information obtained for both is the same.
[0043] Furthermore, as mentioned above, the order and character length of each checksum in the first global information are fixed. When a piece of hardware recorded in the first global information is not present in the current client terminal, it indicates that the hardware has been removed or is in an unusable state. In this case, to avoid affecting the verification of other hardware, the hardware information of that hardware needs to be set to null. Specifically, it checks whether any of the hardware recorded in the first global information exists in the current client terminal. If not, the hardware information of the non-existent hardware is set to null. In this way, when the null hardware information is processed by the hash algorithm, it still has the same character length as the first digest information corresponding to other hardware.
[0044] In a specific example, the current client terminal includes 2 CPUs, 1 memory, and no hard disk. The first summary information of each hardware component is shown in Table 2 below.
[0045] Hardware Information 111aaaa 111bbbb 22cccc 0 First summary information AAA BBB CCC DDD
[0046] In step S204, second digest information for each type of hardware is obtained based on the first digest information. Specifically, for each type of hardware, its first digest information is obtained. The first digest information of hardware of the same type is concatenated to obtain the second digest information. That is, the second digest information is the sum of the first digest information of hardware belonging to the same type. For example, a client terminal has 3 CPUs, and the first digest information of the 3 CPUs is abc, acb, and bca, respectively. Then, for the hardware CPUs, the second digest information is the concatenation of the first digest information of the 3 CPUs, i.e., abcacbbca.
[0047] Continuing with the previous example, if a client terminal includes two CPUs, one memory module, and no hard disk, then the two CPUs are of the same type of hardware, and the memory and hard disk are of the same type of hardware. The second summary information for each type of hardware in this client terminal is shown in Table 3 below:
[0048] First summary information AAA and BBB CCC DDD Second summary information AAABBB CCC DDD
[0049] In step S206, the check code of each second digest information is calculated, and the check codes are merged in a predetermined order to obtain the second global information.
[0050] In some embodiments, cyclic redundancy check (CRC) can be used to calculate the checksum for each second digest. CRC is a channel coding technique that generates a short, fixed-length checksum based on data such as network packets or computer files. Preferably, CRC32 can be used for CRC. CRC can process second digests of different character lengths into checksums of the same character length. The obtained checksums are then sorted according to the order of their corresponding checksums in the first global information to finally obtain the second global information.
[0051] Continuing with the previous example, when the client terminal includes 2 CPUs, 1 memory, and no hard disk, the final second global information is shown in Table 4 below:
[0052]
[0053] In step S208, the second global information is sent to the service terminal so that the service terminal can compare the second global information with the first global information to obtain the verification result. The specific comparison process is as follows:
[0054] First, based on the character length of each check code, the second global information is compared with the first global information in turn.
[0055] Then, when it is detected that there is a checksum that is different from the first global information, the second digest information corresponding to the checksum is obtained, and the changed hardware information is obtained based on the second digest information.
[0056] For example, if the first global information is 123132213 and the second global information is 123132231, and each checksum is 3 characters long, then every 3 characters in the first and second global information correspond to one checksum. Each time, 3 characters are extracted from both and compared sequentially. When different checksums are found, it indicates that hardware in the current device has changed. Based on the position of the checksum in the first global information and the order of the checksums in the first global information (or by consulting the structure shown in Table 1 above), it can be determined which type of hardware has changed. In this example, it can be seen that the hardware information corresponding to the last checksum has changed. According to the data structure in Table 1 above, it can be determined that the hard drive's hardware information has changed, and a verification result is generated, which records the change in the hard drive's hardware information.
[0057] In some embodiments, based on the verification result, it is determined whether there is any changed hardware information. If so, the first global information is updated to the second global information. That is, the second global information replaces the first global information.
[0058] Figure 3 A flowchart of an information verification method 300 according to another embodiment of the present invention is shown. Method 300 is adapted to be executed in a service terminal connected to at least one client terminal, the service terminal storing first global information. The information verification method 300 specifically includes:
[0059] S302, Receive the second global information sent from the client terminal.
[0060] S304. Compare the second global information with the first global information to obtain the verification result.
[0061] It should be noted that the first global information and the second global information mentioned above both originate from the same client terminal to be verified, and are both generated by this client terminal. For the specific generation process of the first global information and the second global information, as well as the comparison process between the first global information and the second global information at the service terminal, please refer to the description of the information verification method 200 above; it will not be repeated here.
[0062] Figure 4 A schematic diagram of the structure of an information verification system 400 according to another embodiment of the present invention is shown. Figure 4 The information verification system 400 includes at least one client terminal 410 and a service terminal 420. Each client terminal 410 is connected to the service terminal 420, and each client terminal 410 hosts at least one piece of hardware. The service terminal 420 stores first global information. The client terminal 410 is adapted to acquire the hardware information of each piece of hardware recorded in the first global information, calculate a first digest of each piece of hardware information, acquire second digest information for each type of hardware based on the first digest information, calculate a checksum for each second digest, and merge the checksums in a predetermined order to obtain second global information. The second global information is then sent to the service terminal 420. The service terminal 420 is adapted to compare the second global information with the first global information to obtain a verification result.
[0063] In a specific example, such as Figure 5 As shown, Figure 5 A schematic diagram illustrating the workflow of an information verification system according to another embodiment of the present invention is shown. (Reference) Figure 5 The information verification method specifically includes the following steps:
[0064] 5.1 The client terminal sends an information verification request to the service terminal and receives the feedback result from the service terminal.
[0065] 5.2 The client terminal sorts the hardware that needs to be verified by hardware type, such as CPU, memory, hard drive, etc.
[0066] 5.3 The client terminal calculates the hash digest information for different types of hardware information according to the sorting order in step 3.2 (for hardware information of non-existent hardware, null values are used for calculation).
[0067] 5.4 For multiple hardware devices of the same type, the client terminal first concatenates the hash digest information (all converted to string format), sorts the concatenated hash digest information (strings) and then merges the information, and uses CRC32 to calculate the merged information.
[0068] 5.5 The client terminal merges the CRC32 results of different types of hardware in the order determined in step 3.2 to generate global information (second global information), and sends the global information to the service terminal.
[0069] 5.6 The service terminal retrieves the record information (first global information) corresponding to the currently requesting client terminal from the database.
[0070] 5.7 The service terminal compares the first global information and the second global information to obtain the difference analysis data (because the order is fixed, the CRC32 results of different types of components are fixed, and the changed hardware can be quickly analyzed).
[0071] 5.8. Update the data based on the analysis results.
[0072] It should be noted that if the service terminal does not have the first global information, it means that the client terminal is sending the global information of each hardware to the service terminal for the first time, and the service terminal will directly store the global information.
[0073] The solution provided by this invention processes the hardware information of each hardware component to obtain a second global information. By comparing the second global information with the first global information, the changed hardware information can be quickly analyzed. Overall, the number of comparisons is reduced from 1+N (number of hardware components) to 1, which reduces the number of interactions between the client terminal and the service terminal, as well as between the service terminal and the database, thereby improving the throughput of the service terminal and optimizing its processing speed.
[0074] The various techniques described herein can be implemented in combination with hardware or software, or a combination thereof. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, can take the form of program code (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, USB flash drive, floppy disk, CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into and executed by a machine such as a computer, the machine becomes an apparatus for practicing the present invention.
[0075] When the program code is executed on a programmable computer, the computing device generally includes a processor, a processor-readable storage medium (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store program code; the processor is configured to execute the method of the present invention according to instructions in the program code stored in the memory.
[0076] By way of example, and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer-readable instructions, data structures, program modules, or other data. Communication media generally embodies computer-readable instructions, data structures, program modules, or other data in the form of modulated data signals such as carrier waves or other transmission mechanisms, and includes any information delivery medium. Any combination of the above is also included within the scope of readable media.
[0077] In the specification provided herein, the algorithms and displays are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with the examples of this invention. The required structure for constructing such systems is apparent from the above description. Furthermore, this invention is not directed to any particular programming language. It should be understood that the contents of the invention described herein can be implemented using various programming languages, and the above description of specific languages is for the purpose of disclosing preferred embodiments of the invention.
[0078] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0079] Similarly, it should be understood that, in order to streamline this disclosure and aid in understanding one or more of the various aspects of the invention, in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof. However, this method of disclosure should not be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into this detailed description, wherein each claim itself is a separate embodiment of the invention.
[0080] Those skilled in the art will understand that modules, units, or components of the devices disclosed in the examples herein can be arranged in the devices described in this embodiment, or alternatively, can be located in one or more devices different from the devices in this example. The modules in the foregoing examples can be combined into a single module or, in addition, can be divided into multiple sub-modules.
[0081] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.
[0082] Furthermore, those skilled in the art will understand that although some embodiments described herein include certain features but not others included in other embodiments, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
[0083] Furthermore, some of the embodiments described herein are methods or combinations of method elements that can be implemented by a processor of a computer system or by other means of performing the functions. Therefore, a processor having the necessary instructions for implementing the methods or method elements forms means for implementing the methods or method elements. Furthermore, the elements described herein in the apparatus embodiments are examples of means for implementing the functions performed by elements for the purposes of carrying out the invention.
[0084] As used herein, unless otherwise specified, the use of ordinal numbers such as “first,” “second,” “third,” etc., to describe ordinary objects merely indicates different instances of similar objects and is not intended to imply that the objects being described must have a given order in time, space, ordering, or any other manner.
[0085] Although the invention has been described with respect to a limited number of embodiments, those skilled in the art will understand from the foregoing description that other embodiments are conceivable within the scope of the invention described herein. Furthermore, it should be noted that the language used in this specification has been chosen primarily for readability and edibility purposes, and not for the purpose of interpreting or limiting the subject matter of the invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the invention is illustrative rather than restrictive, and the scope of the invention is defined by the appended claims.
Claims
1. An information verification method, executed in a client terminal, wherein at least one hardware resides in the client terminal, and the client terminal is connected to a server terminal, wherein the server terminal stores first global information, the method comprising: Obtain the hardware information of each hardware in the first global information record, and calculate the first summary information of each hardware information; Based on the first summary information, second summary information of each type of hardware is obtained, including obtaining the first summary information of each type of hardware, and concatenating the first summary information of each type of hardware to obtain the second summary information. Calculate the check code of each second digest information and merge the check codes in a predetermined order to obtain the second global information. The step of calculating the check code of each second digest information includes: using cyclic redundancy check to calculate the check code of each second digest information. The second global information is sent to the service terminal so that the service terminal can compare the second global information with the first global information to obtain a verification result. The step of the service terminal comparing the second global information with the first global information includes: comparing the second global information with the first global information sequentially according to the character length of each check code; when a check code that is different from the first global information is detected, obtaining the second digest information corresponding to the check code, and obtaining the changed hardware information based on the second digest information.
2. The method as described in claim 1, wherein, The steps for obtaining the hardware information of each hardware component in the first global information record include: Detect whether any of the hardware recorded in the first global information exists in the current client terminal; If it does not exist, the hardware information of the non-existent hardware will be set to null.
3. The method as described in claim 1 or 2, wherein, The step of calculating the first summary information of each of the hardware information includes: A hash algorithm is used to calculate the first digest information of each piece of hardware information.
4. The method of claim 1, wherein, The predetermined order is the order of the hardware components recorded in the first global information.
5. The method of claim 1, wherein, After the service terminal obtains the verification result, the following is also included: Based on the verification results, determine whether there is any changed hardware information; If it exists, then update the first global information to the second global information.
6. An information verification method, executed in a service terminal, the service terminal being connected to at least one client terminal, the service terminal storing first global information, and the client terminal having at least one piece of hardware residing thereon, the method comprising: Receive second global information sent from the client terminal; The second global information is compared with the first global information to obtain the verification result; The second global information is generated through the client terminal. The steps for generating the second global information include obtaining the hardware information of each hardware recorded in the first global information and calculating the first summary information of each hardware information. Based on the first summary information, second summary information of each type of hardware is obtained, including obtaining the first summary information of each type of hardware, and concatenating the first summary information of each type of hardware to obtain the second summary information. Calculate the check code of each second digest information and merge the check codes in a predetermined order to obtain the second global information. The step of calculating the check code of each second digest information includes: using cyclic redundancy check to calculate the check code of each second digest information. The step of the service terminal comparing the second global information with the first global information includes: Based on the character length of each check code, the second global information and the first global information are compared sequentially. When a check code that is different from the first global information is detected, the second digest information corresponding to the check code is obtained, and the changed hardware information is obtained based on the second digest information.
7. An information verification system, comprising: At least one client terminal and one service terminal, each client terminal is connected to the service terminal, each client terminal has at least one piece of hardware, and the service terminal stores first global information; in, A client terminal is adapted to acquire hardware information of each hardware in a first global information record, calculate first digest information of each hardware information, and acquire second digest information of each type of hardware based on the first digest information. This includes acquiring the first digest information of each type of hardware, concatenating the first digest information of hardware of the same type to obtain the second digest information; it is also adapted to calculate the checksum of each second digest information, and merge the checksums in a predetermined order to obtain second global information. The step of calculating the checksum of each second digest information includes: using cyclic redundancy check to calculate the checksum of each second digest information, and sending the second global information to the service terminal. A service terminal is adapted to compare the second global information with the first global information to obtain a verification result. The comparison of the second global information with the first global information by the service terminal includes: comparing the second global information with the first global information sequentially according to the character length of each verification code; when a different verification code is detected between the second global information and the first global information, obtaining the second digest information corresponding to the verification code, and obtaining the changed hardware information based on the second digest information.
8. A computing device, comprising: At least one processor; and A memory storing program instructions configured to be executed by the at least one processor, the program instructions including instructions for performing the method as described in any one of claims 1-6.
9. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Method and system for hardware safety management
CN101483554A
Technology for generating trusted identity certification of computer terminal based on hardware information
CN103368916A