A data transmission control method, device, equipment and storage medium

By realizing data format conversion in electronic devices, the transmission difficulties caused by different data formats between the data management platform and the discrete platform are solved, which reduces interface development work and improves data transmission efficiency.

CN117851495BActive Publication Date: 2025-02-25BEIJING WISEDA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410152650.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-03
Publication Date
2025-02-25
Estimated Expiration
2044-02-03

AI Technical Summary

Technical Problem

In the data exchange between the data management platform and the discrete platform, data transmission is difficult due to different data formats, and a large number of data service interface development is required.

Method used

Retrieve request information through electronic devices, convert formats, and send the converted information to the data sender. After receiving and verifying the data, convert the data format and send the converted data to the requesting party.

Benefits of technology

Automatic conversion of data formats is realized, avoiding the problem of data unrecognition due to format restrictions, and reducing the development of data service interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117851495B_ABST
    Figure CN117851495B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of data management, and in particular to a data transmission control method, device, equipment and storage medium, wherein the method comprises obtaining request information, converting the format of the request information and sending the request information after format conversion to a data sender; when the data sender passes the verification, receiving the first data corresponding to the request information sent by the data sender; converting the format of the first data and using the first data after format conversion as the second data; and sending the second data to the requester. The present application has the effect of being able to realize data format conversion and reduce the development of data service data interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data management, and in particular to a data transmission control method, device, equipment and storage medium. Background Art

[0002] With the construction of informatization, most companies have established data management platforms, which are used to achieve data integration, organically centralize data from different sources and with different characteristics, and realize data sharing and data interconnection after data integration.

[0003] In the process of data concentration and data sharing, that is, in the data exchange between the data management platform and the discrete platform, there are different data formats. In the case of different data formats, data cannot be directly transmitted between the two, and data service interface development is required. In addition, there are many types of data formats on the discrete platform, and a large number of data service interface development is required accordingly. Summary of the invention

[0004] In order to achieve data format conversion and reduce data service data interface development, the present application provides a data transmission control method, device, equipment and storage medium.

[0005] In a first aspect, a data transmission control method provided by the present application adopts the following technical solution:

[0006] A data transmission control method, comprising:

[0007] Acquire request information, convert the format of the request information, and send the request information after the format conversion to the data sender;

[0008] When the data sender passes the verification, receiving first data corresponding to the request information sent by the data sender;

[0009] Converting the format of the first data, and using the first data after the conversion as the second data;

[0010] sending the second data to the requesting party;

[0011] The request information is sent by the requesting party.

[0012] By adopting the above technical solution, after the electronic device obtains the request information, it converts the format of the request information and sends it to the data sender so that the data sender can identify it. After the data sender passes the identification and verification, the corresponding first data is sent to the electronic device. After receiving the first data, the electronic device converts the format of the first data to obtain the second data, and then sends the second data to the requester. Using the electronic device to convert the format of the data so that the requester can obtain the data in the corresponding format can avoid the two systems from being unable to recognize the data due to format restrictions, and can also avoid the development of a large number of data service interfaces due to data exchange requirements.

[0013] Optionally, after obtaining the request information, the method further includes:

[0014] Determine whether abnormal information feedback is received;

[0015] If an abnormal information feedback is received, determining whether the abnormal information feedback includes a format conversion abnormality;

[0016] If the abnormal information feedback does not include the format conversion abnormality, continue to perform the step of converting the format of the first data, and transmit the abnormal information feedback to the information sender.

[0017] By adopting the above technical solution, after the electronic device obtains the request information, it determines whether abnormal information feedback is received. If abnormal information feedback is received, it determines whether the abnormal information feedback includes a format conversion abnormality. If it does not include a format conversion abnormality, the electronic device continues to convert the first data to avoid reducing the data transmission efficiency, and then transmits the abnormal information feedback to the information sender to serve as a prompt so that the data sender can solve it accordingly.

[0018] Optionally, before converting the format of the first data, the method further includes:

[0019] Acquire a data segment of the first data and parse the data segment to obtain a parsing result;

[0020] Determining whether the data segment conforms to the requested information content based on the parsing result;

[0021] If the data segment does not conform to the request information content, immediately suspend sending the second data to the requesting party and perform verification.

[0022] By adopting the above technical solution, before the electronic device converts the format of the first data, it also obtains a data segment of the first data, and parses the data segment to obtain a parsing result, and then the electronic device determines whether the data segment conforms to the requested information content based on the parsing result. If the data segment does not conform to the requested information content, the electronic device immediately suspends sending the second data to the requesting party and performs verification.

[0023] Optionally, the verification includes:

[0024] Sending temporary verification to the requester and the data sender respectively;

[0025] Obtaining a first secret key of the requesting party;

[0026] Obtaining a second secret key of the data sender;

[0027] Determining whether the second secret key is the same as the first secret key;

[0028] If the second secret key is the same as the first secret key, the second data is restored and sent to the requesting party.

[0029] By adopting the above technical solution, the electronic device sends temporary verification to the requester and the data sender respectively, and then the electronic device obtains the first key of the requester, obtains the second key of the data sender, and then determines whether the second key is the same as the first key. If the two are the same, the electronic device restores the second data and sends it to the requester, that is, continues to complete the data transmission.

[0030] Optionally, if the second secret key is different from the first secret key, the method further includes:

[0031] Stop executing the step of converting the format of the first data;

[0032] Obtaining a first moment of immediately suspending sending the second data to the requesting party;

[0033] Obtaining a second moment when the second secret key is different from the first secret key;

[0034] Extracting second data obtained by converting the first moment to the second moment, and using the extracted second data as intermediate data;

[0035] Encrypting the intermediate data and sending the encrypted data to the requesting party;

[0036] When the administrator's third secret key is obtained and verified successfully, the first decryption information is sent to the requesting party.

[0037] By adopting the above technical solution, if the second key is different from the first key, the electronic device stops executing the step of converting the format of the first data, then obtains the first moment when the second data is immediately suspended from being sent to the requesting party, obtains the second moment when it is determined that the second key is different from the first key, extracts the second data converted between the first moment and the second moment, and uses the extracted second data as intermediate data. The electronic device encrypts the intermediate data and sends it to the requesting party. Since the second key is different from the first key, the electronic device is determined to be intruded at this time, which may cause data leakage, and there may be problems with the data between the first moment and the second moment, that is, there may be viruses, so this part of the intermediate data is encrypted and sent to the requesting party. Since it is encrypted, the requesting party cannot operate on the intermediate data, thereby avoiding the spread of problematic intermediate data. When the electronic device obtains the administrator's third key and the verification is successful, the electronic device sends the first decryption information to the requesting party so that the requesting party can decrypt the intermediate data. The requesting party can transfer the encrypted intermediate data to a safe location, and then use the obtained first decryption information to decrypt it, thereby performing professional detection and killing.

[0038] Optionally, after encrypting the intermediate data and sending it to the requesting party, the method further includes:

[0039] Resuming the step of converting the format of the first data to obtain second data;

[0040] Cut the second data into segments and use them as segmented data;

[0041] Encrypting the segmented data respectively to obtain encrypted segmented data;

[0042] Extract part of the encrypted segmented data and send it to the requesting party;

[0043] When the fourth secret key of the administrator is obtained and verified successfully, the unextracted encrypted segmented data is sent to the requesting party, and the corresponding second decryption information is sent to the requesting party.

[0044] By adopting the above technical solution, after the electronic device encrypts the intermediate data and sends it to the requesting party, the electronic device resumes the step of converting the format of the first data to obtain the second data, so the electronic device intercepts the second data in segments and uses them as segmented data, and then encrypts the segmented data separately to obtain encrypted segmented data, and the electronic device extracts part of the encrypted segmented data and sends it to the requesting party. If the above judgment is a misjudgment, since the conversion of the first data to the second data is not stopped at this time, the data transmission time will not be increased due to stopping the conversion, and part of the encrypted segmented data is also transmitted to the requesting party at this time, so compared with completely stopping the conversion and transmission, the wasted time is reduced to a certain extent. If it is not a misjudgment, then part of the encrypted segmented data is also transmitted to the requesting party, the data is incomplete, and since encryption is performed, if it is not successfully decrypted, data leakage can also be avoided.

[0045] Optionally, obtain configuration information;

[0046] Determining whether the configuration information includes filtering configuration information;

[0047] If the configuration information includes filtering configuration information, filtering the first data and / or the request information based on the filtering rule corresponding to the filtering setting information;

[0048] Determining whether the configuration information includes format conversion configuration information;

[0049] If the configuration information includes format conversion configuration information, the format conversion is performed based on the conversion rule corresponding to the format conversion configuration information.

[0050] By adopting the above technical solution, the electronic device obtains configuration information. If the configuration information includes filtering configuration information, the electronic device filters the first data and / or request information based on the filtering rules corresponding to the filtering configuration information, that is, sets whether the corresponding data can be requested. If the configuration information includes format conversion configuration information, the electronic device performs format conversion based on the conversion rules corresponding to the format conversion configuration information, that is, sets the format into which the electronic device converts the first data and request information, so that the requester and the data sender can receive the corresponding recognizable data after the electronic device performs format conversion.

[0051] In a second aspect, the present application provides a data transmission control device that adopts the following technical solution:

[0052] A data transmission control device, comprising:

[0053] An acquisition conversion module, used for acquiring request information, performing format conversion on the request information and sending the request information after format conversion to a data sender;

[0054] A receiving module, configured to receive first data corresponding to the request information sent by the data sender when the data sender passes the verification;

[0055] A data conversion module, used for converting the format of the first data, and using the first data after the conversion as the second data;

[0056] A sending module, used for sending the second data to the requesting party;

[0057] The request information is sent by the requesting party.

[0058] In a third aspect, the present application provides an electronic device that adopts the following technical solution:

[0059] An electronic device comprises a processor, wherein the processor is coupled to a memory; the processor is used to execute a computer program stored in the memory, so that the electronic device executes the method described in the first aspect.

[0060] In a fourth aspect, the present application provides a computer-readable storage medium that adopts the following technical solution:

[0061] A computer-readable storage medium includes a computer program or an instruction. When the computer program or the instruction is executed on a computer, the computer is caused to execute the method according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a flow chart of the data transmission control method according to an embodiment of the present application.

[0063] Figure 2 It is a block diagram of a data transmission control device according to an embodiment of the present application.

[0064] Figure 3 It is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0065] The following is combined with Figure 1-3 This application is described in further detail.

[0066] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. Technical users in this field can make non-creative modifications to the present embodiment as needed after reading this specification. However, as long as it is within the scope of the claims of the present application, it is protected by the patent law.

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

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

[0069] The embodiment of the present application discloses a data transmission control method, which can be executed by an electronic device.

[0070] The present application embodiment discloses a data transmission control method. Figure 1 , a data transmission control method includes the following main processes (S100~S400):

[0071] Step S100, obtaining request information, converting the format of the request information and sending the converted request information to the data sender;

[0072] Step S200, when the data sender passes the verification, receiving the first data corresponding to the request information sent by the data sender;

[0073] Step S300, converting the format of the first data, and using the first data after the format conversion as the second data;

[0074] Step S400, sending the second data to the requesting party;

[0075] The request information is sent by the requesting party.

[0076] The electronic device obtains the request information sent by the requester, then performs format conversion on the request information, and sends the request information after format conversion to the data sender. When the data sender verifies the request information, the electronic device receives the first data corresponding to the request information sent by the data sender. At this time, the format of the first data is not compatible with the requester, so the electronic device converts the format of the first data and uses the first data after the format conversion as the second data. At this time, the second data can be compatible with the requester, so the electronic device sends the second data to the requester. The electronic device can convert the format of the data to make it compatible with the requester, reducing the restrictions on data exchange caused by incompatible data formats.

[0077] For example: the enterprise ESB is IBMMQ, and the Huawei Cloud system can only interact with the cloud system through ROMACONNECT. At this time, the enterprise cannot transmit data with the Huawei Cloud system. However, using electronic devices, the format of the request information can be converted so that the Huawei Cloud system can recognize the request information and send the data. At this time, the electronic device converts the data format and sends the converted data to the enterprise, thereby completing the data transmission. By converting the data format, a large amount of service interface development work caused by data transmission and exchange between different systems can also be avoided.

[0078] As an optional implementation manner of an embodiment of the present application, after obtaining the request information, it also includes: determining whether abnormal information feedback is received; if abnormal information feedback is received, determining whether the abnormal information feedback includes a format conversion abnormality; if the abnormal information feedback does not include a format conversion abnormality, continuing to execute the step of converting the format of the first data, and transmitting the abnormal information feedback to the information sender.

[0079] After the electronic device obtains the request information, the electronic device continues to determine whether it receives abnormal information feedback. If the electronic device receives abnormal information feedback, the electronic device continues to determine whether the abnormal information feedback includes a format conversion abnormality. If the abnormal information feedback does not include a format conversion abnormality, the electronic device continues to execute the step of converting the format of the first data, and transmits the abnormal information feedback to the information sender, so that the information sender can solve the corresponding problem.

[0080] In the above judgment, if there is no format conversion abnormality involved, the conversion process will not stop, which can avoid the reduction of data conversion efficiency and thus the reduction of data transmission efficiency.

[0081] As an optional implementation of an embodiment of the present application, before converting the format of the first data, it also includes: obtaining a data segment of the first data and parsing the data segment to obtain a parsing result; judging whether the data segment conforms to the requested information content based on the parsing result; if the data segment does not conform to the requested information content, immediately suspending sending the second data to the requesting party and performing verification.

[0082] Before the electronic device converts the first data format, the electronic device obtains the data segment of the first data, and parses the data segment to obtain the parsing result, and then the electronic device judges whether the data segment meets the request information content based on the parsing result. If the data segment does not meet the request information content, the electronic device immediately suspends sending the second data to the requester, and the electronic device verifies the data sending and the requester. For data security, the electronic device parses the data segment, and judges whether the data segment meets the request information content based on the parsing result, thereby determining whether the first data meets. In the case of non-compliance, the electronic device does not stop the step of converting the first data format, but stops sending the converted second data to the requester. If there is no misjudgment, it can avoid sending viruses to the requester. If it is a misjudgment, it can also reduce the conversion time of the first data, because the step of converting the first data format is not stopped. After resolving the misjudgment through verification, the converted second data can be directly sent to the requester, thereby reducing the conversion time and improving efficiency.

[0083] Specifically, the verification includes: sending temporary verification to the requester and the data sender respectively; obtaining the first key of the requester; obtaining the second key of the data sender; determining whether the second key is the same as the first key; if the second key is the same as the first key, restoring the second data and sending it to the requester.

[0084] Verification includes: the electronic device sends temporary verification to the requester and the data sender respectively at the same time, then the electronic device obtains the first secret key of the requester, and at the same time obtains the second secret key of the data sender, and then determines whether the second secret key is the same as the first secret key. If the second secret key is the same as the first secret key, the electronic device resumes sending the second data to the requester. At this time, the secret keys of both parties are used for verification, and the verification is successful. The electronic device determines that it is a misjudgment, so it continues to send the second data to the requester.

[0085] The first secret key and the second secret key are both calculated using hash values. In this way, the possibility of the secret key being cracked can be reduced, thereby improving security.

[0086] Furthermore, it can be seen from the above that during the process of the electronic device performing key verification, the format conversion of the first data is not stopped, so after the verification is successful, the second data is sent directly to the requesting party, which can reduce the time of some format conversions and improve efficiency.

[0087] As an optional implementation manner of an embodiment of the present application, if the second key is different from the first key, it also includes: stopping the step of converting the format of the first data; obtaining the first moment of immediately pausing the sending of the second data to the requesting party; obtaining the second moment when the second key is different from the first key; extracting the second data converted from the first moment to the second moment, and using the extracted second data as intermediate data; encrypting the intermediate data and sending it to the requesting party; when the administrator's third key is obtained and verified successfully, sending the first decryption information to the requesting party.

[0088] When the second secret key is different from the first secret key, the electronic device is determined to be hacked, so the electronic device stops executing the step of converting the format of the first data, obtains the first moment of immediately suspending the second data from being sent to the requester, obtains the second moment of verifying that the second secret key is different from the first secret key, extracts the second data converted from the first moment to the second moment, and uses the extracted second data as intermediate data. The electronic device encrypts the intermediate data and sends the encrypted data to the requester. There may be viruses in the intermediate data, so the electronic device is used to package and encrypt it to avoid being opened and causing the virus to spread, thereby causing a large amount of data loss. After packaging and encrypting it, it is sent to the requester, and it can be transferred for professional killing operations. And if you want to decrypt the intermediate data, the electronic device needs to compete with the administrator's third secret key. After successful verification, the electronic device will send the first decryption information to the requester so that the requester can achieve subsequent decryption of the intermediate data.

[0089] As an optional implementation of the embodiment of the present application, after the intermediate data is encrypted and sent to the requester, it also includes: resuming the step of converting the format of the first data to obtain the second data; intercepting the second data into segments and using them as segmented data; encrypting the segmented data separately to obtain encrypted segmented data; extracting part of the encrypted segmented data and sending it to the requester; when the administrator's fourth secret key is obtained and the verification is successful, the unextracted encrypted segmented data is sent to the requester, and the corresponding second decryption information is sent to the requester

[0090] After encrypting the intermediate data and sending it to the requester, the electronic device resumes the step of converting the format of the first data, that is, continuing to receive the first data and converting the format to obtain the second data, then the electronic device intercepts the second data in segments and uses them as segmented data, and the electronic device encrypts the segmented data respectively to obtain encrypted segmented data, and then the electronic device extracts part of the encrypted segmented data and sends it to the requester, and by encrypting the segmented data, the possibility of data leakage is reduced. By extracting part and sending it to the requester, even if the data is leaked and cracked, only the random part is leaked, which can avoid the leakage of continuous data to a certain extent and increase the difficulty of viewing after the leakage. When the electronic device obtains the administrator's fourth secret key and verifies successfully, the electronic device determines that the previous judgment is wrong, and uses the fourth secret key to manually correct it, so the electronic device also sends the encrypted segmented data that has not been extracted to the requester, and sends the corresponding second decryption information to the requester, so that the requester obtains all the data corresponding to the request information after decryption.

[0091] Specifically, the second data is segmented and intercepted as segmented data, including: obtaining the historical number of requests and the number of successes of the requesting party, and calculating the ratio of the number of successes to the historical number of requests; if the ratio is zero, obtaining the corresponding first preset number, and segmenting the second data based on the first preset number; if the ratio is not zero, calculating the segmentation ratio, the segmentation ratio is equal to one minus the ratio, calculating the number of segments based on the segmentation ratio and the first preset number, the number of segments is equal to the segmentation ratio multiplied by the first preset number, and segmenting the second data based on the number of segments.

[0092] The electronic device intercepts the second data in segments and uses it as segmented data, including: the electronic device obtains the historical request times and success times of the requester, the success times are the times when no abnormality occurs in the process of requesting data, that is, after the first data is converted into the second data format, the second data is normally transmitted to the requester. The electronic device calculates the ratio of the success times and the historical request times to determine the credibility of the requester. If the ratio is zero, it means that the credibility of the requester at this time is zero, that is, the credibility is the lowest, so the electronic device obtains the corresponding first preset number, and then the electronic device segments the second data based on the first preset number. If the ratio is not zero, it means that the requester has a certain credibility, and the larger the ratio, the higher the credibility, and the segmentation ratio needs to be calculated. The segmentation ratio is equal to one minus the ratio, and then the segmentation ratio is multiplied by the first preset number to obtain the segmentation number, and then the electronic device segments the second data based on the segmentation number. By determining the credibility of the requester, the number of segmented interceptions of the second data is corresponding to different numbers, thereby ensuring data security to a certain extent.

[0093] Specifically, encrypting the segmented data separately to obtain the encrypted segmented data includes: applying different encryption methods to each segmented data. That is, in order to ensure the security of the data, using different encryption methods to encrypt the segmented data can reduce the possibility of the encrypted segmented data being decrypted in a short time to a certain extent.

[0094] As an optional implementation manner of the embodiment of the present application, after extracting part of the encrypted segmented data and sending it to the requesting party, it also includes: judging in real time whether the fourth key of the administrator is obtained within the preset time; if the fourth key of the administrator is not obtained within the preset time, sending shredding information to the requesting party, the shredding information is used to delete the encrypted segmented data extracted and sent to the requesting party; at the same time, formatting the encrypted segmented data that is not extracted; if the fourth key of the administrator is obtained within the preset time, judging whether the fourth key is verified; if the fourth key is not verified, executing the steps of sending shredding information to the requesting party and formatting the encrypted segmented data that is not extracted.

[0095] In order to improve the security of data, the electronic device determines whether the fourth secret key of the administrator is obtained within the preset time. If the fourth secret key is not obtained within the preset time, it is determined that the requesting party may cause data leakage, so the electronic device sends shredding information to the requesting party to shred the encrypted segmented data sent to the requesting party, and formats the encrypted segmented data not sent to the requesting party to prevent the sent part from being leaked. If the fourth secret key of the administrator is obtained within the preset time, but the fourth secret key is not verified, it is not determined whether it is a verification error, etc., and it is directly determined that the data may be leaked, so the shredding information is sent to the requesting party, and the steps of formatting the encrypted segmented data that has not been extracted are also executed.

[0096] As an optional implementation manner of an embodiment of the present application, configuration information is obtained; it is determined whether the configuration information includes filtering configuration information; if the configuration information includes filtering configuration information, the first data and / or request information is filtered based on the filtering rules corresponding to the filtering setting information; it is determined whether the configuration information includes format conversion configuration information; if the configuration information includes format conversion configuration information, the format is converted based on the conversion rules corresponding to the format conversion configuration information.

[0097] The electronic device obtains configuration information, and then determines whether the configuration information includes filtering configuration information. If the configuration information includes filtering configuration information, the electronic device filters the first data and / or request information based on the filtering rule corresponding to the filtering setting information, that is, the electronic device is set to intercept the request information or the first data, so as to realize the setting of whether the corresponding data can be requested. The electronic device determines whether the configuration information includes format conversion configuration information. If the configuration information includes format conversion configuration information, the electronic device performs format conversion based on the conversion rule corresponding to the format conversion configuration information, that is, sets the format conversion of the electronic device so that the request information can be recognized by the data sender after the format conversion, so that the first data can be recognized by the requester after the format conversion.

[0098] Figure 2 A structural block diagram of a data transmission control device 500 provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the data transmission control device 500 includes:

[0099] The acquisition conversion module 501 is used to acquire the request information, convert the format of the request information and send the request information after the format conversion to the data sender;

[0100] The receiving module 502 is used to receive the first data corresponding to the request information sent by the data sender when the data sender passes the verification;

[0101] The data conversion module 503 is used to convert the format of the first data and use the first data after the conversion as the second data;

[0102] A sending module 504, configured to send the second data to a requesting party;

[0103] The request information is sent by the requesting party.

[0104] In this optional embodiment, the data transmission control device 500 further includes:

[0105] The first judgment submodule is used to judge whether abnormal information feedback is received after obtaining the request information; if abnormal information feedback is received, it will turn to the second judgment submodule;

[0106] The second judgment submodule is used to judge whether the abnormal information feedback includes the format conversion abnormality; if the abnormal information feedback does not include the format conversion abnormality, continue to execute the step of converting the format of the first data, and transmit the abnormal information feedback to the information sender.

[0107] In this optional embodiment, the data transmission control device 500 further includes:

[0108] An acquisition and parsing module, used for acquiring data segments of the first data and parsing the data segments to obtain parsing results before converting the format of the first data;

[0109] The second judgment submodule is used to judge whether the data segment conforms to the request information content based on the parsing result; if the data segment does not conform to the request information content, immediately suspend sending the second data to the requesting party and perform verification.

[0110] Specifically, the second judgment submodule includes:

[0111] A first sending submodule, used for sending temporary verification to the requester and the data sender respectively;

[0112] A first acquisition submodule, used to obtain a first secret key of a requesting party;

[0113] A second acquisition submodule, used to obtain a first secret key of the requesting party;

[0114] The third judgment submodule is used to judge whether the second secret key is the same as the first secret key; if the second secret key is the same as the first secret key, the second data is restored and sent to the requesting party.

[0115] In this optional embodiment, the data transmission control device 500 further includes:

[0116] a stopping module, configured to stop executing the step of converting the format of the first data if the second secret key is different from the first secret key;

[0117] A third acquisition submodule is used to acquire a first moment of immediately pausing the sending of the second data to the requesting party;

[0118] A fourth acquisition submodule, used to acquire a second moment when the second secret key is different from the first secret key;

[0119] An extraction submodule, used for extracting second data obtained by converting from the first moment to the second moment, and using the extracted second data as intermediate data;

[0120] A first encryption submodule, used for encrypting the intermediate data and sending it to the requesting party;

[0121] The second sending submodule is used to send the first decryption information to the requesting party when the administrator's third secret key is obtained and the verification is successful.

[0122] In this optional embodiment, the data transmission control device 500 further includes:

[0123] A recovery submodule, for resuming the step of converting the format of the first data to obtain the second data after the intermediate data is encrypted and sent to the requesting party;

[0124] An interception submodule, used for intercepting the second data into segments and using them as segmented data;

[0125] A second encryption submodule is used to encrypt the segmented data respectively to obtain encrypted segmented data;

[0126] The third sending submodule is used to extract part of the encrypted segmented data and send it to the requesting party;

[0127] The fourth sending submodule is used to send the unextracted encrypted segmented data to the requesting party and send the corresponding second decryption information to the requesting party when the fourth secret key of the administrator is obtained and verified successfully.

[0128] In this optional embodiment, the data transmission control device 500 further includes:

[0129] The fifth acquisition submodule is used to acquire configuration information;

[0130] a fourth determination submodule, configured to determine whether the configuration information includes filtering configuration information; if the configuration information includes filtering configuration information, filtering the first data and / or request information based on a filtering rule corresponding to the filtering setting information;

[0131] The fifth judgment submodule is used to judge whether the configuration information includes format conversion configuration information; if the configuration information includes format conversion configuration information, the format conversion is performed based on the conversion rule corresponding to the format conversion configuration information.

[0132] Figure 3 The electronic device 600 is a block diagram of a structure of an electronic device 600 provided in an embodiment of the present application. The electronic device 600 may be a mobile phone, a tablet computer, a PC, a server, etc. Figure 3 As shown, the electronic device 600 includes a memory 601, a processor 602 and a communication bus 603; the memory and the processor 602 are connected via the communication bus 603. The memory 601 stores a computer program that can be loaded by the processor 602 and execute the data transmission control method provided in the above embodiment.

[0133] The memory 601 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 601 may include a program storage area and a managed data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, and instructions for implementing the data transmission control method provided in the above embodiment, etc.; the managed data storage area may store managed data involved in the data transmission control method provided in the above embodiment, etc.

[0134] The processor 602 may include one or more processing cores. The processor 602 calls the managed data stored in the memory 601 by running or executing the instructions, programs, code sets or instruction sets stored in the memory 601, executes various functions of the present application and processes the managed data. The processor 602 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor 602 function can also be other, and the embodiment of the present application is not specifically limited.

[0135] The communication bus 603 may include a path to transmit information between the above components. The communication bus 603 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus 603 may be divided into an address bus, a managed data bus, a control bus, etc. For ease of representation, Figure 3 Only one double arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0136] An embodiment of the present application provides a computer storage medium storing a computer program that can be loaded by a processor and execute the data transmission control method provided in the above embodiment.

[0137] In this embodiment, the computer storage medium may be a tangible device that holds and stores instructions used by the instruction execution device. The computer storage medium may be, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any combination thereof. Specifically, the computer storage medium may be a portable computer disk, a hard disk, a USB flash drive, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a podium random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, an optical disk, a magnetic disk, a mechanical encoding device, and any combination thereof.

[0138] The terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus.

[0139] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

Claims

1. A data transmission control method, characterized in that: include: Acquire request information, convert the format of the request information, and send the request information after the format conversion to the data sender; When the data sender passes the verification, receiving first data corresponding to the request information sent by the data sender; Converting the format of the first data, and using the first data after the conversion as the second data; sending the second data to the requesting party; Wherein, the request information is sent by the requesting party; Before converting the format of the first data, the method further includes: Acquire a data segment of the first data and parse the data segment to obtain a parsing result; Determining whether the data segment conforms to the requested information content based on the parsing result; If the data fragment does not conform to the request information content, immediately suspend sending the second data to the requesting party and perform verification; The verification comprises: Sending temporary verification to the requester and the data sender respectively; Obtaining a first secret key of the requesting party; Obtaining a second secret key of the data sender; Determining whether the second secret key is the same as the first secret key; If the second secret key is the same as the first secret key, recovering the second data and sending it to the requesting party; If the second secret key is different from the first secret key, the method further includes: Stop executing the step of converting the format of the first data; Obtaining a first moment of immediately suspending sending the second data to the requesting party; Obtaining a second moment when the second secret key is different from the first secret key; Extracting second data obtained by converting the first moment to the second moment, and using the extracted second data as intermediate data; Encrypting the intermediate data and sending the encrypted data to the requesting party; When the administrator's third secret key is obtained and verified successfully, the first decryption information is sent to the requesting party.

2. A data transmission control method according to claim 1, characterized in that: After obtaining the request information, the method further includes: Determine whether abnormal information feedback is received; If an abnormal information feedback is received, determining whether the abnormal information feedback includes a format conversion abnormality; If the abnormal information feedback does not include the format conversion abnormality, the step of converting the format of the first data is continued, and the abnormal information feedback is transmitted to the information sender.

3. A data transmission control method according to claim 1, characterized in that: After encrypting the intermediate data and sending it to the requesting party, the method further includes: Resuming the step of converting the format of the first data to obtain second data; Cut the second data into segments and use them as segmented data; Encrypting the segmented data respectively to obtain encrypted segmented data; Extract part of the encrypted segmented data and send it to the requesting party; When the fourth secret key of the administrator is obtained and verified successfully, the unextracted encrypted segmented data is sent to the requesting party, and the corresponding second decryption information is sent to the requesting party.

4. A data transmission control method according to claim 1, characterized in that: The method comprises: Get configuration information; Determining whether the configuration information includes filtering configuration information; If the configuration information includes filtering configuration information, filtering the first data and / or the request information based on the filtering rule corresponding to the filtering setting information; Determining whether the configuration information includes format conversion configuration information; If the configuration information includes format conversion configuration information, the format conversion is performed based on the conversion rule corresponding to the format conversion configuration information.

5. A data transmission control device, characterized in that: include: An acquisition conversion module, used for acquiring request information, performing format conversion on the request information and sending the request information after format conversion to a data sender; A receiving module, configured to receive first data corresponding to the request information sent by the data sender when the data sender passes the verification; A data conversion module, used for converting the format of the first data, and using the first data after the conversion as the second data; A sending module, used for sending the second data to a requesting party; Wherein, the request information is sent by the requesting party; An acquisition and parsing module, used for acquiring data segments of the first data and parsing the data segments to obtain parsing results before converting the format of the first data; A second judgment submodule is used to judge whether the data segment conforms to the request information content based on the parsing result; if the data segment does not conform to the request information content, immediately suspend sending the second data to the requesting party and perform verification; Wherein, the second judgment submodule includes: A first sending submodule, used for sending temporary verification to the requester and the data sender respectively; A first acquisition submodule, used to obtain a first secret key of a requesting party; A second acquisition submodule, used to acquire a second secret key of the data sender; A third judgment submodule is used to judge whether the second secret key is the same as the first secret key; if the second secret key is the same as the first secret key, the second data is restored and sent to the requesting party; a stopping module, configured to stop executing the step of converting the format of the first data if the second secret key is different from the first secret key; A third acquisition submodule is used to acquire a first moment of immediately pausing the sending of the second data to the requesting party; A fourth acquisition submodule, used to acquire a second moment when the second secret key is different from the first secret key; An extraction submodule, used for extracting second data obtained by converting from the first moment to the second moment, and using the extracted second data as intermediate data; A first encryption submodule, used for encrypting the intermediate data and sending it to the requesting party; The second sending submodule is used to send the first decryption information to the requesting party when the administrator's third secret key is obtained and the verification is successful.

6. An electronic device, characterized in that: The electronic device comprises a processor coupled to a memory; the processor is used to execute a computer program 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: The method comprises a computer program or an instruction, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Data exchange method and device

    CN110825797A