Detection consumable authentication method and device, electronic equipment and readable storage medium

By reading the barcode information of consumables in the testing equipment and performing symmetric lightweight decryption and data integrity verification, the problem of insufficient consumable certification is solved, the legality and integrity of consumables are verified, and the security and reliability of the testing system are improved.

CN121809510APending Publication Date: 2026-04-07ANHUI YOUNG HEARTY MEDICAL APPLIANCE & EQUIP +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-26
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In the existing technology, there is a lack of an effective certification mechanism between testing equipment and consumables. This means that consumables from different manufacturers may be physically compatible, but their testing performance cannot be guaranteed, leading to inaccurate test results.

Method used

By reading the barcode information on the consumables using the testing equipment, and utilizing a symmetric lightweight decryption algorithm and data integrity verification, the legality and integrity of the consumables can be verified, preventing non-original or inferior consumables from being connected to the equipment.

Benefits of technology

This improves the security and reliability of the detection system, prevents inaccurate detection results, and reduces the consumption of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121809510A_ABST
    Figure CN121809510A_ABST
Patent Text Reader

Abstract

The invention discloses a detection consumable authentication method and device, electronic equipment and a readable storage medium, and relates to the technical field of consumable authentication. The method comprises the following steps: reading bar code information on a consumable through detection equipment to obtain a digital ciphertext; performing symmetric lightweight decryption on the digital ciphertext to obtain a decrypted plaintext; performing data integrity verification according to the decrypted plaintext to obtain a verification result; and determining an authentication result of the consumable according to the verification result. Therefore, the digital ciphertext is obtained by automatically identifying the bar code information, and the consumable is identified in combination with a symmetric lightweight decryption algorithm and an integrity verification mechanism, so that the situation that a non-original factory or poor-quality consumable is accessed to equipment to cause the inaccuracy of a detection result is prevented, and the safety and the reliability of a detection system are improved; meanwhile, consumption of computing resources is greatly reduced on the premise that basic safety is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of consumable authentication, and particularly relates to a detection consumable authentication method and device, electronic equipment and a readable storage medium. BACKGROUND

[0002] In the field of Helicobacter pylori detection, the current mainstream detection equipment on the market is usually composed of a host and a disposable sample card (consumable). During detection, the user inserts the sample card into the equipment, and the equipment analyzes the reaction results on the sample card through optical, chemical or biological sensors. However, in the prior art, there is a lack of effective authentication mechanism between the equipment and the consumable. Most of the equipment only roughly matches the consumable through the physical structure (such as the shape of the card slot), or completely relies on the user to select the consumable type. This leads to the fact that consumables from different manufacturers may be compatible in physical structure, but the actual detection performance cannot be guaranteed. SUMMARY

[0003] Therefore, the present application aims to overcome the deficiencies in the prior art, and provides a detection consumable authentication method and device, electronic equipment and a readable storage medium, which are used for automatically decrypting and identifying the barcode information on the consumable, so as to verify the legitimacy and integrity of the disposable sample card (i.e. the consumable) in the Helicobacter pylori and other in vitro diagnostic equipment, prevent non-original or inferior consumables from being connected to the equipment to cause inaccurate detection results, and improve the safety and reliability of the detection system.

[0004] The present application provides the following technical solutions: In a first aspect, the present application provides a detection consumable authentication method, comprising: reading barcode information on a consumable through a detection equipment to obtain digital ciphertext; performing symmetric lightweight decryption on the digital ciphertext to obtain decrypted plaintext; performing data integrity verification according to the decrypted plaintext to obtain a verification result; determining an authentication result of the consumable according to the verification result.

[0005] In an embodiment, the performing symmetric lightweight decryption on the digital ciphertext to obtain decrypted plaintext comprises: performing inverse nonlinear transformation on the digital ciphertext to obtain initial decryption data; performing inverse position permutation on the initial decryption data to obtain permutation data; performing decryption key bits on the permutation data to obtain the decrypted plaintext.

[0006] In an embodiment, the performing data integrity verification according to the decrypted plaintext to obtain a verification result comprises: Compare the first and last check bits in the decrypted plaintext with the first and last check bits in the preset plaintext; If the first and last check bits in the decrypted plaintext are the same as the first and last check bits in the preset plaintext, then the verification result is that the verification is successful. If the first and last check bits in the decrypted plaintext are different from the first and last check bits in the preset plaintext, the verification result is that the verification failed.

[0007] In one embodiment, determining the authentication result of the consumable based on the verification result includes: If the verification result is successful, then the authentication result is successful. If the verification result is that the verification failed, then the authentication result is that the authentication failed.

[0008] In one embodiment, after determining the authentication result of the consumable based on the verification result, the process includes: If the authentication result is successful, then the sample testing of the consumables is triggered; If the authentication result is that the authentication failed, the sample testing of the consumables will not be triggered.

[0009] In one embodiment, the step of reading the barcode information on the consumable using a detection device to obtain the digital ciphertext includes: After the consumable is inserted into the testing device, the barcode information is identified by the barcode recognition sensor of the testing device to obtain the digital ciphertext.

[0010] In one embodiment, before performing symmetric lightweight decryption on the digital ciphertext to obtain the decrypted plaintext, the following steps are included: Whether the ciphertext can be parsed correctly; If normal, then the step of performing symmetric lightweight decryption on the digital ciphertext to obtain the decrypted plaintext is executed.

[0011] Secondly, the present invention proposes a device for testing and certifying consumables, comprising: The reading module is used to read the barcode information on consumables through the detection device to obtain digital ciphertext; The decryption module is used to perform symmetric lightweight decryption on the digital ciphertext to obtain the decrypted plaintext; The verification module is used to perform data integrity verification based on the decrypted plaintext and obtain the verification result; The determination module is used to determine the authentication result of the consumable based on the verification result.

[0012] Thirdly, the present invention provides an electronic device including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the detection consumable authentication method as described in the first aspect.

[0013] Fourthly, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the testing consumables authentication method as described in the first aspect.

[0014] This invention discloses a method, apparatus, electronic device, and readable storage medium for certifying consumables. The method involves reading barcode information from consumables using a testing device to obtain encrypted digital text; performing symmetric lightweight decryption on the encrypted digital text to obtain decrypted plaintext; performing data integrity verification based on the decrypted plaintext to obtain a verification result; and determining the certification result of the consumable based on the verification result. In this way, by automatically identifying barcode information to obtain encrypted digital text, and combining a symmetric lightweight decryption algorithm with an integrity verification mechanism, consumables can be identified, preventing inaccurate test results caused by non-original or substandard consumables being connected to the device, thus improving the security and reliability of the testing system. Simultaneously, it significantly reduces computational resource consumption while ensuring basic security. Attached Figure Description

[0015] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope of protection of the present invention. In the various drawings, similar components are numbered similarly.

[0016] Figure 1 A flowchart of the testing consumables certification method proposed in this embodiment is shown; Figure 2 Another flowchart of the testing consumable certification method proposed in this embodiment is shown; Figure 3 A schematic diagram of the testing consumables certification device proposed in this embodiment is shown.

[0017] Explanation of reference numerals in the attached diagram: 300 - Detection and certification device for consumables; 301 - Reading module; 302 - Decryption module; 303 - Verification module; 304 - Confirmation module. Detailed Implementation

[0018] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.

[0019] The components of the embodiments of the invention described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0020] In the following, the terms “comprising,” “having,” and their cognates, which may be used in various embodiments of the invention, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as excluding, firstly, the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations thereof.

[0021] Furthermore, the terms "first," "second," and "third" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.

[0022] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the invention pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be interpreted as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of the invention.

[0023] Example 1 This disclosure provides a method for certifying testing consumables, which uses the barcode information on the consumables for automatic decryption and identification, so as to realize the legality and integrity verification of disposable sample cards (i.e. consumables) in in vitro diagnostic devices such as Helicobacter pylori, prevent non-original or inferior consumables from being connected to the device and causing inaccurate test results, and improve the security and reliability of the testing system.

[0024] Please see Figure 1 The testing consumable certification method includes steps S101 to S104, and each step is described in detail below.

[0025] Step S101: Read the barcode information on the consumables using the detection device to obtain the digital ciphertext.

[0026] In this embodiment, the barcode information of the consumable inserted into the card slot of the detection device is read by the detection device to obtain digital encrypted text, thus realizing the physical layer acquisition of the consumable's identity information. The barcode information is a one-dimensional code or similar code on the surface of the consumable, used to indicate random data, keys, and verification information. A specific data structure ensures uniqueness and anti-counterfeiting, which is the basis of authentication. Furthermore, the one-dimensional code can be replaced with a two-dimensional code or a color code to improve information capacity and resistance to soiling; or an RFID tag can be used instead of the barcode to achieve authentication through wireless sensing, suitable for contactless scenarios.

[0027] In one specific embodiment, step S101 includes: after the consumable is inserted into the detection device, the barcode information is identified by the barcode recognition sensor of the detection device to obtain the digital ciphertext.

[0028] In this embodiment, after the user inserts the consumable into the testing device, the device's barcode recognition sensor identifies the unique barcode information on the consumable and outputs the corresponding digital sequence to obtain the encrypted digital text. The barcode recognition sensor can be located inside the device to ensure the authentication process is automated; alternatively, a camera module combined with an image recognition algorithm can be used to achieve compatibility with multiple barcode types.

[0029] Step S102: Perform symmetric lightweight decryption on the digital ciphertext to obtain the decrypted plaintext.

[0030] In this embodiment, symmetric lightweight decryption is performed on the digital ciphertext to obtain the decrypted plaintext. Symmetric lightweight decryption has low computational complexity and low hardware resource consumption, enabling fast decryption on embedded devices, IoT terminals, or mobile devices, significantly improving the real-time performance of data processing. Compared to asymmetric decryption (such as RSA and ECC), symmetric lightweight decryption requires less computing power, memory, and power consumption. Furthermore, symmetric encryption / decryption uses the same key, and the algorithm structure is symmetric and highly optimized, ensuring consistent encryption and decryption processes and rapid response in paired communication systems, reducing end-to-end communication latency.

[0031] It should be noted that the digital ciphertext of the consumables is obtained by symmetric lightweight encryption of the preset plaintext. For example, the preset plaintext is encrypted using a shared key (symmetric key) pre-configured on the device; the symmetrically encrypted ciphertext is then permuted according to preset rules; and finally, the permuted ciphertext undergoes a non-linear transformation to obtain the digital ciphertext of the consumables.

[0032] In addition, the manufacturer identifier whitelist can be extended to a dynamic key system, such as encrypted verification based on timestamps or device serial numbers to enhance anti-counterfeiting strength; or cloud verification can be introduced, where the device uploads barcode data to the server for secondary verification.

[0033] In one specific embodiment, before step S102, the method includes: parsing whether the digital ciphertext is normal; if it is normal, then performing the step of symmetric lightweight decryption of the digital ciphertext to obtain the decrypted plaintext.

[0034] In this embodiment, before performing the decryption operation, the received digital ciphertext is first preliminarily parsed to confirm whether its format is complete, its length is compliant, and whether there is any missing data or noise interference, in order to determine whether the digital ciphertext is normal. If the determination result is normal, the subsequent decryption process continues; otherwise, the authentication process is directly terminated, and a message "barcode abnormal" or "unrecognizable" is displayed.

[0035] Please see Figure 2 In one specific embodiment, step S102 includes steps S1021 to S1023, and each step is described in detail below.

[0036] Step S1021: Perform an inverse nonlinear transformation on the digital ciphertext to obtain initial decryption data.

[0037] In this embodiment, the inverse operation of the nonlinear transformation during encryption is performed to obtain the initial decrypted data. The inverse nonlinear transformation is used to restore the nonlinear obfuscation operations introduced during encryption. For example, S-box mapping or other algebraic functions may be used to enhance security in the original encryption stage; here, their mathematical inverse functions are applied for inverse operation to recover part of the original bit structure.

[0038] As an example, if the ciphertext is 300682, the encryption is "multiplied by 3 (mod 10)", so the decryption is "multiplied by 7 (mod 10)" (because 3x7=21≡1 mod 10). This gives [3, 0, 0, 6, 8, 2]->[1, 0, 0, 2, 6, 4].

[0039] Step S1022: Perform reverse position permutation on the initial decrypted data to obtain permuted data.

[0040] In this embodiment, during the encryption process, the data bits are typically rearranged according to specific rules, such as a permutation table based on key control. Therefore, according to a preset inverse permutation rule, the initial decrypted data is reordered to approximate the data layout of the original plaintext, resulting in the permuted data.

[0041] As an example, [2, 6, 4, 1, 0, 0] is obtained by replacing [1, 0, 0, 2, 6, 4].

[0042] Step S1023: Decrypt the key bits of the permutation data to obtain the decrypted plaintext.

[0043] In this embodiment, a shared key, i.e. a symmetric key, pre-configured on the device is used to perform XOR, modulo addition inverse operation, or other lightweight decryption operations on the permuted data, ultimately restoring the unencrypted original plaintext and obtaining the decrypted plaintext. For example, performing the inverse operation of modulo 10 addition (i.e., subtracting the key 5 modulo 10) restores the original plaintext [7, 1, 9, 6, 5, 5], i.e., 719655.

[0044] Step S103: Perform data integrity verification based on the decrypted plaintext to obtain the verification result.

[0045] In this embodiment, data integrity is verified based on the decrypted plaintext to confirm that the decrypted data has not been illegally tampered with, accidentally damaged, or had bit errors during transmission or storage, ensuring that the restored information is completely consistent with the data sent by the original sender, thereby guaranteeing the reliability, security, and trustworthiness of the system.

[0046] In one specific embodiment, step S103 includes: comparing the first and last check bits in the decrypted plaintext with the first and last check bits in the preset plaintext; if the first and last check bits in the decrypted plaintext are the same as the first and last check bits in the preset plaintext, the verification result is that the verification passed; if the first and last check bits in the decrypted plaintext are different from the first and last check bits in the preset plaintext, the verification result is that the verification failed.

[0047] In this embodiment, after obtaining the decrypted plaintext, its first and last check bits are further compared with the corresponding check bits in the preset plaintext. If they match, the verification is considered successful; otherwise, the verification is considered unsuccessful. This method utilizes the inherent structural characteristics of legitimate plaintext as an integrity criterion, achieving rapid data authenticity screening without additional computational overhead, significantly improving the system's security response efficiency under resource-constrained conditions; it is particularly suitable for application scenarios involving high-speed decryption verification of fixed-format instructions or messages.

[0048] It should be noted that a few starting bits (such as the first 8 bits) and a few ending bits (such as the last 8 bits) can also be extracted from the original plaintext obtained by decryption, and a check value can be generated by a preset algorithm (such as simple XOR, modulo check or CRC-8), and then compared with the check field reserved in the original plaintext to determine whether they are consistent.

[0049] Step S104: Determine the certification result of the consumable based on the verification result.

[0050] In this embodiment, the authentication result of the consumable is determined based on the verification result. The legality of its source can be judged based on the structural integrity of the decrypted plaintext, thereby accurately determining whether the consumable can pass the authentication of the testing equipment, realizing efficient and reliable identification of the authenticity of the consumable.

[0051] In one specific embodiment, step S104 includes: if the verification result is that the verification is successful, then the authentication result is successful; if the verification result is that the verification is unsuccessful, then the authentication result is unsuccessful.

[0052] In this embodiment, if the verification result is successful, the authentication result is successful; if the verification result is unsuccessful, the authentication result is unsuccessful, further ensuring the security of consumable authentication.

[0053] In one specific embodiment, after step S104, the process includes: if the authentication result is successful, then triggering sample detection of the consumables; if the authentication result is unsuccessful, then not triggering sample detection of the consumables.

[0054] In this embodiment, if the authentication result is successful, sample testing of the consumables is triggered; if the authentication result is unsuccessful, sample testing of the consumables is not triggered. This ensures the compatibility between the sample card and the device by forcing the use of the original manufacturer's consumables corresponding to the testing equipment, reducing testing errors caused by consumable differences, and thus improving the reliability of Helicobacter pylori diagnosis. For example, the reaction time of the original manufacturer's consumables is consistent with the calibration of the device's optical sensor, avoiding false negative results.

[0055] The consumable authentication method proposed in this embodiment reads the barcode information on the consumable using a testing device to obtain digital ciphertext; performs symmetric lightweight decryption on the digital ciphertext to obtain decrypted plaintext; performs data integrity verification based on the decrypted plaintext to obtain a verification result; and determines the authentication result of the consumable based on the verification result. In this way, by automatically recognizing the barcode information to obtain digital ciphertext, and combining the symmetric lightweight decryption algorithm with the integrity verification mechanism, consumable identification is achieved, preventing non-original or inferior consumables from being connected to the device and causing inaccurate test results, thus improving the security and reliability of the testing system; at the same time, it significantly reduces computational resource consumption while ensuring basic security.

[0056] Example 2 Furthermore, this disclosure provides a testing consumable certification device 300, please refer to [link to relevant documentation]. Figure 3 ,include: The reading module 301 is used to read the barcode information on the consumables through the detection device to obtain the digital ciphertext. Decryption module 302 is used to perform symmetric lightweight decryption on the digital ciphertext to obtain decrypted plaintext; Verification module 303 is used to perform data integrity verification based on the decrypted plaintext and obtain the verification result; The determination module 304 is used to determine the authentication result of the consumable based on the verification result.

[0057] Optionally, the decryption module 302 is further configured to perform an inverse nonlinear transformation on the digital ciphertext to obtain initial decrypted data; perform an inverse position permutation on the initial decrypted data to obtain permuted data; and decrypt the permuted data to obtain the decrypted plaintext.

[0058] Optionally, the verification module 303 is further configured to compare the first and last check bits in the decrypted plaintext with the first and last check bits in the preset plaintext; if the first and last check bits in the decrypted plaintext are the same as the first and last check bits in the preset plaintext, the verification result is that the verification passes; if the first and last check bits in the decrypted plaintext are different from the first and last check bits in the preset plaintext, the verification result is that the verification fails.

[0059] Optionally, the determining module 304 is further configured to determine that if the verification result is a successful verification, the authentication result is a successful authentication; and if the verification result is a failed verification, the authentication result is a failed authentication.

[0060] Optionally, the determining module 304 is further configured to trigger sample detection of the consumables if the authentication result is successful, and not trigger sample detection of the consumables if the authentication result is unsuccessful.

[0061] Optionally, the reading module 301 is also used to identify the barcode information through the barcode recognition sensor of the detection device after the consumable is inserted into the detection device, and obtain the digital ciphertext.

[0062] Optionally, the decryption module 302 is further configured to analyze whether the digital ciphertext is normal; if normal, then the step of performing symmetric lightweight decryption on the digital ciphertext to obtain the decrypted plaintext is executed.

[0063] The apparatus provided in this embodiment can perform the steps of the testing consumable certification method provided in Embodiment 1. To avoid repetition, the steps will not be repeated.

[0064] The consumable authentication device proposed in this embodiment reads the barcode information on the consumable to obtain digital ciphertext; performs symmetric lightweight decryption on the digital ciphertext to obtain decrypted plaintext; performs data integrity verification based on the decrypted plaintext to obtain a verification result; and determines the authentication result of the consumable based on the verification result. In this way, by automatically recognizing the barcode information to obtain digital ciphertext, and combining the symmetric lightweight decryption algorithm with the integrity verification mechanism, consumable identification is achieved, preventing non-original or inferior consumables from being connected to the device and causing inaccurate test results, thus improving the security and reliability of the testing system; at the same time, it significantly reduces computing resource consumption while ensuring basic security.

[0065] Example 3 Furthermore, this disclosure provides a computer device including a memory and a processor. The memory stores a computer program, which, when executed by the processor, implements the testing consumables authentication method described in Embodiment 1.

[0066] The device provided in this embodiment can perform the steps of the testing consumable certification method provided in Embodiment 1. To avoid repetition, the steps will not be repeated.

[0067] Example 4 This disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the testing and certification method for consumables described in Embodiment 1.

[0068] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0069] The computer-readable storage medium provided in this embodiment can implement the testing consumables certification method provided in Embodiment 1. To avoid repetition, it will not be described again here.

[0070] In all examples shown and described herein, any specific values ​​should be interpreted as merely exemplary and not as limitations; therefore, other examples of exemplary embodiments may have different values.

[0071] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0072] The above-described embodiments are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention.

Claims

1. A method for certifying consumables, characterized in that, include: The barcode information on the consumables is read by the testing equipment to obtain the encrypted digital information; The digital ciphertext is decrypted using symmetric lightweight decryption to obtain the decrypted plaintext; Data integrity is verified based on the decrypted plaintext to obtain the verification result; The certification result of the consumable is determined based on the verification result.

2. The testing consumable certification method according to claim 1, characterized in that, The symmetric lightweight decryption of the digital ciphertext to obtain the decrypted plaintext includes: Perform an inverse nonlinear transformation on the digital ciphertext to obtain the initial decrypted data; Perform inverse position permutation on the initial decrypted data to obtain permuted data; The key bits of the permutation data are decrypted to obtain the decrypted plaintext.

3. The testing consumable certification method according to claim 1, characterized in that, The step of performing data integrity verification based on the decrypted plaintext to obtain the verification result includes: Compare the first and last check bits in the decrypted plaintext with the first and last check bits in the preset plaintext; If the first and last check bits in the decrypted plaintext are the same as the first and last check bits in the preset plaintext, then the verification result is that the verification is successful. If the first and last check bits in the decrypted plaintext are different from the first and last check bits in the preset plaintext, the verification result is that the verification failed.

4. The testing consumable certification method according to claim 1, characterized in that, Determining the authentication result of the consumable based on the verification result includes: If the verification result is successful, then the authentication result is successful. If the verification result is that the verification failed, then the authentication result is that the authentication failed.

5. The method for certifying testing consumables according to any one of claims 1 to 4, characterized in that, After determining the authentication result of the consumable based on the verification result, the process includes: If the authentication result is successful, then the sample testing of the consumables is triggered; If the authentication result is that the authentication failed, the sample detection of the consumables will not be triggered.

6. The testing consumable certification method according to claim 1, characterized in that, The process of reading the barcode information on the consumables using a detection device to obtain digital encrypted text includes: After the consumable is inserted into the testing device, the barcode information is identified by the barcode recognition sensor of the testing device to obtain the digital ciphertext.

7. The testing consumable certification method according to claim 1, characterized in that, Before performing symmetric lightweight decryption on the digital ciphertext to obtain the decrypted plaintext, the process includes: Whether the ciphertext can be parsed correctly; If normal, then the step of performing symmetric lightweight decryption on the digital ciphertext to obtain the decrypted plaintext is executed.

8. A device for testing and certifying consumables, characterized in that, include: The reading module is used to read the barcode information on consumables through the detection device to obtain digital ciphertext; The decryption module is used to perform symmetric lightweight decryption on the digital ciphertext to obtain the decrypted plaintext; The verification module is used to perform data integrity verification based on the decrypted plaintext and obtain the verification result; The determination module is used to determine the authentication result of the consumable based on the verification result.

9. An electronic device, characterized in that, It includes a memory and a processor, the memory storing a computer program that, when executed by the processor, implements the testing consumables certification method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the testing consumables certification method as described in any one of claims 1 to 7.