Two-dimensional code information processing method and device, electronic equipment and storage medium

By encrypting the QR code information and generating control instructions, the problem of low security in the QR code information processing process is solved, and efficient information protection is achieved.

CN119128939APending Publication Date: 2024-12-13YUZHOU HENGLILAI ALLOY CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411238774.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

During the process of QR code information processing, there are problems such as information leakage, theft, and low application security, resulting in low security.

Method used

The initial QR code information obtained by the scanning code is encrypted through the encryption terminal, and after decryption, control instructions are generated, and symmetric encryption, asymmetric encryption, mixed encryption or hash function encryption is used to ensure the security of the QR code information.

Benefits of technology

It improves the security of QR code information processing, prevents information leakage and theft, and enhances information protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119128939A_ABST
    Figure CN119128939A_ABST
Patent Text Reader

Abstract

The invention provides a two-dimensional code information processing method and device, electronic equipment and a storage medium. The method is applied to the technical field of data processing, and comprises the steps that to-be-processed two-dimensional code information is received, and the to-be-processed two-dimensional code information is obtained by encrypting initial two-dimensional code information obtained by a code scanning end through an encryption end; decrypting the two-dimensional code information to be processed to obtain plain code information; and generating a control instruction according to the plain code information. In this way, the security of two-dimensional code information processing can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a two-dimensional code information processing method, device, electronic device and storage medium. Background Art

[0002] QR code information processing makes information transmission more convenient and faster. You only need to scan the QR code with a smart phone or a scanning device to obtain relevant information without manually entering the URL or other complex operations. This greatly improves the efficiency and convenience of information acquisition; compared with traditional barcodes, QR codes can store more information. QR codes can encode various types of data, such as text, URLs, pictures, audio, etc., so that QR codes can be applied to various scenarios to meet different needs; merchants can display and promote product information by adding QR codes on product packaging, and consumers can scan QR codes to understand product details, prices, promotions, etc., so as to make purchase decisions; companies can understand users' interests, behavioral habits and other information through statistics on user scanning behaviors, so as to carry out accurate market positioning and promotion, which helps companies make more accurate decisions and improve marketing effects; by adding anti-counterfeiting QR codes on product packaging, consumers can verify the authenticity and legality of products by scanning QR codes, effectively curbing the circulation of counterfeit and shoddy goods. Therefore, QR code information processing is of great significance.

[0003] At present, in the process of processing QR code information, the scanned QR code information is usually processed directly based on the QR code itself. Therefore, there are a series of problems such as information leakage, theft, application security, information sharing, etc., resulting in low security of QR code information processing. Summary of the invention

[0004] The present invention provides a two-dimensional code information processing method, device, electronic equipment and storage medium.

[0005] According to a first aspect of the present invention, a two-dimensional code information processing method is provided. The method comprises:

[0006] Receiving the QR code information to be processed, where the QR code information to be processed is obtained by encrypting the initial QR code information obtained by the scanning end through the encryption end;

[0007] Decrypting the two-dimensional code information to be processed to obtain plain code information;

[0008] A control instruction is generated according to the plain code information.

[0009] Furthermore, the initial QR code information obtained by the code scanning terminal includes:

[0010] Scan the target QR code with a barcode scanner to obtain a QR code image;

[0011] The two-dimensional code image is decoded by a preset component to obtain the initial two-dimensional code information.

[0012] Furthermore, the encryption method for encrypting the initial two-dimensional code information obtained by the scanning end includes at least one of the following: symmetric encryption, asymmetric encryption, hybrid encryption and hash function encryption.

[0013] Furthermore, the plain code information includes at least one of the following: QR code text information, timestamp information and encryption algorithm type information.

[0014] Further, generating a control instruction according to the plain code information includes:

[0015] A control instruction is generated according to the plain code information and the working state of the bus working state machine.

[0016] Further, the generating of the control instruction according to the plaintext information and the working state of the bus working state machine includes:

[0017] Obtaining the working state of the bus working state machine;

[0018] According to the working state, the plain code information is matched with a preset state mapping table to obtain a corresponding control instruction.

[0019] According to a second aspect of the present invention, a two-dimensional code information processing device is provided. The device comprises:

[0020] A receiving module, used for receiving the two-dimensional code information to be processed, wherein the two-dimensional code information to be processed is obtained by encrypting the initial two-dimensional code information obtained by the scanning end through the encryption end;

[0021] A decryption module, used to decrypt the two-dimensional code information to be processed to obtain plain code information;

[0022] A generating module is used to generate a control instruction according to the plain code information.

[0023] According to a third aspect of the present invention, an electronic device is provided, comprising: a memory and a processor, wherein a computer program is stored in the memory, and the method is implemented when the processor executes the program.

[0024] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the program implements the method when executed by a processor.

[0025] By receiving the QR code information to be processed, the QR code information to be processed is obtained by encrypting the initial QR code information obtained by the scanning end through the encryption end; decrypting the QR code information to be processed to obtain the plain code information; and generating the control instruction according to the plain code information, the encryption in the process of QR code information processing is realized, and the security of QR code information processing is improved.

[0026] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The above and other features, advantages and aspects of the embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. The accompanying drawings are used to better understand the present invention and do not constitute a limitation of the present invention. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0028] Figure 1 A flowchart of a two-dimensional code information processing method according to an embodiment of the present invention is shown;

[0029] Figure 2 A block diagram of a two-dimensional code information processing device according to an embodiment of the present invention is shown;

[0030] Figure 3 A block diagram of an exemplary electronic device capable of implementing embodiments of the present invention is shown. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0033] Figure 1 A flowchart of a two-dimensional code information processing method according to an embodiment of the present invention is shown, and the method includes:

[0034] S101, receiving the two-dimensional code information to be processed, wherein the two-dimensional code information to be processed is obtained by encrypting the initial two-dimensional code information obtained by the scanning end through the encryption end.

[0035] In some embodiments, the initial two-dimensional code information obtained by the code scanning end includes: scanning the target two-dimensional code through a code scanning gun to obtain a two-dimensional code image; decoding the two-dimensional code image through a preset component to obtain the initial two-dimensional code information. According to an embodiment of the present invention, the code scanning gun adopts high-speed image acquisition and processing technology, which can quickly capture the target two-dimensional code image. At the same time, the decoding component uses an optimized algorithm and model to efficiently and accurately decode the two-dimensional code; the combination of the code scanning gun and the decoding component realizes an automated two-dimensional code recognition process; the code scanning gun and the preset decoding component have been strictly tested and optimized, and have high reliability and stability.

[0036] In some embodiments, the encryption method for encrypting the initial two-dimensional code information obtained by the code scanning end includes at least one of the following: symmetric encryption, asymmetric encryption, hybrid encryption and hash function encryption. According to an embodiment of the present invention, by encrypting the initial two-dimensional code information, the security of two-dimensional code information processing is improved.

[0037] S102, decrypting the two-dimensional code information to be processed to obtain plain code information.

[0038] In some embodiments, the plain code information includes at least one of the following: QR code text information, timestamp information, and encryption algorithm type information. According to an embodiment of the present invention, by directly embedding clear text information into the QR code, the clear text information can be directly obtained after scanning the QR code without decoding or other operations; the timestamp information is embedded into the QR code. The timestamp can indicate the specific time when the QR code is generated, and is used to record and verify the validity period of the QR code. It can determine whether the QR code has expired or been tampered with, and provide the validity verification and time-sensitive functions of the QR code.

[0039] S103: Generate a control instruction according to the plain code information.

[0040] In some embodiments, generating a control instruction according to the plain code information includes: generating a control instruction according to the plain code information and the working state of a bus working state machine.

[0041] In some embodiments, generating a control instruction based on the plain text information and the working state of the bus working state machine includes: obtaining the working state of the bus working state machine (for example, an idle state, a transmission state, etc.); according to the working state, matching the plain text information with a preset state mapping table (a preset state mapping table is a pre-defined table or mapping rule that associates plain text information with corresponding control instructions; the mapping table can be hard-coded in the system or loaded from an external configuration file or database) to obtain a corresponding control instruction.

[0042] According to an embodiment of the present invention, by receiving the two-dimensional code information to be processed, the two-dimensional code information to be processed is obtained by encrypting the initial two-dimensional code information obtained by the scanning end through the encryption end; decrypting the two-dimensional code information to be processed to obtain the plain code information; and generating the control instruction according to the plain code information, the encryption in the process of processing the two-dimensional code information is realized, and the security of the processing of the two-dimensional code information is improved.

[0043] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0044] The above is an introduction to a method embodiment. The following is a further explanation of the solution of the present invention through an apparatus embodiment.

[0045] Figure 2 A block diagram of a two-dimensional code information processing device according to an embodiment of the present invention is shown, the device comprising:

[0046] The receiving module 201 is used to receive the two-dimensional code information to be processed, where the two-dimensional code information to be processed is obtained by encrypting the initial two-dimensional code information obtained by the scanning end through the encryption end;

[0047] The decryption module 202 is used to decrypt the two-dimensional code information to be processed to obtain plain code information;

[0048] The generating module 203 is used to generate a control instruction according to the plain code information.

[0049] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0050] In the technical solution of the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0051] According to an embodiment of the present invention, the present invention also provides an electronic device and a readable storage medium.

[0052] Figure 3 A schematic block diagram of an electronic device 300 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0053] The electronic device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a ROM 302 or a computer program loaded from a storage unit 308 into a RAM 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An I / O interface 305 is also connected to the bus 304.

[0054] A number of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0055] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as a two-dimensional code information processing method. For example, in some embodiments, the two-dimensional code information processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 300 via ROM 302 and / or a communication unit 309. When the computer program is loaded into RAM 303 and executed by the computing unit 301, one or more steps of the two-dimensional code information processing method described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to perform the two-dimensional code information processing method by any other appropriate means (e.g., by means of firmware).

[0056] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0057] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0058] In the context of the present invention, a readable storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A readable storage medium may be a machine-readable signal medium or a machine-readable storage medium. A readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. More specific examples of readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0059] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0060] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0061] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0062] It should be understood that the above-mentioned various forms of processes can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0063] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A two-dimensional code information processing method, characterized in that: include: Receiving the QR code information to be processed, where the QR code information to be processed is obtained by encrypting the initial QR code information obtained by the scanning end through the encryption end; Decrypting the two-dimensional code information to be processed to obtain plain code information; A control instruction is generated according to the plain code information.

2. The two-dimensional code information processing method according to claim 1, characterized in that: The initial QR code information obtained by the code scanning terminal includes: Scan the target QR code with a barcode scanner to obtain a QR code image; The two-dimensional code image is decoded by a preset component to obtain the initial two-dimensional code information.

3. The two-dimensional code information processing method according to claim 2, characterized in that: The encryption method for encrypting the initial two-dimensional code information obtained by the scanning end includes at least one of the following: symmetric encryption, asymmetric encryption, hybrid encryption and hash function encryption.

4. The two-dimensional code information processing method according to claim 3, characterized in that: The plain code information includes at least one of the following: two-dimensional code text information, timestamp information and encryption algorithm type information.

5. The two-dimensional code information processing method according to claim 4, characterized in that: The step of generating a control instruction according to the plain code information includes: A control instruction is generated according to the plain code information and the working state of the bus working state machine.

6. The two-dimensional code information processing method according to claim 5, characterized in that: The generating of the control instruction according to the plain code information and the working state of the bus working state machine comprises: Obtaining the working state of the bus working state machine; According to the working state, the plain code information is matched with a preset state mapping table to obtain a corresponding control instruction.

7. A two-dimensional code information processing device, characterized in that: include: A receiving module, used for receiving the two-dimensional code information to be processed, wherein the two-dimensional code information to be processed is obtained by encrypting the initial two-dimensional code information obtained by the scanning end through the encryption end; A decryption module, used to decrypt the two-dimensional code information to be processed to obtain plain code information; A generating module is used to generate a control instruction according to the plain code information.

8. An electronic device, characterized in that: include: at least one processor; a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method of any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.

Citation Information

Cited By

  • Decoding optimization method and related product

    CN120499399A

  • Decoding optimization method and related products

    CN120499399B