Log transmission method and device, equipment and medium

By obtaining the scene type and log data of the POS machine for encryption and generation of QR code sequences, the problem of low log detection efficiency of POS machine is solved and safe and efficient log data transmission is achieved.

CN120474903APending Publication Date: 2025-08-12INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510840361.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-23
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

In the prior art, it is less efficient to manually connect POS machines and computers to export log data one by one, and it is impossible to efficiently perform log detection.

Method used

By obtaining the scene type and log data of the POS machine, encrypting it based on the scene digital information, a QR code sequence is generated and sent to the target terminal, thereby realizing the encrypted transmission of log data.

Benefits of technology

It improves the security and efficiency of log data transmission, and obtains log data without network transmission, improving the efficiency of log data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120474903A_ABST
    Figure CN120474903A_ABST
Patent Text Reader

Abstract

The invention discloses a log transmission method and device, equipment and a medium. The method comprises the following steps: acquiring a scene type and log data corresponding to a to-be-transmitted terminal; scene digital information corresponding to the to-be-transmitted terminal is obtained through screening according to the scene type; according to the scene digit information, encrypting the log data to obtain encrypted data; and generating a two-dimensional code sequence according to the encrypted data, and sending the two-dimensional code sequence to the target terminal. According to the embodiment of the invention, the log transmission efficiency 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 log transmission method, device, equipment and medium. Background Art

[0002] With the rapid development of technology, point-of-sale (POS) terminals have become ubiquitous in our lives. POS machines generate log data during use, and this log data can be monitored to ensure operational security.

[0003] Currently, the only way to perform log detection is to manually connect the POS machine and computer to be tested one by one, export the POS machine's log data, and perform log detection.

[0004] However, manually connecting to the POS machines and computers to be tested for logs one by one makes exporting log data inefficient. Summary of the Invention

[0005] The present invention provides a log transmission method, device, equipment and medium to improve the accuracy of log transmission.

[0006] In a first aspect, an embodiment of the present invention provides a log transmission method, the method comprising:

[0007] Obtain the scene type and log data corresponding to the terminal to be transmitted;

[0008] Filter according to the scene type to obtain the scene digital information corresponding to the terminal to be transmitted;

[0009] Encrypt the log data according to the scene digital information to obtain encrypted data;

[0010] Generate a QR code sequence based on the encrypted data and send it to the target terminal.

[0011] In a second aspect, an embodiment of the present invention further provides a log transmission device, the device comprising:

[0012] The data acquisition module is used to obtain the scene type and log data corresponding to the terminal to be transmitted;

[0013] A digital filtering module is used to filter and obtain the scene digital information corresponding to the terminal to be transmitted according to the scene type;

[0014] A data encryption module is used to encrypt log data according to scene digital information to obtain encrypted data;

[0015] The data sending module is used to generate a QR code sequence based on the encrypted data and send it to the target terminal.

[0016] In a third aspect, an embodiment of the present invention further provides a log transmission device, the log transmission device comprising:

[0017] at least one processor; and

[0018] a memory communicatively connected to at least one processor; wherein,

[0019] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the log transmission method of any embodiment of the present invention.

[0020] According to another aspect of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores computer instructions, which are used to enable a processor to implement the log transmission method of any embodiment of the present invention when executed.

[0021] The technical solution of the embodiment of the present invention obtains scene digital information corresponding to the scene type corresponding to the terminal to be transmitted, encrypts the log data corresponding to the terminal to be transmitted according to the scene digital information, obtains the encrypted data and generates a QR code sequence, and sends it to the target terminal. There is no need to transmit the log data through the network, which improves the security of log data transmission. At the same time, log data can be obtained by scanning the QR code, which improves the efficiency of log data acquisition.

[0022] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 This is a flow chart of a log transmission method provided according to the first embodiment of the present invention;

[0025] Figure 2 This is a flow chart of a log transmission method provided according to the second embodiment of the present invention;

[0026] Figure 3 This is a structural diagram of a log transmission device provided according to an embodiment of the present invention;

[0027] Figure 4The present invention provides a log transmission device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions 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 embodiments described are only 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 making creative efforts should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] In the technical solutions of the embodiments of the present invention, the acquisition, storage and application of the main codes involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0031] The information collected is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0032] Example 1

[0033] Figure 1 This is a flow chart of a log transmission method provided in Embodiment 1 of the present invention. This embodiment of the present invention is applicable to log transmission situations, and the method can be executed by a log transmission device, which can be implemented in the form of hardware and / or software.

[0034] See also Figure 1 The log transmission method shown includes:

[0035] S101: Obtain the scene type and log data corresponding to the terminal to be transmitted.

[0036] Log data can be a collection of information about a series of events and operations automatically recorded by a device during operation. The terminal to be transmitted can be the device that sends the log data. The scenario type can be the type of method by which the log data can be transmitted in the scenario used by the terminal to be transmitted.

[0037] Specifically, the terminal to be transferred can be a POS terminal, for example. POS terminal security standards vary depending on the application scenario. Different scenario types correspond to different usage environments, data sensitivities, and risk levels, resulting in different security requirements. Based on the security requirement level of the terminal to be transferred, the scenario type corresponding to the terminal to be transferred is determined. The log storage address corresponding to the terminal to be transferred is obtained, and the log data corresponding to the terminal to be transferred is retrieved based on the log storage address.

[0038] S102: Filter and obtain scene digital information corresponding to the terminal to be transmitted according to the scene type.

[0039] The scene digital information may be descriptive information obtained by filtering a certain number of characters in the character string data.

[0040] Specifically, the scene digital information includes at least one item to be filtered and the number of filtering digits corresponding to each item to be filtered. For example, the items to be filtered included in the scene digital information are the terminal identification and the operation date. The number of filtering digits corresponding to the terminal identification is the first 8 digits, and the number of filtering digits corresponding to the operation date is the first 4 digits. Different scene types correspond to different levels of security requirements. Therefore, the number of filtering digits corresponding to each item to be filtered for different scene types is different. The correspondence between each scene type and the scene digital information corresponding to each scene type is saved in the terminal to be transmitted. According to the scene type, a search is performed in the terminal to be transmitted to determine the scene digital information corresponding to the scene type.

[0041] S103: Encrypt the log data according to the scene digital information to obtain encrypted data.

[0042] The encrypted data may be data generated by encrypting the log data.

[0043] Specifically, when the security standard corresponding to the scene type is higher, the larger the number of screening digits corresponding to each to-be-screened item in the scene digital information, i.e., more digits are screened for the string corresponding to each to-be-screened item. When the security standard corresponding to the scene type is lower, the smaller the number of screening digits corresponding to each to-be-screened item in the scene digital information, i.e., fewer digits are screened for the string corresponding to each to-be-screened item. At least one string is obtained based on the number of screening digits corresponding to each to-be-screened item in the scene digital information. These strings are concatenated to obtain key information, and the log data is encrypted according to the key information to obtain encrypted data.

[0044] S104: Generate a QR code sequence based on the encrypted data and send it to the target terminal.

[0045] The QR code sequence may be a collection of QR code images, and the target terminal may be a device that receives log data.

[0046] Specifically, the encrypted data is converted into at least one QR code image in the order of the log generation time, each QR code image is generated into a QR code sequence, and the QR code sequence is sent to the target terminal. The sending method includes but is not limited to: near-field communication transmission, Bluetooth transmission, network transmission or serial port transmission, etc., and the embodiment of the present invention does not limit this.

[0047] The technical solution of the embodiment of the present invention obtains scene digital information corresponding to the scene type corresponding to the terminal to be transmitted, encrypts the log data corresponding to the terminal to be transmitted according to the scene digital information, obtains the encrypted data and generates a QR code sequence, and sends it to the target terminal. There is no need to transmit the log data through the network, which improves the security of log data transmission. At the same time, log data can be obtained by scanning the QR code, which improves the efficiency of log data acquisition.

[0048] Example 2

[0049] Figure 2 This is a flow chart of a log transmission method provided by Embodiment 2 of the present invention. Based on the above embodiments, this embodiment of the present invention optimizes and improves the log transmission operation.

[0050] Furthermore, "encrypting the log data according to the scene digital information to obtain encrypted data" is refined into "obtaining the configuration information corresponding to the terminal to be transmitted, the configuration information includes: terminal identification, operation date, complement data and preset QR code length; calculating the number of QR codes according to the preset QR code length and log data; generating encryption key information according to the scene digital information, configuration information and the number of QR codes; encrypting the log data according to the encryption key information to obtain encrypted data" to improve the log transmission operation.

[0051] It should be noted that for parts not described in detail in the embodiments of the present invention, reference may be made to the descriptions of other embodiments.

[0052] See also Figure 2 The log transmission method shown includes:

[0053] S201: Obtain the scene type and log data corresponding to the terminal to be transmitted.

[0054] S202: Filter and obtain scene digital information corresponding to the terminal to be transmitted according to the scene type.

[0055] S203: Obtain configuration information corresponding to the terminal to be transmitted, where the configuration information includes: terminal identification, operation date, complementary code data, and preset QR code length.

[0056] The configuration information may be a set of parameters and parameter values set for the normal operation of the terminal to be transmitted. The terminal identifier may be a string identifying the terminal to be transmitted. The operation date may be a string representing the date on which the terminal to be transmitted acquired log data. The complement data may be used to adjust the data of the string filtered by the terminal to be transmitted based on the scene digital information to eliminate string defects. The preset QR code length may be the maximum length of a string that can be stored in a QR code image.

[0057] Specifically, when the terminal to be transmitted acquires log data, the current time is collected and the operation date is determined. A preset QR code length is obtained, using methods including but not limited to keystroke input or voice input, which are not limited in this embodiment of the present invention. A search algorithm is used to obtain the terminal identifier and complement data corresponding to the terminal to be transmitted. Based on the obtained terminal identifier, operation date, complement data, and preset QR code length, the configuration information corresponding to the terminal to be transmitted is determined.

[0058] S204: Calculate the number of QR codes based on the preset QR code length and the log data.

[0059] The number of QR codes may be the number of QR code images required to generate for sending log data.

[0060] Specifically, the amount of data that can be stored in a QR code image is limited. A QR code image can only store strings of the preset QR code length. Divide the length of the log data by the preset QR code length, and calculate the quotient and remainder. If the remainder is 0, the number of QR codes is the same as the quotient. If the remainder is not 0, the number of QR codes is the quotient plus 1.

[0061] S205: Generate encryption key information based on the scene digital information, configuration information, and the number of QR codes.

[0062] Specifically, the scene digital information includes at least one item to be filtered and the number of filtering digits corresponding to each item to be filtered. The character strings corresponding to each item in the configuration information are filtered based on the scene digital information to determine the character strings to be concatenated corresponding to each item in the configuration information. Encryption key information is generated based on the character strings to be concatenated and the number of QR codes corresponding to each item in the configuration information. The scene digital information, configuration information, and the number of QR codes serve as dynamic factors, meaning that the encryption key information changes at any time in different scenarios, achieving a one-time-one-pad (OTP) policy. Furthermore, the encryption key information is generated from multi-dimensional data, enhancing its security.

[0063] S206: Encrypt the log data according to the encryption key information to obtain encrypted data.

[0064] Specifically, encryption key information is generated based on three dynamic factors: scene digital information, configuration information, and the number of QR codes, an encryption mode is obtained, and the log data is encrypted according to the encryption key information and the encryption mode to obtain encrypted data.

[0065] S207: Encrypt the log data according to the encryption key information to obtain encrypted data.

[0066] In an embodiment of the present invention, encryption key information is generated by using scene digital information, configuration information, and the number of QR codes corresponding to the terminal to be transmitted to encrypt the log data to obtain encrypted data. The log data is encrypted using a dynamic factor to improve the security of key generation.

[0067] Optionally, encryption key information is generated based on the scene digital information, configuration information and the number of QR codes, including: filtering the configuration information based on the first digital information in the scene digital information to obtain a first splicing sequence, filtering the configuration information based on the second digital information in the scene digital information to obtain a second splicing sequence; splicing the first splicing sequence and the number of QR codes to obtain intermediate key information; encrypting the log data based on the intermediate key information to obtain an intermediate ciphertext; and determining the encryption key information based on the second splicing sequence, the number of QR codes and the intermediate ciphertext.

[0068] The first digital information may be digital descriptive information obtained by filtering the character strings of each item of the configuration information. The first concatenated sequence may be a character string obtained by filtering the configuration information based on the first digital information. The second digital information may be digital descriptive information obtained by filtering the character strings of each item of the configuration information. The second concatenated sequence may be a character string obtained by filtering the configuration information based on the second digital information. The number of digits filtered for each item to be filtered in the first digital information is less than the number of digits filtered for each item to be filtered in the second digital information. The intermediate key information may be a character string obtained by concatenating the first concatenated sequence and the number of QR codes. The intermediate ciphertext may be encrypted data obtained by encrypting the log data using the intermediate key information.

[0069] Specifically, the configuration information is screened according to the first digital information in the scene digital information to obtain a first splicing sequence, and the configuration information is screened according to the second digital information in the scene digital information to obtain a second splicing sequence; the first splicing sequence and the number of QR codes are spliced together to obtain intermediate key information; the log data is encrypted according to the intermediate key information to obtain intermediate ciphertext; and encryption key information is generated by splicing the second splicing sequence, the number of QR codes and the intermediate ciphertext.

[0070] The intermediate key information is obtained by concatenating the first splicing sequence and the number of QR codes; the log data is encrypted according to the intermediate key information to obtain the intermediate ciphertext; the encryption key information is determined according to the second splicing sequence, the number of QR codes and the intermediate ciphertext, and the encryption key information is generated by multiple data, which increases the complexity of the encryption key information and improves the security of log data encryption.

[0071] Optionally, the log data is encrypted according to the encryption key information to obtain encrypted data, including: obtaining at least one encryption identifier and the encryption mode corresponding to each encryption identifier; dividing the log data according to a preset QR code length, determining at least one log set identifier and the set data corresponding to each log set identifier; for each log set identifier, comparing the log set identifier with each encryption identifier, determining the target identifier corresponding to the log set identifier and the target encryption mode corresponding to the target identifier; according to the encryption key information, encrypting the set data corresponding to the log set identifier according to the target encryption mode to obtain encrypted data.

[0072] The encryption identifier may be a string that identifies encrypted data. The encryption mode may be the encryption method for the encrypted data corresponding to the encryption identifier. The log collection identifier may be the identifier of the data collection after the log data is divided into multiple collections. The collection data may be the data of the collection into which the log data is divided. The target encryption mode may be the encryption mode for the collection data.

[0073] Specifically, at least one encryption identifier and the encryption mode corresponding to each encryption identifier are obtained; the log data is divided according to the preset QR code length, and at least one log set identifier and the set data corresponding to each log set identifier are determined; for each log set identifier, the log set identifier is compared with each encryption identifier to determine the target identifier corresponding to the log set identifier and the target encryption mode corresponding to the target identifier; according to the encryption key information, the set data corresponding to the log set identifier is encrypting according to the target encryption mode to obtain encrypted data.

[0074] By dividing the log data according to the preset QR code length, at least one log collection identifier and the collection data corresponding to each log collection identifier are determined; the target identifier corresponding to the log collection identifier and the target encryption mode corresponding to the target identifier are determined; according to the encryption key information, the collection data corresponding to the log collection identifier is encrypted according to the target encryption mode to obtain encrypted data. Different encryption modes are used for encryption of different collection data, which refines the encryption steps and improves the security of encryption.

[0075] Optionally, obtaining the scene type corresponding to the terminal to be transmitted includes: obtaining the log transmission module corresponding to the terminal to be transmitted and the transmission permission information corresponding to the log transmission module; identifying the transmission permission information to obtain a permission detection result; if the permission detection result is to close the network transmission, then determining that the scene type corresponding to the terminal to be transmitted is a QR code transmission type; if the permission detection result is to open the network transmission, then determining that the scene type corresponding to the terminal to be transmitted is a multi-dimensional transmission type, and the multi-dimensional transmission type is a QR code transmission and a network transmission type.

[0076] Among them, the log transmission module can be a functional module that can transmit log data over the network. The transmission permission information can be descriptive information of whether the log transmission module has the permission to transmit log data. The permission detection result can be the detection result of whether the log transmission module can transmit log data. Turning off network transmission can be that the access permission of the log transmission module is turned off. The QR code transmission type can be a type that transmits log data via a QR code image. Turning on network transmission can be that the access permission of the log transmission module is turned on. The multi-dimensional transmission type can be a type that can transmit log data in multiple ways.

[0077] Specifically, obtain the log transmission module corresponding to the terminal to be transmitted and the transmission permission information corresponding to the log transmission module; identify the transmission permission information and obtain the permission detection result; if the permission detection result is to close the network transmission, it indicates that the security requirements corresponding to the terminal to be transmitted are relatively high, and the scenario type corresponding to the terminal to be transmitted is determined to be the QR code transmission type, and the log data is only transmitted through the QR code; if the permission detection result is to open the network transmission, it is determined that the scenario type corresponding to the terminal to be transmitted is the multi-dimensional transmission type, which indicates that the security requirements corresponding to the terminal to be transmitted are relatively low, and the log data can be transmitted through the QR code, and the log data can also be transmitted through the interface network.

[0078] By obtaining the log transmission module corresponding to the terminal to be transmitted and the transmission permission information corresponding to the log transmission module; identifying the transmission permission information and obtaining the permission detection result; if the permission detection result is to close the network transmission, then the scene type corresponding to the terminal to be transmitted is determined to be the QR code transmission type; if the permission detection result is to open the network transmission, then the scene type corresponding to the terminal to be transmitted is determined to be the multi-dimensional transmission type, and different log transmission methods are determined according to different permission information, which refines the log transmission method and improves the accuracy of log transmission.

[0079] Optionally, after generating a QR code sequence based on the encrypted data and sending it to the target terminal, it also includes: identifying the QR code image for each QR code image in the QR code sequence to determine the QR code data; obtaining the preset separation character and the number of separators to be detected; filtering the QR code data according to the preset separation character and the number of separators to be detected to obtain the identification to be detected; and performing accuracy detection on the QR code sequence based on the identification to be detected and the terminal identification in the configuration information.

[0080] The QR code data may be log data obtained after identifying the QR code data. The preset separator character may be a preset character connecting the strings to be concatenated. The number of separators to be detected may be serial number information identifying the preset separator characters.

[0081] Specifically, after generating a QR code sequence based on the encrypted data and sending it to the target terminal, it also includes: identifying the QR code image for each QR code image in the QR code sequence to determine the QR code data; obtaining a preset separator character and the number of separators to be detected; dividing the QR code data according to the preset separator character to obtain at least one character string, screening each character string corresponding to the QR code data according to the number of separators to be detected, selecting the character string corresponding to the number of separators to be detected, and obtaining an identifier to be detected, the position of the character string in the QR code data corresponding to the identifier to be detected is the same as the relative position of the character string before the QR code image is generated; judging whether the identifier to be detected is consistent with the terminal identifier in the configuration information, and performing an accuracy test on the QR code image. If the identifier to be detected is the same as the terminal identifier in the configuration information, it indicates that the generated QR code image can accurately send log data. If the identifier to be detected is different from the terminal identifier in the configuration information, it indicates that the generated QR code image cannot accurately send log data.

[0082] After generating a QR code sequence based on encrypted data and sending it to the target terminal, the method also includes: identifying the QR code image for each QR code picture in the QR code sequence to determine the QR code data; obtaining a preset separation character and the number of separation characters to be detected; screening the QR code data according to the preset separation character and the number of separation characters to be detected to obtain an identification to be detected; and performing an accuracy detection on the QR code sequence according to the identification to be detected and the terminal identification in the configuration information, thereby detecting whether the QR code sequence can accurately transmit log data, thereby improving the accuracy of log transmission.

[0083] Optionally, scene digital information includes: terminal intercepted digital, time intercepted digital and QR code intercepted digital.

[0084] The terminal intercepted digits may be descriptive information about the number of digits filtered for the terminal identifier in the configuration information of the terminal to be transmitted. The time intercepted digits may be descriptive information about the number of digits filtered for the operation date in the configuration information of the terminal to be transmitted. The QR code intercepted digits may be descriptive information about the number of digits filtered for the QR code number of the terminal to be transmitted.

[0085] Specifically, the configuration information corresponding to the terminal to be transmitted includes: terminal identification, operation date, complementary code data and preset QR code length; the number of QR codes is calculated based on the preset QR code length and log data. The scene digit information includes: terminal interception digit, time interception digit and QR code interception digit. The character string corresponding to the terminal identification can be filtered based on the terminal interception digit, the character string corresponding to the operation date can be filtered based on the time interception digit, and the character string corresponding to the number of QR codes can be filtered based on the QR code interception digit. For example, the number of QR codes is 13, the terminal identification is 011000010002001, the operation date is 20250307, the complementary code data is FFFFEEEE, the preset QR code length is 1000, the terminal interception digit is the first 8 digits, the time interception digit is the first 4 digits and the QR code interception digit is the last 1 digit. The character string corresponding to the terminal identifier can be filtered according to the terminal intercepted digit to obtain 01100001, the character string corresponding to the operation date can be filtered according to the time intercepted digit to obtain 2025, and the character string corresponding to the number of QR codes can be filtered according to the QR code intercepted digit to obtain 3.

[0086] The scene digital information includes: terminal intercepted digital, time intercepted digital and QR code intercepted digital. By screening the dynamically changing data, it is helpful to generate more secure encryption key information.

[0087] Example 3

[0088] Figure 3 This is a structural diagram of a log transmission device provided in Embodiment 3 of the present invention. This embodiment of the present invention is applicable to log transmission situations, and the device can execute a log transmission method, and the device can be implemented in the form of hardware and / or software.

[0089] See also Figure 3 The log transmission device shown includes: a data acquisition module 301, a digital screening module 302, a data encryption module 303 and a data sending module 304, wherein:

[0090] The data acquisition module 301 is used to obtain the scene type and log data corresponding to the terminal to be transmitted;

[0091] A digital filtering module 302 is configured to filter the scene digital information corresponding to the terminal to be transmitted according to the scene type;

[0092] The data encryption module 303 is used to encrypt the log data according to the scene digital information to obtain encrypted data;

[0093] The data sending module 304 is used to generate a QR code sequence according to the encrypted data and send it to the target terminal.

[0094] The technical solution of the embodiment of the present invention obtains scene digital information corresponding to the scene type corresponding to the terminal to be transmitted, encrypts the log data corresponding to the terminal to be transmitted according to the scene digital information, obtains the encrypted data and generates a QR code sequence, and sends it to the target terminal. There is no need to transmit the log data through the network, which improves the security of log data transmission. At the same time, log data can be obtained by scanning the QR code, which improves the efficiency of log data acquisition.

[0095] Optionally, the data encryption module 303 includes:

[0096] A configuration information acquisition unit is used to acquire configuration information corresponding to the terminal to be transmitted, the configuration information including: terminal identification, operation date, complementary code data and preset QR code length;

[0097] A quantity calculation unit, used to calculate the number of QR codes based on a preset QR code length and log data;

[0098] A key generation unit, configured to generate encryption key information based on scene digital information, configuration information, and the number of QR codes;

[0099] The encrypted data determining unit is used to encrypt the log data according to the encryption key information to obtain encrypted data.

[0100] Optionally, a key generation unit is used to:

[0101] Filtering the configuration information according to the first digital information in the scene digital information to obtain a first splicing sequence, and filtering the configuration information according to the second digital information in the scene digital information to obtain a second splicing sequence;

[0102] Concatenate the first concatenation sequence and the number of QR codes to obtain intermediate key information;

[0103] Encrypt the log data according to the intermediate key information to obtain the intermediate ciphertext;

[0104] The encryption key information is determined according to the second concatenated sequence, the number of QR codes, and the intermediate ciphertext.

[0105] Optionally, the encrypted data determination unit is specifically configured to:

[0106] Obtain at least one encryption identifier and an encryption mode corresponding to each encryption identifier;

[0107] Divide the log data according to the preset QR code length, and determine at least one log set identifier and the set data corresponding to each log set identifier;

[0108] For each log set identifier, compare the log set identifier with each encryption identifier to determine the target identifier corresponding to the log set identifier and the target encryption mode corresponding to the target identifier;

[0109] According to the encryption key information, the set data corresponding to the log set identifier is encrypted according to the target encryption mode to obtain encrypted data.

[0110] Optionally, the data acquisition module 301 is specifically configured to:

[0111] Obtain the log transmission module corresponding to the terminal to be transmitted and the transmission permission information corresponding to the log transmission module;

[0112] Identify the transmission permission information and obtain the permission detection result;

[0113] If the permission detection result is to close the network transmission, then determine that the scenario type corresponding to the terminal to be transmitted is the QR code transmission type;

[0114] If the permission detection result is to enable network transmission, it is determined that the scenario type corresponding to the terminal to be transmitted is a multi-dimensional transmission type, and the multi-dimensional transmission type is a QR code transmission and a network transmission type.

[0115] Optionally, the log transmission device also includes:

[0116] The image recognition module is used to generate a QR code sequence based on the encrypted data and send it to the target terminal, then identify the QR code image of each QR code image in the QR code sequence to determine the QR code data;

[0117] A separator information acquisition module is used to obtain the preset separator character and the number of separator characters to be detected;

[0118] The identification screening module is used to screen the QR code data according to the preset segmentation characters and the number of segmentation characters to be detected to obtain the identification to be detected;

[0119] The accuracy detection module is used to perform accuracy detection on the QR code sequence according to the identification to be detected and the terminal identification in the configuration information.

[0120] Optional scene digital information, including:

[0121] Terminal interception digits, time interception digits and QR code interception digits.

[0122] The log transmission device provided in the embodiment of the present invention can execute the log transmission method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the log transmission method.

[0123] Example 4

[0124] Figure 4 A schematic structural diagram of a log transmission device 400 that can be used to implement an embodiment of the present invention is shown.

[0125] like Figure 4 As shown, the log transmission device 400 includes at least one processor 401, and a memory connected to the at least one processor 401, such as a read-only memory (ROM) 402, a random access memory (RAM) 403, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 401 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 402 or the computer program loaded from the storage unit 408 into the random access memory (RAM) 403. In RAM 403, various programs and data required for the operation of the log transmission device 400 can also be stored. The processor 401, ROM 402 and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0126] Multiple components in log transmission device 400 are connected to I / O interface 405, including: input unit 406, such as a keyboard, mouse, etc.; output unit 407, such as various types of displays, speakers, etc.; storage unit 408, such as a magnetic disk, optical disk, etc.; and communication unit 409, such as a network card, modem, wireless communication transceiver, etc. Communication unit 409 allows log transmission device 400 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0127] Processor 401 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of processor 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. Processor 501 executes the various methods and processes described above, such as the log transmission method.

[0128] In some embodiments, the log transmission method can be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed on the log transmission device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by processor 401, one or more steps of the log transmission method described above can be performed. Alternatively, in other embodiments, processor 401 can be configured to perform the log transmission method in any other appropriate manner (e.g., by means of firmware).

[0129] Various embodiments of the systems and techniques described above 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), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes 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.

[0130] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0131] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can 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.

[0132] To provide interaction with a user, the systems and techniques described herein can be implemented on a log transmission device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the log transmission device. 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).

[0133] The systems and techniques described herein can 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 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 can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0134] A computing system may include clients and servers. The clients and servers are generally remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within a cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS (Virtual Private Server) services.

[0135] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0136] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A log transmission method, characterized in that: The method comprises: Obtain the scene type and log data corresponding to the terminal to be transmitted; Filtering according to the scene type to obtain scene digital information corresponding to the terminal to be transmitted; Encrypting the log data according to the scene digital information to obtain encrypted data; A QR code sequence is generated according to the encrypted data and sent to the target terminal.

2. The method according to claim 1, characterized in that The step of encrypting the log data according to the scene digital information to obtain encrypted data includes: Obtaining configuration information corresponding to the terminal to be transmitted, the configuration information including: terminal identification, operation date, complementary code data and preset QR code length; Calculating the number of QR codes based on the preset QR code length and the log data; Generate encryption key information according to the scene digital information, the configuration information and the number of QR codes; The log data is encrypted according to the encryption key information to obtain encrypted data.

3. The method according to claim 2, characterized in that The generating of encryption key information according to the scene digital information, the configuration information and the number of the QR codes includes: Filtering the configuration information according to the first digital information in the scene digital information to obtain a first splicing sequence, and filtering the configuration information according to the second digital information in the scene digital information to obtain a second splicing sequence; Concatenate the first concatenation sequence and the number of the two-dimensional codes to obtain intermediate key information; Encrypting the log data according to the intermediate key information to obtain an intermediate ciphertext; Determine encryption key information according to the second concatenated sequence, the number of the two-dimensional codes, and the intermediate ciphertext.

4. The method according to claim 2, characterized in that The step of encrypting the log data according to the encryption key information to obtain encrypted data includes: Obtain at least one encryption identifier and an encryption mode corresponding to each encryption identifier; Dividing the log data according to the preset QR code length, determining at least one log set identifier and set data corresponding to each log set identifier; For each log set identifier, compare the log set identifier with each encryption identifier to determine a target identifier corresponding to the log set identifier and a target encryption mode corresponding to the target identifier; The set data corresponding to the log set identifier is encrypted according to the encryption key information and the target encryption mode to obtain encrypted data.

5. The method according to claim 1, wherein The acquiring of the scene type corresponding to the terminal to be transmitted includes: Obtaining the log transmission module corresponding to the terminal to be transmitted and the transmission permission information corresponding to the log transmission module; Identifying the transmission permission information to obtain a permission detection result; If the permission detection result is to close the network transmission, determining that the scenario type corresponding to the terminal to be transmitted is a QR code transmission type; If the permission detection result is to enable network transmission, it is determined that the scenario type corresponding to the terminal to be transmitted is a multi-dimensional transmission type, and the multi-dimensional transmission type is a QR code transmission and a network transmission type.

6. The method according to claim 2, characterized in that After generating a QR code sequence according to the encrypted data and sending it to the target terminal, the method further includes: For each QR code image in the QR code sequence, identifying the QR code image to determine the QR code data; Get the preset separator character and the number of separators to be detected; Filter the QR code data according to the preset segmentation character and the number of segmentation characters to be detected to obtain a mark to be detected; The accuracy of the QR code sequence is detected according to the identifier to be detected and the terminal identifier in the configuration information.

7. The method according to claim 1, characterized in that The scene digital information includes: terminal intercepted digital, time intercepted digital and QR code intercepted digital.

8. A log transmission device, characterized in that: The device comprises: The data acquisition module is used to obtain the scene type and log data corresponding to the terminal to be transmitted; A digital screening module, configured to screen the scene digital information corresponding to the terminal to be transmitted according to the scene type; A data encryption module, configured to encrypt the log data according to the scene digital information to obtain encrypted data; The data sending module is used to generate a QR code sequence according to the encrypted data and send it to the target terminal.

9. A log transmission device, characterized in that: The log transmission device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the log transmission method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the log transmission method according to any one of claims 1 to 7 when executed.