Data secure transmission method, device, equipment and storage medium

By adding specific values ​​to the request parameters of the QR code and encrypting them, combined with the back-end checksum duration/number limit, the problem of easy tampering of QR code parameters is solved, and the security of data transmission and system stability are improved. , avoiding data leakage and system intrusion.

CN117313759BActive Publication Date: 2024-08-27SAVABOON INTELLIGENT TECH(QINGDAO) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311286266.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-07
Publication Date
2024-08-27
Estimated Expiration
2043-10-07

AI Technical Summary

Technical Problem

In the existing technology, the parameters of the QR code are easily tampered with, leading to security risks of data leakage and system intrusion, and it is difficult to effectively prevent malicious requests and parameter tampering.

Method used

Add a specific value to the request parameters of the QR code, and verify whether the specific value meets the preset requirements through the backend. If it meets the preset requirements, the corresponding data will be called. If it does not meet the requirement, exception information will be sent. Combined with the encryption algorithm to improve parameter security, And prevent abuse with preset duration and frequency limits.

Benefits of technology

It effectively reduces the risk of QR code parameter tampering, improves the security of data transmission, avoids data leakage and system intrusion, and enhances system reliability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117313759B
    Figure CN117313759B
Patent Text Reader

Abstract

The present application provides a method, device, equipment and storage medium for secure data transmission, the method comprising: generating a QR code corresponding to the business request according to a business request sent by a user terminal, wherein the QR code includes a request parameter with a specific value; in response to the operation of the user terminal scanning the QR code, extracting the request parameter in the QR code and sending it to the back end; controlling the back end to determine whether the specific value in the request parameter meets the preset requirements, if so, obtaining the corresponding data called by the back end according to the request parameter, and displaying the corresponding data after processing; if not, sending an abnormal information to the user terminal. The technical effect of the present application is: reducing the risk of tampering with the parameters of the QR code, and avoiding data leakage and system intrusion as much as possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for secure data transmission. Background Art

[0002] QR code is a popular encoding method in recent years. It can store more information than traditional barcodes. By scanning the QR code on the device with a terminal equipped with scanning software, you can get the relevant information stored on the device.

[0003] In the prior art, the front end generally obtains parameters by scanning a QR code through a user terminal, and requests the back end interface with the parameters. The back end transmits the data to the front end according to the requested parameters. Once the parameters obtained by the front end from the QR code are tampered with, this may lead to security risks such as data leakage and system intrusion. Summary of the invention

[0004] The present application provides a method, apparatus, device and storage medium for secure data transmission, which are used to reduce the risk of tampering with QR code parameters and to avoid data leakage and system intrusion as much as possible.

[0005] In the first aspect, the present application provides a method for secure data transmission, the method comprising: generating a QR code corresponding to the business request based on a business request sent by a user terminal, wherein the QR code includes a request parameter with a specific value; in response to the user terminal scanning the QR code, extracting the request parameter in the QR code and sending it to a back end; controlling the back end to determine whether the specific value in the request parameter meets preset requirements, and if so, obtaining corresponding data called by the back end according to the request parameter, and displaying the corresponding data after processing; if not, sending an exception message to the user terminal.

[0006] By adopting the above technical solution, by adding specific values ​​to the request parameters of the QR code and transmitting them to the back end together with the parameters, the back end verifies the specific values ​​after receiving the request parameters. If the verification is successful, the corresponding data is called and sent to the front end. If the verification fails, an abnormal information is sent to the user end, thereby reducing the risk of tampering with the parameters of the QR code and avoiding data leakage and system intrusion as much as possible.

[0007] Optionally, based on the business request sent by the user terminal, a QR code corresponding to the business request is generated, wherein the QR code includes a request parameter with a specific value, including: based on the business request sent by the user terminal, a request parameter corresponding to the business request is generated; and the specific value is inserted or spliced ​​into the request parameter to generate a QR code corresponding to the business request.

[0008] By adopting the above technical solution, specific values ​​can be directly inserted into the request parameters of the QR code, so that when the parameters of the QR code are subsequently tampered with, the backend can directly detect that the request parameters of the QR code have been tampered with, thereby reducing the risks brought about by the tampering of the QR code parameters and avoiding data leakage and system intrusion as much as possible.

[0009] Optionally, inserting or concatenating the specific value into the request parameter includes: inserting or concatenating the specific value into the request parameter through an encryption algorithm.

[0010] By adopting the above technical solution and using an encryption algorithm to encrypt specific values ​​and request parameters, the security of the parameters can be increased, and the parameter information can be prevented from being maliciously stolen or tampered with. The encrypted parameters are not easily cracked, thereby improving the security of data transmission.

[0011] Optionally, in response to the user terminal scanning the QR code, after extracting the request parameters in the QR code and sending them to the back end, the method also includes: sending verification information to the back end; receiving feedback information sent by the back end after reading the verification information; judging whether the feedback information meets preset standards, if so, judging that the back end is in a normal state, and if not, sending an alarm message to the staff's terminal device.

[0012] By adopting the above technical solution, by sending verification information, receiving feedback information and making judgments, and sending alarm information to staff, it is possible to monitor the backend status in real time, respond quickly to abnormal situations, and improve the reliability and security of the system. It reduces manual intervention, improves efficiency, reduces the risk of business interruption and loss, and ensures the stable operation of the system.

[0013] Optionally, after generating a QR code corresponding to the business request based on the business request sent by the user terminal, it also includes: if the request operation triggered by the user terminal scanning the QR code is not received within a first preset time period, the QR code is invalidated; the request operation includes extracting the request parameters in the QR code and sending them to the back end.

[0014] By adopting the above technical solution, the QR code is set to invalid when no request operation is received within the preset time period, which can prevent malicious requests, improve security, reduce resource waste, enhance user experience and simplify management processes, help protect the security and stability of the system, and improve the user experience of users and administrators.

[0015] Optionally, after generating a QR code corresponding to the business request according to the business request sent by the user terminal, it also includes: if more than a preset number of request operations are received within a second preset time period, the QR code is invalidated and a warning message is sent to the user terminal.

[0016] By adopting the above technical solution, when the QR code receives more than a preset number of request operations within the second preset time period, it is set to invalid and a warning message is sent to the user end. This can prevent abuse and malicious requests, improve security, reduce resource waste, enhance user experience, and achieve rapid response and processing of system abnormalities, which helps to protect the security and stability of the system, improve user experience, and take timely measures to deal with abnormal situations.

[0017] Optionally, after obtaining the corresponding data called by the backend according to the request parameters, it also includes: processing the corresponding data to generate image data; receiving the image data and displaying the image.

[0018] By adopting the above technical solution, processing the corresponding data, generating image data, and receiving and displaying images, the data processing capability can be improved, data visualization can be achieved, information transmission and communication can be facilitated, insights can be provided, and user experience can be improved.

[0019] In a second aspect, the present application provides a device for secure data transmission, the device comprising: a generation module, a response module and a processing module; wherein the generation module is used to generate a QR code corresponding to the business request based on the business request sent by the user terminal, wherein the QR code includes a request parameter with a specific value; the response module is used to respond to the operation of the user terminal scanning the QR code, extract the request parameter in the QR code and send it to the back end; the processing module is used to control the back end to determine whether the specific value in the request parameter meets the preset requirements. If so, the corresponding data called by the back end according to the request parameter is obtained, and the corresponding data is processed and displayed; if not, an exception message is sent to the user terminal.

[0020] By adopting the above technical solution, by adding specific values ​​to the request parameters of the QR code and transmitting them to the back end together with the parameters, the back end verifies the specific values ​​after receiving the request parameters. If the verification is successful, the corresponding data is called and sent to the front end. If the verification fails, an abnormal information is sent to the user end, thereby reducing the risk of tampering with the parameters of the QR code and avoiding data leakage and system intrusion as much as possible.

[0021] In a third aspect, the present application provides an electronic device that adopts the following technical solution: it includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes a computer program such as any of the above-mentioned methods for secure data transmission.

[0022] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: storing a computer program that can be loaded by a processor and execute any of the above-mentioned methods for secure data transmission.

[0023] In summary, the present application includes at least one of the following beneficial technical effects:

[0024] 1. Reduce the risk of QR code parameters being tampered with, and try to avoid data leakage and system intrusion;

[0025] 2. Using encryption algorithms to encrypt specific values ​​and request parameters can increase the security of parameters and prevent parameter information from being maliciously stolen or tampered with. The encrypted parameters are not easily cracked, which improves the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a flowchart of a method for secure data transmission provided by an embodiment of the present application;

[0027] Figure 2 It is a structural schematic diagram of a device for secure data transmission provided in an embodiment of the present application;

[0028] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0029] Explanation of the accompanying drawings: 1. Response module; 2. Generation module; 3. Comparison module; 4. Output module; 1000. Electronic device; 1001. Processor; 1002. Communication bus; 1003. User interface; 1004. Network interface; 1005. Memory. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0031] In the description of the embodiments of the present application, words such as "illustrative", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "illustrative", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "illustrative", "for example" or "for example" is intended to present related concepts in a concrete way.

[0032] Figure 1It is a flow chart of a method for secure data transmission provided by an embodiment of the present application. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows; unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps may be executed in other orders; and Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0033] The present application discloses a method for secure data transmission, such as Figure 1 As shown, the method includes S101-S103.

[0034] S101, generating a QR code corresponding to the service request according to the service request sent by the user terminal, wherein the QR code includes a request parameter with a specific value.

[0035] In one example, with the rapid development of mobile Internet technology, more and more financial products and electronic payment services carry and display business information in the form of QR codes. However, the QR codes used in various business scenarios usually have different QR code data structures. When there is a need to generate related QR codes in different business scenarios, the QR code generation and processing is usually performed for each business scenario according to its own QR code data structure. The front end obtains the parameters by the user scanning the QR code, and then requests the back end interface with the request parameters. The back end transmits the data to the front end according to the request parameters. In the process of the back end transmitting the data to the front end according to the request parameters, the parameters obtained by the front end from the QR code may be tampered with, thereby affecting the front end to obtain data and subsequent display.

[0036] Generally speaking, when generating a QR code, there may be malicious users or attackers making illegal or abnormal requests to the interface. These requests may violate the design intent of the interface and may cause abnormal operation of the interface, data leakage, system crash or other security issues. Malicious requests may include but are not limited to frequent requests: attackers consume server resources by sending a large number of requests, resulting in service unavailability or slow response; parameter tampering: attackers may modify request parameters to obtain unauthorized data or perform illegal operations; this application is mainly intended to prevent attackers from modifying request parameters, obtaining unauthorized data or performing illegal operations.

[0037] In order to avoid the above situation, this application adds a specific value to the request parameter of the QR code, and the backend verifies whether the specific value meets the requirements to achieve secure data transmission. If the specific value meets the requirements, the backend will consider this request as a normal request, call the corresponding data, and display it through the front-end page; otherwise, it will consider this request as an abnormal request, and directly display an error through the front-end page after an abnormal request.

[0038] When the front-end page receives a business request from a user, it will obtain the business parameters that need to be passed to the back-end based on the business request; based on the parsed business parameters, it will construct request parameters containing specific values, and can concatenate, encrypt or otherwise process the specific values ​​with the business parameters to generate the final request parameters. Use a QR code generation library or tool to convert the constructed request parameters into a QR code, and generate a static QR code image or a dynamic QR code based on actual needs, and then display the generated QR code to the user through the front-end page.

[0039] Here is an explanation of the specific value: a specific value is a numerical value or string with special meaning or function determined according to business requirements. When generating a QR code, the specific value is used as part of the request parameter to identify, distinguish or activate a specific business logic or function. The specific value can be a key, token, identifier or other value with uniqueness or special meaning. It can be used to verify user identity, authorize access, activate a special function, pass specific configuration information, etc.

[0040] The specific content and meaning of the specific value depends on the business needs and can be defined and used according to the actual situation. When generating a QR code, the specific value is used as part of the request parameter to achieve the purpose of business logic processing according to the specific value. The specific value can be set to different values ​​according to the interface usage scenario. It is agreed that different values ​​represent different scenarios. The specific value has the characteristics of abstraction and low readability and is not easy to be cracked.

[0041] Based on the business request sent by the user end, a QR code corresponding to the business request is generated, wherein the QR code includes a request parameter with a specific value. Specifically, the following steps are performed: based on the business request sent by the user end, a request parameter corresponding to the business request is generated; and a specific value is inserted or concatenated into the request parameter to generate a QR code corresponding to the business request.

[0042] In one example, according to the business request sent by the user end, the front end generates the corresponding request parameters according to the agreed rules. The request parameter can be a string of characters or a key-value pair. The specific format depends on the business requirements and the back-end interface requirements. According to the business requirements, a specific value is inserted or spliced ​​into a field or position in the request parameter. The specific value can be a business code, a user ID, a timestamp, etc., which is used to identify or distinguish different requests. Using a QR code generation library or tool, the front end converts the generated request parameters into the form of a QR code. The request parameters can be used as the content of the QR code, and then converted into a QR code using the library. The front end displays the generated QR code to the user through the front end, which can be displayed on the front end page or displayed on a mobile device for the user to scan. The front end can generate the corresponding request parameters according to the business request sent by the user end, and insert or splice the specific value into the request parameter, and finally generate a QR code corresponding to the business request. The user can pass the request parameters to the back end by scanning the QR code to realize the processing of related business.

[0043] The specific value is inserted or concatenated into the request parameter through an encryption algorithm.

[0044] In one example, the encryption algorithm may be MD5, SHA, etc. MD5 and SHA are both common encryption algorithms used to encrypt data and generate hash values. They can convert data of any length into a hash value of fixed length. MD5 (Message Digest Algorithm 5) is a widely used hash algorithm that generates a 128-bit (16-byte) hash value. It is based on a grouped message digest algorithm, which divides the input data into 512-bit (64-byte) blocks for processing and finally generates a hash value. The MD5 algorithm is generally used for data integrity verification, file checksums, and simple data encryption. SHA (Secure Hash Algorithm) is a general term for a series of hash algorithms, including different variants such as SHA-1, SHA-256, SHA-384, and SHA-512. Among them, SHA-1 is the earliest version in the SHA algorithm family and generates a 160-bit (20-byte) hash value. However, due to security vulnerabilities in SHA-1, it is no longer recommended. SHA-256, SHA-384 and SHA-512 are SHA-2 series algorithms, which generate 256-bit, 384-bit and 512-bit hash values ​​respectively. SHA-2 series algorithms are currently widely used in data encryption, digital signature and other fields.

[0045] In response to the user's operation of scanning the QR code, after extracting the request parameters in the QR code and sending them to the back end, it also includes: sending verification information to the back end; receiving feedback information sent by the back end after reading the verification information; judging whether the feedback information meets the preset standards, if so, judging that the back end is in a normal state, if not, sending an alarm message to the staff's terminal device.

[0046] In one example, in the process of secure data transmission, in addition to the QR code technology and request parameter verification mentioned above, there are other key steps and technologies to ensure the security and reliability of data transmission. The following is a detailed description of these steps. After the user scans the QR code and extracts the request parameters, these verification information are sent to the backend. The verification information may include user identity authentication, access permission verification, etc., to ensure that only legitimate users can access and operate the backend system. After receiving the verification information, the backend verifies and parses it. According to the verification results, the backend generates corresponding feedback information and sends it back to the user. The feedback information may include status information of success or failure of the operation, the result of the data request, etc. After the user receives the feedback information sent by the backend, it will parse and judge it. The user will verify whether the feedback information meets the preset standards, such as whether it contains a specific status code or success / failure mark. This ensures that the backend is in a normal state and the operation request is processed correctly. If the user determines that the feedback information does not meet the preset standards, that is, an abnormality or error occurs in the backend, the user will trigger the alarm mechanism, and the alarm information will be sent to the terminal device of the staff so that timely measures can be taken to troubleshoot and repair the fault.

[0047] After generating a QR code corresponding to the business request according to the business request sent by the user terminal, it also includes: if the request operation triggered by the user terminal scanning the QR code is not received within the first preset time period, the QR code will be invalid; the request operation includes extracting the request parameters in the QR code and sending them to the back end.

[0048] In one example, in order to enhance the security of data transmission, a preset time can be set. During this time, if the user does not perform the request operation (i.e., does not scan the QR code and extract the request parameters and send them to the backend), the QR code will be set to an invalid state. When generating a QR code, a preset time can be set, that is, it is stipulated that the user must complete the request operation within a fixed time. This time can be set according to specific needs and security requirements, such as 30 seconds or 1 minute. If the user does not complete the request operation within the preset time, that is, does not extract the request parameters in the QR code and send them to the backend, the system will set the QR code to an invalid state. Then any subsequent request operation for the QR code will be rejected. By setting a preset time and monitoring the request operation, malicious users can be effectively prevented from retaining and abusing the QR code for a long time. If the user does not complete the request operation within the preset time, the system will automatically invalidate the QR code, thereby protecting the security of the data. At the same time, this can also avoid potential threats and risks caused by the long-term retention of the QR code.

[0049] After generating a QR code corresponding to the business request according to the business request sent by the user terminal, it also includes: if more than a preset number of request operations are received within a second preset time period, the QR code will be invalidated and a warning message will be sent to the user terminal.

[0050] In one example, in order to enhance the security of data transmission, in addition to setting a preset duration, a preset number of times can also be set. Within this number of times, if a request operation exceeding the preset number is received, the QR code is set to an invalid state and a warning message is sent to the user end. When generating a QR code, a preset number of times can be set, that is, it is stipulated that the user cannot make multiple requests in a short period of time. This number of times can be set according to specific needs and security requirements. The user end will record the number of request operations and update it after each request operation is completed. This number of times can be initialized to 0 after the user scans the QR code and added by 1 after each request operation is completed. If a request operation exceeding the preset number of times is received within the preset number of times, the system will set the QR code to an invalid state and send a warning message to the user end. This means that any subsequent request operations for the QR code will be rejected. When the QR code is set to an invalid state, the system will send a warning message to the user end to remind the user that the QR code has expired and further security measures may need to be taken. By setting a preset number of times and monitoring the number of request operations, malicious users can be effectively prevented from abusing the QR code multiple times. If the system receives more than the preset number of requests within the preset number of times, the system will automatically invalidate the QR code and send a warning message to the user to protect the security of the data. At the same time, it can also remind users to pay attention to the number of times the QR code has been used and the possible security risks.

[0051] S102, in response to the user terminal scanning the QR code, extract the request parameters in the QR code and send them to the backend.

[0052] In one example, the front-end page generates a QR code corresponding to the business request according to the business request sent by the user, and the user can scan the QR code through a scanning tool (such as a mobile phone camera or a code scanning software). The scanning tool will parse the information in the QR code, usually in the form of a string, and extract the request parameters from the parsed string. According to business needs, you can use string processing functions or regular expressions to extract specific parameter values. The front-end page assembles the extracted request parameters into a request object or request string to send to the back-end. According to the specific back-end interface specifications, determine the format and method of the request. The specific method can use a network request library or tool to send the constructed request to the back-end. HTTP, WebSocket and other protocols can be used for communication. After receiving the request, the back-end performs corresponding business processing according to the request parameters, and can parse the request parameters, verify the legitimacy of the parameters, and perform database operations.

[0053] Through the above steps, after the user scans the QR code, the front-end page can extract the request parameters in the QR code and send the parameters to the back-end for corresponding business processing. In this way, the interaction between the user end, the front-end page and the back-end can be realized, and specific business logic can be triggered according to the user's operation of scanning the QR code.

[0054] HTTP (Hypertext Transfer Protocol) is an application layer protocol used to transmit hypertext on the Internet. It is the most commonly used protocol in Web applications and is used for communication between clients and servers.

[0055] WebSocket: WebSocket is a protocol for full-duplex communication over the Internet. It provides a real-time, persistent connection that allows two-way communication between a client and a server.

[0056] S103, controlling the backend to determine whether a specific value in the request parameter meets the preset requirements. If so, obtaining the corresponding data called by the backend according to the request parameter, and displaying the corresponding data after processing; if not, sending an exception message to the user end.

[0057] In one example, the front-end page sends a request to the back-end through the HTTP or WebSocket protocol, and the back-end receives the request sent by the client and obtains the specific value in the request. The back-end first detects whether there is a specific value in this request. If it exists, the specific value is checked. If it does not exist, the request is directly stopped and the request error is displayed through the front-end page; if there is a specific value in the current request, it is determined whether the specific value meets the preset requirements. It should be noted here that when generating a QR code, the specific value can be added to the request parameter of the QR code automatically or manually by the system. The specific value can be added by adding query parameters to the URL, adding custom fields to the request header, etc. When adding, the front-end page will form an agreement with the back-end to identify a specific request or operation. These specific values ​​can be pre-defined constants or values ​​dynamically generated according to business needs. After the back-end receives a request with a specific value, it can obtain the specific value by parsing the request parameter or the request header. The back-end verifies the received specific value, and can use conditional statements or regular expressions to verify. After successful verification, the back-end calls the corresponding data or performs the corresponding operation according to the request parameter, and can decide to execute different logics according to the specific value. The backend sends the processed data or execution results as a response to the frontend page, which can be text data or data in other formats. If a specific value does not meet the preset requirements, the backend can send an exception message to the frontend page so that the frontend page can handle it accordingly. The exception message can be sent using HTTP status codes, custom error codes, or error messages.

[0058] The above steps need to be implemented according to the specific development environment, programming language and framework. For example, when using Java to develop the backend, you can use the Servlet or Spring framework to process requests and responses; when using JavaScript to develop the front end, you can use fetch or AJAX to send requests and process responses.

[0059] In short, by agreeing on specific values ​​and adding specific values ​​to request parameters, the control backend can determine whether the specific values ​​in the request parameters meet the preset requirements, and perform data processing and exception handling based on the verification results.

[0060] After obtaining the corresponding data called by the back end according to the request parameters, it also includes: processing the corresponding data to generate image data; receiving the image data and displaying the image.

[0061] In one example, according to specific needs and data types, corresponding algorithms or processing methods can be used to process corresponding data to generate image data. For example, if the data is the pixel value of a digital image, an image processing algorithm can be used to process the pixel value, such as filtering, enhancement, image fusion, etc., to finally generate new image data, transmit the processed image data to the front-end page, and display a visible image thereon.

[0062] Based on the above method, the present application also discloses a device for secure data transmission, such as Figure 2 As shown, Figure 2 It is a structural diagram of a device for secure data transmission provided in an embodiment of the present application.

[0063] A device for secure data transmission, comprising: a generating module 1, a responding module 2 and a processing module 3; wherein the generating module 1 is used to generate a two-dimensional code corresponding to a business request according to a business request sent by a user end, wherein the two-dimensional code includes a request parameter with a specific value; the responding module 2 is used to extract the request parameter in the two-dimensional code in response to the user end scanning the two-dimensional code and send it to a back end; the processing module 3 is used to control the back end to determine whether the specific value in the request parameter meets the preset requirements, and if so, obtain the corresponding data called by the back end according to the request parameter, and display the corresponding data after processing; if not, send an abnormal information to the user end.

[0064] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0065] See also Figure 3 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 3 As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .

[0066] The communication bus 1002 is used to realize the connection and communication between these components.

[0067] The user interface 1003 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 1003 may also include a standard wired interface and a wireless interface.

[0068] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0069] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.

[0070] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Figure 3 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program of a method for secure data transmission.

[0071] exist Figure 3 In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1001 can be used to call an application program storing a method for secure data transmission in the memory 1005. When executed by one or more processors, the electronic device executes one or more methods described in the above embodiments.

[0072] An electronic device readable storage medium stores instructions, which, when executed by one or more processors, enable the electronic device to execute one or more of the methods described in the above embodiments.

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

[0074] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0075] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0076] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0077] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0078] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0079] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for secure data transmission, characterized in that: Applied to a computer device, the method comprises: Generate a request parameter corresponding to the service request according to the service request sent by the user terminal; Inserting or concatenating a specific value into the request parameter through an encryption algorithm to generate a QR code corresponding to the service request; In response to the user terminal scanning the QR code, extracting the request parameter in the QR code and sending it to the backend; Sending verification information to the backend; Receiving feedback information sent by the back end after reading the verification information; Determine whether the feedback information meets the preset standard. If so, determine that the backend is in a normal state. If not, send an alarm message to the terminal device of the staff; Control the backend to determine whether the specific value in the request parameter meets the preset requirements. If yes, obtain the corresponding data called by the backend according to the request parameter, and display the corresponding data after processing; if not, send an exception message to the user end.

2. The method for secure data transmission according to claim 1, characterized in that: After generating a QR code corresponding to the business request according to the business request sent by the user terminal, it also includes: if the request operation triggered by the user terminal scanning the QR code is not received within a first preset time period, the QR code is invalidated; the request operation includes extracting the request parameters in the QR code and sending them to the back end.

3. The method for secure data transmission according to claim 2, characterized in that: After generating a QR code corresponding to the business request according to the business request sent by the user terminal, it also includes: if more than a preset number of request operations are received within a second preset time period, the QR code is invalidated and a warning message is sent to the user terminal.

4. The method for secure data transmission according to claim 1, characterized in that: After obtaining the corresponding data called by the backend according to the request parameters, the method further includes: processing the corresponding data to generate image data; receiving the image data and displaying an image.

5. A device for secure data transmission, characterized in that: The device comprises: a generating module (1), a responding module (2) and a processing module (3); wherein the generating module (1) is used to generate a request parameter corresponding to the service request according to the service request sent by the user end; Inserting or concatenating a specific value into the request parameter through an encryption algorithm to generate a two-dimensional code corresponding to the business request; the response module (2) is used to respond to the operation of the user terminal scanning the two-dimensional code, extract the request parameter in the two-dimensional code and send it to the back end; send verification information to the back end; receive feedback information sent by the back end after reading the verification information; determine whether the feedback information meets the preset standard, if so, determine that the back end is in a normal state, if not, send an alarm message to the terminal device of the staff; The processing module (3) is used to control the backend to determine whether the specific value in the request parameter meets the preset requirements. If so, the corresponding data called by the backend according to the request parameter is obtained, and the corresponding data is processed and displayed; if not, an abnormal information is sent to the user end.

6. An electronic device, characterized in that: The electronic device comprises a processor (1001), a memory (1005), a user interface (1003) and a network interface (1004), wherein the memory (1005) is used to store instructions, the user interface (1003) and the network interface (1004) are used to communicate with other devices, and the processor (1001) is used to execute the instructions stored in the memory so that the electronic device executes the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 4.