Metering instrument software authorization query method and system
Through authorization query of the measuring instrument software, the preset authorization query toolkit is used to obtain and decrypt the authorization information, and determine whether the authorization has been tampered with, solving the problem of software cheating risks and ensuring the accuracy and security of the measurement results.
Patent Information
- Application Number
- CN202411811759.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-04-25
AI Technical Summary
Measuring instrument software has the risk of being cheated or tampered with, resulting in inaccurate measurement results and it is difficult to detect and prevent software cheating in a timely manner.
By sending a connection request to the measuring instrument terminal based on the preset authorization query tool kit, obtaining device information and authorization file information, and performing multiple rounds of reverse operations decryption of the encrypted authorization information, comparing the original and decrypting MD5 values to determine whether the authorization has been tampered with, and if tampered with, an early warning message is issued.
Ensure that the software used in measuring instruments has been strictly evaluated and authorized, avoid measurement errors, ensure the accuracy and reliability of measurement results, prevent software cheating, and protect users and public interests.
Smart Images

Figure CN119885111A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of authorization query of measuring instrument software, and in particular to a method and system for authorization query of measuring instrument software. Background Art
[0002] In actual applications, there is a risk of cheating or tampering with the software of measuring instruments, such as maliciously modifying the software algorithm to make the measurement results biased towards one party for personal gain, or tampering with the software function to evade supervision, etc. Authorization query can timely detect whether the software has been illegally modified by verifying the authorization status and integrity of the software, effectively prevent software cheating, ensure the security and fairness of the measuring instrument software, and protect the rights and interests of users and the public interest from infringement.
[0003] Authorization query provides an important means for the management of measuring instrument software. By establishing a query system and recording authorization information, management departments and users can clearly grasp the authorization status, version history, usage and other information of the measuring instrument software, which is convenient for effective asset management, maintenance plan formulation and equipment update decision-making. At the same time, when problems arise, they can quickly trace back based on the query records, determine the root cause of the problem, and take corresponding measures, such as recalling or punishing equipment involved in tampering, repairing software vulnerabilities, etc., to improve the efficiency and scientificity of measuring instrument management. Summary of the invention
[0004] In order to overcome the above problems existing in the prior art, the present application provides a method and system for querying software authorization of measuring instruments, which adopts the following technical solutions:
[0005] In a first aspect, the present application provides a method for querying authorization of measuring instrument software, comprising:
[0006] Sending a connection request to the measuring instrument terminal based on the preset authorization query toolkit, after the measuring instrument responds to the connection request of the preset authorization query toolkit, establishing a connection with the preset authorization query toolkit;
[0007] When the measuring instrument terminal device establishes a connection with the preset authorization query toolkit, the preset authorization query toolkit obtains the device information and authorization file information of the measuring instrument terminal device;
[0008] Decrypt the encrypted authorization information in the authorization file information and obtain the decrypted MD5 value;
[0009] The original MD5 value is compared with the decrypted MD5 value. When the original MD5 value is the same as the decrypted MD5 value, the authorization has not been tampered with. When the original MD5 value is different from the decrypted MD5 value, the authorization has been tampered with. When the authorization has been tampered with, an early warning message is issued to complete the authorization query of the measuring instrument software.
[0010] Furthermore, the method of sending a connection request to the measuring instrument terminal based on the preset authorization query toolkit, and the measuring instrument establishing a connection with the preset authorization query toolkit after responding to the connection request of the preset authorization query toolkit, includes:
[0011] Based on the preset authorization query toolkit, the device authorization query interface is entered, and the IP address of the measuring instrument terminal device is obtained based on the preset query unit of the authorization query interface. The preset authorization query toolkit establishes a connection with the measuring instrument terminal.
[0012] Furthermore, the preset authorization query toolkit can obtain the IP address of the measuring instrument terminal device by scanning or inputting.
[0013] Furthermore, when the preset authorization query toolkit obtains the device information and authorization file information of the measuring instrument terminal device, the authorization file information includes the authorization history record of the measuring instrument terminal and the current encrypted authorization information.
[0014] Furthermore, the decrypting of the encrypted authorization information in the authorization file information specifically includes:
[0015] Multiple rounds of reverse operations are performed on each data block in the encrypted authorization information, including reverse column confusion, reverse row shift, reverse byte replacement and bitwise XOR, and the data blocks are restored by iteratively starting from the last data block in each round until the original data is restored.
[0016] Furthermore, the method performs multiple rounds of reverse operations on each data block in the encrypted authorization information, including bitwise XOR, reverse column confusion, reverse row shift and reverse byte replacement, and restores the data blocks by iteratively starting from the last data block until the original data is restored. Specifically, the method includes:
[0017] Obtain the encrypted authorization information, perform a reverse bitwise XOR operation on the last data block in the encrypted authorization information and the last round key, and revoke the key mixing of the last data block;
[0018] Perform reverse shift operation on the last data block mixed with the revocation key;
[0019] Using the inverse mapping table of the predefined byte mapping table, each byte in the last data block after the reverse row shift is reversely replaced. By looking up the inverse mapping table, each byte is replaced back to its original value, restoring the impact of byte replacement on the data during encryption.
[0020] Starting from the second-to-last round, reverse column confusion, reverse row shift, reverse byte replacement, and bitwise XOR are repeated for each data block until the first data block.
[0021] After multiple rounds of reverse operations, each data block has been restored to its original state. These restored data blocks are spliced together in the order before encryption to form the complete original authorization information data.
[0022] Furthermore, starting from the second to last round, reverse column obfuscation, reverse row shift, reverse byte replacement and bitwise XOR are repeated for each data block until the first data block, and the specific contents include:
[0023] Perform a reverse bitwise XOR operation on the current data block and the round key corresponding to the current round;
[0024] Use the inverse confusion matrix to perform inverse column confusion operation on the data block after the inverse round key XOR operation, and restore the original byte relationship of the data block in the column direction;
[0025] According to the reverse row shift rule, the data block after reverse column obfuscation is operated to restore the original position of each row of bytes;
[0026] The reverse byte mapping table is used to reversely replace the bytes in the data block after the reverse row shift to restore the original value of the bytes.
[0027] In a second aspect, the present application also provides a measuring instrument software authorization query system, including:
[0028] A connection establishment module, used to send a connection request to the measuring instrument terminal based on the preset authorization query toolkit, and after the measuring instrument responds to the connection request of the preset authorization query toolkit, it establishes a connection with the preset authorization query toolkit;
[0029] An information acquisition module, which is used for obtaining device information and authorization file information of the measuring instrument terminal device by the preset authorization query toolkit after the measuring instrument terminal device establishes a connection with the preset authorization query toolkit;
[0030] The decrypted MD5 value acquisition module is used to decrypt the encrypted authorization information in the authorization file information and obtain the decrypted MD5 value;
[0031] The MD5 value judgment module is used to compare and judge the original MD5 value with the decrypted MD5 value. When the original MD5 value is the same as the decrypted MD5 value, the authorization has not been tampered with. When the original MD5 value is different from the decrypted MD5 value, the authorization has been tampered with. When the authorization has been tampered with, an early warning message is issued to complete the authorization query of the measuring instrument software.
[0032] In a third aspect, the present application provides an electronic device, including:
[0033] One or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, cause the device to perform the method as described in the first aspect.
[0034] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method described in the first aspect.
[0035] In a fifth aspect, the present application provides a computer program, which, when executed by a computer, is used to execute the method described in the first aspect.
[0036] In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor.
[0037] This application has the following beneficial effects:
[0038] This application sends a connection request to the measuring instrument terminal based on a preset authorization query toolkit. After the measuring instrument responds to the connection request of the preset authorization query toolkit, it establishes a connection with the preset authorization query toolkit. The preset authorization query toolkit obtains the device information and authorization file information of the measuring instrument terminal device; decrypts the encrypted authorization information in the authorization file information to obtain the decrypted MD5 value; compares the original MD5 value with the decrypted MD5 value to determine that when the original MD5 value is the same as the decrypted MD5 value, the authorization has not been tampered with; when the original MD5 value is different from the decrypted MD5 value, the authorization has been tampered with; when the authorization has been tampered with, an early warning message is issued. This application ensures that the measuring instrument uses strictly evaluated and authorized software by performing authorization queries on the measuring instrument software, avoiding measurement errors caused by software problems, thereby ensuring the accuracy and reliability of the measurement results and maintaining the normal order of activities in various fields; through authorization queries, It can timely discover whether the software has been illegally modified, effectively prevent software cheating, ensure the security and fairness of the measuring instrument software, and protect the rights and interests of users and the public interest from infringement; if problems such as software authorization anomalies or version mismatches are found during the query process, it may indicate that the software has quality risks, thereby prompting relevant parties to further inspect and improve the software, ensure the overall quality and stable operation of the measuring instrument software, and reduce the failure of measuring instruments or erroneous measurements caused by software failures; by establishing a query system and recording authorization information, management departments and users can clearly grasp the authorization status, version history, usage and other information of the measuring instrument software, which is convenient for effective asset management, maintenance plan formulation and equipment update decision-making. At the same time, when problems arise, they can quickly trace back based on the query records, determine the root cause of the problem, and take corresponding measures, such as recalling or punishing equipment involved in tampering, repairing software vulnerabilities, etc., to improve the efficiency and scientificity of measuring instrument management. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is an exemplary system architecture diagram to which the embodiments of the present application can be applied;
[0040] Figure 2 This is a flow chart of a method for querying authorization of measuring instrument software according to an embodiment of the present application;
[0041] Figure 3 A flowchart of obtaining raw data according to an embodiment of the present application;
[0042] Figure 4 This is a flowchart of iterative operation on a data block according to an embodiment of the present application;
[0043] Figure 5 This is a system flow chart of an embodiment of the present application;
[0044] Figure 6It is a schematic diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0046] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0047] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0048] like Figure 1 As shown, the system architecture 100 may include 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.
[0049] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0050] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc.
[0051] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0052] It should be noted that the measurement instrument software authorization query method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the measurement instrument software authorization query system is generally set in the server / terminal device.
[0053] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0054] Continue to refer Figure 2 , the figure shows a flow chart of a method for querying the authorization of measuring instrument software of the present application, the method comprising the following steps:
[0055] Step 201 : sending a connection request to a measuring instrument terminal based on a preset authorization query toolkit. After the measuring instrument responds to the connection request of the preset authorization query toolkit, it establishes a connection with the preset authorization query toolkit.
[0056] In a possible implementation, a connection request is sent to a measuring instrument terminal based on a preset authorization query toolkit, and after the measuring instrument responds to the connection request of the preset authorization query toolkit, a connection is established with the preset authorization query toolkit, and the specific contents include:
[0057] Based on the preset authorization query toolkit, the device authorization query interface is entered, and the IP address of the measuring instrument terminal device is obtained based on the preset query unit of the authorization query interface. The preset authorization query toolkit establishes a connection with the measuring instrument terminal.
[0058] In a possible implementation, the preset authorization query toolkit can obtain the IP address of the measuring instrument terminal device by scanning or inputting.
[0059] Step 202: After the measuring instrument terminal device establishes a connection with the preset authorization query toolkit, the preset authorization query toolkit obtains the device information and authorization file information of the measuring instrument terminal device.
[0060] In a possible implementation, when the preset authorization query toolkit obtains the device information and authorization file information of the measuring instrument terminal device, the authorization file information includes the authorization history record of the measuring instrument terminal and the current encrypted authorization information.
[0061] Step 203: decrypt the encrypted authorization information in the authorization file information to obtain the decrypted MD5 value.
[0062] In a possible implementation manner, decrypting the encrypted authorization information in the authorization file information specifically includes:
[0063] Multiple rounds of reverse operations are performed on each data block in the encrypted authorization information, including reverse column confusion, reverse row shift, reverse byte replacement and bitwise XOR, and the data blocks are restored by iteratively starting from the last data block in each round until the original data is restored.
[0064] In a possible implementation, the method performs multiple rounds of reverse operations on each data block in the encrypted authorization information, including bitwise XOR, reverse column confusion, reverse row shift, and reverse byte replacement, and restores the data blocks by iteratively starting from the last data block until the original data is restored. Figure 3 , the specific contents include:
[0065] Step 31, obtaining the encrypted authorization information, performing a reverse bitwise XOR operation on the last data block in the encrypted authorization information and the last round key, and canceling the key mixing of the last data block;
[0066] Step 32, reverse shifting the last data block mixed with the revocation key;
[0067] Step 33, using the inverse mapping table of the predefined byte mapping table, reversely replace each byte in the last data block after the reverse row shift, and replace each byte back to its original value by searching the inverse mapping table, thereby restoring the impact of byte replacement on the data during encryption.
[0068] Step 34, starting from the second to last round, reverse column confusion, reverse row shift, reverse byte replacement and bitwise XOR are repeated for each data block until the first data block.
[0069] Step 35, after multiple rounds of reverse operations, each data block has been restored to its original state, and these restored data blocks are spliced together in the order before encryption to form complete original authorization information data.
[0070] In a possible implementation, starting from the second to last round, reverse column confusion, reverse row shift, reverse byte replacement and bitwise XOR are repeated for each data block until the first data block. Figure 4 , the specific contents include:
[0071] Step 41, perform a reverse bitwise XOR operation on the current data block and the round key corresponding to the current round. The round key of each round is generated and used according to specific rules during encryption and decryption. When decrypting, the round key needs to be used in the opposite order of encryption.
[0072] Step 42, using the inverse confusion matrix to perform an inverse column confusion operation on the data block after the inverse round key XOR operation, to restore the original byte relationship of the data block in the column direction.
[0073] Step 43, operating the data block after reverse column obfuscation according to the reverse row shift rule, and restoring the original position of each row of bytes.
[0074] Step 44, using the reverse byte mapping table to reversely replace the bytes in the data block after the reverse row shift, to restore the original value of the bytes.
[0075] Step 204, compare the original MD5 value with the decrypted MD5 value. When the original MD5 value is the same as the decrypted MD5 value, the authorization has not been tampered with. When the original MD5 value is different from the decrypted MD5 value, the authorization has been tampered with. When the authorization has been tampered with, an early warning message is issued to complete the authorization query of the measuring instrument software.
[0076] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0077] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0078] Continue to refer Figure 5 The measuring instrument software authorization query system described in this embodiment includes:
[0079] A connection establishment module 501 is used to send a connection request to a measuring instrument terminal based on a preset authorization query toolkit, and after the measuring instrument responds to the connection request of the preset authorization query toolkit, it establishes a connection with the preset authorization query toolkit;
[0080] The information acquisition module 502 is used for the preset authorization query toolkit to acquire the device information and authorization file information of the measuring instrument terminal device after the measuring instrument terminal device establishes a connection with the preset authorization query toolkit;
[0081] The decrypted MD5 value acquisition module 503 is used to decrypt the encrypted authorization information in the authorization file information and obtain the decrypted MD5 value;
[0082] The MD5 value judgment module 504 is used to compare and judge the original MD5 value with the decrypted MD5 value. When the original MD5 value is the same as the decrypted MD5 value, the authorization has not been tampered with. When the original MD5 value is different from the decrypted MD5 value, the authorization has been tampered with. When the authorization has been tampered with, an early warning message is issued to complete the authorization query of the measuring instrument software.
[0083] To solve the above technical problems, the present application also provides a computer device. Figure 6 , Figure 6 This is a basic structural block diagram of the computer device in this embodiment.
[0084] The computer device 6 includes a memory 6a, a processor 6b, and a network interface 6c that are interconnected through a system bus. It should be noted that the figure only shows a computer device 6 with components 6a-6c, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0085] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0086] The memory 6a includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 6a can be an internal storage unit of the computer device 6, such as a hard disk or memory of the computer device 6. In other embodiments, the memory 6a can also be an external storage device of the computer device 6, such as a plug-in hard disk equipped on the computer device 6, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 6a can also include both the internal storage unit of the computer device 6 and its external storage device. In this embodiment, the memory 6a is generally used to store the operating system and various application software installed on the computer device 6, such as the program code of the measurement instrument software authorization query method, etc. In addition, the memory 6a can also be used to temporarily store various types of data that have been output or are to be output.
[0087] The processor 6b may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 6b is generally used to control the overall operation of the computer device 6. In this embodiment, the processor 6b is used to run the program code stored in the memory 6a or process data, such as running the program code of the measurement instrument software authorization query method.
[0088] The network interface 6c may include a wireless network interface or a wired network interface. The network interface 6c is generally used to establish a communication connection between the computer device 6 and other electronic devices.
[0089] The present application also provides another implementation, namely, providing a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a program of a measuring instrument software authorization query method, and the measuring instrument software authorization query can be executed by at least one processor so that the at least one processor executes the steps of the measuring instrument software authorization query method as described above.
[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0091] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A method for querying authorization of measuring instrument software, characterized in that: include: Sending a connection request to the measuring instrument terminal based on the preset authorization query toolkit, after the measuring instrument responds to the connection request of the preset authorization query toolkit, establishing a connection with the preset authorization query toolkit; When the measuring instrument terminal device establishes a connection with the preset authorization query toolkit, the preset authorization query toolkit obtains the device information and authorization file information of the measuring instrument terminal device; Decrypt the encrypted authorization information in the authorization file information and obtain the decrypted MD5 value; The original MD5 value is compared with the decrypted MD5 value. When the original MD5 value is the same as the decrypted MD5 value, the authorization has not been tampered with. When the original MD5 value is different from the decrypted MD5 value, the authorization has been tampered with. When the authorization has been tampered with, an early warning message is issued to complete the authorization query of the measuring instrument software.
2. The method for querying the authorization of measuring instrument software according to claim 1, characterized in that: The method of sending a connection request to the measuring instrument terminal based on the preset authorization query toolkit, and the measuring instrument establishing a connection with the preset authorization query toolkit after responding to the connection request of the preset authorization query toolkit, includes: Based on the preset authorization query toolkit, the device authorization query interface is entered, and the IP address of the measuring instrument terminal device is obtained based on the preset query unit of the authorization query interface. The preset authorization query toolkit establishes a connection with the measuring instrument terminal.
3. The method for querying the authorization of measuring instrument software according to claim 1, characterized in that: The preset authorization query toolkit can obtain the IP address of the measuring instrument terminal device by scanning or input.
4. The method for querying the authorization of measuring instrument software according to claim 1, characterized in that: When the preset authorization query toolkit obtains the device information and authorization file information of the measuring instrument terminal device, the authorization file information includes the authorization history record of the measuring instrument terminal and the current encrypted authorization information.
5. The method for querying the authorization of measuring instrument software according to claim 1, characterized in that: The decrypting of the encrypted authorization information in the authorization file information specifically includes: Multiple rounds of reverse operations are performed on each data block in the encrypted authorization information, including reverse column confusion, reverse row shift, reverse byte replacement and bitwise XOR, and the data blocks are restored by iteratively starting from the last data block in each round until the original data is restored.
6. The method for querying the authorization of measuring instrument software according to claim 5, characterized in that: The method performs multiple rounds of reverse operations on each data block in the encrypted authorization information, including bitwise XOR, reverse column confusion, reverse row shift and reverse byte replacement, and restores the data blocks by iteratively starting from the last data block until the original data is restored. The specific contents include: Obtain the encrypted authorization information, perform a reverse bitwise XOR operation on the last data block in the encrypted authorization information and the last round key, and revoke the key mixing of the last data block; Perform reverse shift operation on the last data block mixed with the revocation key; Using the inverse mapping table of the predefined byte mapping table, each byte in the last data block after the reverse row shift is reversely replaced. By looking up the inverse mapping table, each byte is replaced back to its original value, restoring the impact of byte replacement on the data during encryption. Starting from the second-to-last round, reverse column confusion, reverse row shift, reverse byte replacement, and bitwise XOR are repeated for each data block until the first data block. After multiple rounds of reverse operations, each data block has been restored to its original state. These restored data blocks are spliced together in the order before encryption to form the complete original authorization information data.
7. The method for querying the authorization of measuring instrument software according to claim 6, characterized in that: Starting from the second to last round, reverse column confusion, reverse row shift, reverse byte replacement and bitwise XOR are repeated for each data block until the first data block, and the specific contents include: Perform a reverse bitwise XOR operation on the current data block and the round key corresponding to the current round; Use the inverse confusion matrix to perform inverse column confusion operation on the data block after the inverse round key XOR operation, and restore the original byte relationship of the data block in the column direction; According to the reverse row shift rule, the data block after reverse column obfuscation is operated to restore the original position of each row of bytes; The reverse byte mapping table is used to reversely replace the bytes in the data block after the reverse row shift to restore the original value of the bytes.
8. A measuring instrument software authorization query system, used to implement the measuring instrument software authorization query method of claims 1-7, characterized in that: include: A connection establishment module, used to send a connection request to the measuring instrument terminal based on the preset authorization query toolkit, and after the measuring instrument responds to the connection request of the preset authorization query toolkit, it establishes a connection with the preset authorization query toolkit; An information acquisition module, which is used for obtaining device information and authorization file information of the measuring instrument terminal device by the preset authorization query toolkit after the measuring instrument terminal device establishes a connection with the preset authorization query toolkit; The decrypted MD5 value acquisition module is used to decrypt the encrypted authorization information in the authorization file information and obtain the decrypted MD5 value; The MD5 value judgment module is used to compare and judge the original MD5 value with the decrypted MD5 value. When the original MD5 value is the same as the decrypted MD5 value, the authorization has not been tampered with. When the original MD5 value is different from the decrypted MD5 value, the authorization has been tampered with. When the authorization has been tampered with, an early warning message is issued to complete the authorization query of the measuring instrument software.
9. An electronic device, characterized in that: include: one or more processors; Memory; And one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, enable the device to perform the steps of the measuring instrument software authorization query method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the steps of the method for querying software authorization of a measuring instrument as claimed in any one of claims 1 to 7.