Efficient and safe docking system for overseas credit platform and third-party payment
By using a combination of data compression, interaction, conversion, verification and security unit technologies in the data interaction between overseas credit platforms and third-party payment systems, the problems of low efficiency and security risks are solved, and efficient and safe data interaction is achieved. and fast payment request processing.
Patent Information
- Application Number
- CN202410979313.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-29
AI Technical Summary
Existing technologies have problems such as low efficiency, poor compatibility, high maintenance costs and data security risks in data interaction between overseas credit platforms and third-party payment systems, especially when the laws, regulations and technical standards of different countries and regions are inconsistent. .
The data compression unit (LZ77 algorithm) is used for data compression, the data interaction unit (based on TCP/IP protocol and Socket socket) for data transmission, the data conversion unit (conversion according to the data format of different systems), and the data verification unit ( Message authentication code algorithm for data verification), and data security unit (encryption and logging, active-standby mode security policy) to ensure the security and integrity of data transmission.
It improves data transmission speed and efficiency, ensures data accuracy and integrity, and at the same time enhances the security of data interaction, achieves real-time data interaction and fast payment request processing, and reduces cost burden.
Smart Images

Figure CN118869828A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security technology, and in particular to an efficient and secure docking system between an overseas credit platform and a third-party payment. Background Art
[0002] In order to solve the problem of low data interaction efficiency, some enterprises and institutions try to develop data interaction interfaces on their own. However, due to the lack of standardized data transmission protocols and data formats, this approach has problems such as poor compatibility, poor scalability, and high maintenance costs, and it is difficult to adapt to the laws, regulations and technical standards of different countries and regions. In order to solve the problem of low data interaction efficiency and poor security, some enterprises and institutions use third-party data interaction platforms for data interaction. However, this approach has problems such as data security risks and data privacy leakage. At the same time, it is also necessary to pay high data interaction platform usage fees, which increases the cost burden of enterprises and institutions. Summary of the invention
[0003] The purpose of the present invention is to address the problems existing in the background technology and to propose an efficient and secure docking system between an overseas credit platform and a third-party payment.
[0004] The technical solution of the present invention: an efficient and secure docking system between an overseas credit platform and a third-party payment, comprising:
[0005] A data compression unit, wherein the data compression unit is used to compress the data packet using an LZ77 algorithm;
[0006] A data exchange unit, the data exchange unit is used to define a data packet format based on the TCP / IP protocol, the data packet format includes a packet header and a packet body, the packet header includes the length of the data packet and the type of the data packet, and transmit the data packet based on a Socket socket;
[0007] A data conversion unit, which is used to convert data according to the data format of the overseas credit platform and the third-party payment system;
[0008] A data verification unit, wherein the data verification unit is used to verify the data during the data transmission process;
[0009] A data security unit is used to encrypt the data between the overseas credit platform and the third-party payment system, log and send out alarms for data anomalies during data transmission, adopt a master-slave mode, and set up a master node and a backup node in the security policy center. When the master node fails, the backup node will immediately take over the work.
[0010] Preferably, the LZ77 algorithm is used to compress the data packet, comprising the following steps:
[0011] A1. Starting from the beginning of the data, a sliding window is set, the size of the sliding window is a fixed number of bytes, and the sliding window stores the most recently appeared data fragments;
[0012] A2. Starting from the current position, the data fragments in the sliding window are matched with the uncompressed data to find the longest substring that matches the uncompressed data starting from the current position;
[0013] A3. If a match is found, a matching instruction is generated to indicate the position and length of the match, wherein the matching instruction includes a matching offset and a matching length. If no match is found, an unmatched instruction is generated to indicate the byte at the current position.
[0014] A4, sliding the sliding window forward so that new data fragments including the current position enter the window;
[0015] A5. Repeat steps A2-A4 until all data is compressed.
[0016] A6. After the compression process is completed, a completion instruction is generated, and the completion instruction is used to reconstruct the original data during decompression.
[0017] Preferably, the data is converted according to the data format of the overseas credit platform and the third-party payment system, including the following steps:
[0018] B1. Determine the data formats and structures of overseas credit platforms and third-party payment systems;
[0019] B2. Compare the data format differences between overseas credit platforms and third-party payment systems, and formulate mapping rules, which include the corresponding relationship of fields, data type conversion, and data format conversion;
[0020] B3. Extract the data that needs to be converted from the overseas credit platform and third-party payment system, convert the format of the extracted data according to the established mapping rules, and load the converted data into the target system.
[0021] Preferably, transmitting the data packet based on a Socket socket comprises the following steps:
[0022] C1. Establish a TCP connection between the client and the server.
[0023] C2, encode the data packet into binary form according to the predefined format, and use the socket's send function to send the data packet to the target server;
[0024] C3. Use the socket's receive function to receive data from the network, parse the received data according to the packet length field or other predefined methods, extract the complete data packet, parse the received data packet, and process different types of data according to the packet type field.
[0025] Preferably, during the data transmission process, the data is verified, including the following steps:
[0026] D1. The sender and receiver share a key;
[0027] D2. The sender uses the shared key to encrypt the data to be sent, uses the message authentication code algorithm to generate a MAC value for the encrypted data, and sends the generated MAC value together with the encrypted data to the receiver, and the sender sends the encrypted data and MAC value to the receiver;
[0028] D3. After receiving the data, the receiver uses the same shared key to decrypt the received data to restore the original encrypted data, and the receiver uses the same message authentication code algorithm and key to recalculate a MAC value for the decrypted data, and the receiver compares the calculated MAC value with the received MAC value;
[0029] D4. If the calculated MAC value is the same as the received MAC value, it indicates that the data has not been tampered with during transmission. Otherwise, it indicates that the data has been tampered with.
[0030] Preferably, the master-slave mode is adopted, and a master node and a backup node are set in the security policy center. When the master node fails, the backup node will immediately take over the work, including the following steps:
[0031] E1. Determine the master node and the standby node. The master node is used for normal workflow, and the standby node is on standby.
[0032] E2. The standby node shares configuration information and status data, and monitors the status of the master node based on the heartbeat detection mechanism. If the master node fails, the standby node will immediately detect and respond.
[0033] Compared with the prior art, the above technical solution of the present invention has the following beneficial technical effects:
[0034] 1. The present invention adopts an efficient data transmission protocol and data compression technology through a data interaction unit, which can greatly improve the data transmission speed and efficiency. At the same time, it also has data conversion and data verification functions to ensure the accuracy and integrity of the data. The application of these technical means makes the data interaction between the overseas credit platform and the third-party payment system more efficient and faster. When the overseas credit platform needs to initiate a payment request to the third-party payment system, the data interaction engine can quickly transmit the payment request to the payment system, and after the payment system completes the processing, the payment result is promptly returned to the overseas credit platform, thereby realizing real-time data interaction and improving business processing efficiency and user experience.
[0035] 2. The present invention adopts advanced encryption algorithms and verification mechanisms through the data security unit to ensure the security of data interaction. The data security unit encrypts and verifies the data to ensure that it will not be stolen or tampered with during the data transmission process. At the same time, the data security unit also has real-time monitoring and early warning functions, which can timely discover and deal with security issues. When the overseas credit platform initiates a payment request to the third-party payment system, the data security unit can encrypt and verify the payment request to ensure the security of the payment request. If the payment request is found to be abnormal or risky, the data security unit can issue an early warning message in time to notify relevant personnel to handle it, thereby ensuring the user's data security and privacy. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 The present invention is a flowchart of an embodiment of the present invention.
[0037] Figure numerals: 1. Data compression unit; 2. Data exchange unit; 3. Data conversion unit; 4. Data verification unit; 5. Data security unit. DETAILED DESCRIPTION
[0038] Embodiment 1, as Figure 1 As shown, the overseas credit platform and third-party payment efficient and secure docking system proposed by the present invention includes:
[0039] The data compression unit 1 is used to compress the data packet using the LZ77 algorithm;
[0040] Data interaction unit 2, data interaction unit 2 is used to define the data packet format based on TCP / IP protocol, the data packet format includes a packet header and a packet body, the packet header includes the length of the data packet and the type of the data packet, and transmit the data packet based on the Socket socket;
[0041] Data conversion unit 3, data conversion unit 3 is used to convert data according to the data format of the overseas credit platform and the third-party payment system;
[0042] The data verification unit 4 is used to verify the data during the data transmission process;
[0043] Data security unit 5 is used to encrypt data between overseas credit platforms and third-party payment systems. During data transmission, abnormal data conditions are logged and alarms are issued. The master-slave mode is adopted, and the master node and the backup node are set in the security policy center. When the master node fails, the backup node will immediately take over the work.
[0044] In the present invention, the LZ77 algorithm is a common lossless data compression algorithm, which reduces the size of data packets by identifying and eliminating repeated patterns in the data, thereby saving transmission bandwidth and speeding up transmission speed; the TCP / IP protocol is the Transmission Control Protocol / Internet Protocol, which is one of the basic protocols of the Internet and is responsible for the transmission of data in the network.
[0045] Embodiment 2, the overseas credit platform and third-party payment efficient and secure docking system proposed by the present invention, compared with embodiment 1, this embodiment also includes: using LZ77 algorithm to compress the data packet, including the following steps:
[0046] A1. Starting from the beginning of the data, a sliding window is set. The sliding window size is a fixed number of bytes. The sliding window stores the most recently appeared data fragments.
[0047] A2. Starting from the current position, match the data fragments in the sliding window with the uncompressed data to find the longest substring that matches the uncompressed data starting from the current position.
[0048] A3. If a match is found, a match instruction is generated to indicate the position and length of the match. The match instruction includes a match offset and a match length. If no match is found, an unmatched instruction is generated to indicate the byte at the current position.
[0049] A4. Slide the sliding window forward so that new data fragments including the current position enter the window;
[0050] A5. Repeat steps A2-A4 until all data is compressed.
[0051] A6. After the compression process is completed, a completion instruction is generated, and the completion instruction is used to reconstruct the original data during decompression.
[0052] In an optional embodiment, the data is converted according to the data format of the overseas credit platform and the third-party payment system, including the following steps:
[0053] B1. Determine the data formats and structures of overseas credit platforms and third-party payment systems;
[0054] B2. Compare the data format differences between overseas credit platforms and third-party payment systems, and formulate mapping rules, which include the corresponding relationship of fields, data type conversion, and data format conversion;
[0055] B3. Extract the data that needs to be converted from the overseas credit platform and third-party payment system, convert the format of the extracted data according to the established mapping rules, and load the converted data into the target system.
[0056] In an optional embodiment, transmitting a data packet based on a Socket socket includes the following steps:
[0057] C1. Establish a TCP connection between the client and the server.
[0058] C2, encode the data packet into binary form according to the predefined format, and use the socket's send function to send the data packet to the target server;
[0059] C3. Use the socket's receive function to receive data from the network, parse the received data according to the packet length field or other predefined methods, extract the complete data packet, parse the received data packet, and process different types of data according to the packet type field.
[0060] In an optional embodiment, during the data transmission process, verifying the data includes the following steps:
[0061] D1. The sender and receiver share a key;
[0062] D2. The sender uses the shared key to encrypt the data to be sent, uses the message authentication code algorithm to generate a MAC value for the encrypted data, and sends the generated MAC value together with the encrypted data to the receiver, and the sender sends the encrypted data and MAC value to the receiver;
[0063] D3. After receiving the data, the receiver uses the same shared key to decrypt the received data to restore the original encrypted data, and the receiver uses the same message authentication code algorithm and key to recalculate a MAC value for the decrypted data, and the receiver compares the calculated MAC value with the received MAC value;
[0064] D4. If the calculated MAC value is the same as the received MAC value, it indicates that the data has not been tampered with during transmission. Otherwise, it indicates that the data has been tampered with.
[0065] In an optional embodiment, a master-slave mode is adopted, and a master node and a backup node are set in the security policy center. When the master node fails, the backup node will immediately take over the work, including the following steps:
[0066] E1. Determine the master node and the standby node. The master node is used for normal workflow, and the standby node is on standby.
[0067] E2. The standby node shares configuration information and status data, and monitors the status of the master node based on the heartbeat detection mechanism. If the master node fails, the standby node will immediately detect and respond.
[0068] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited thereto, and various changes can be made within the knowledge scope of technicians in the relevant technical field without departing from the purpose of the present invention.
Claims
1. An efficient and secure docking system between overseas credit platforms and third-party payment platforms. It is characterized in that include: A data compression unit (1), the data compression unit (1) is used to compress the data packet using an LZ77 algorithm; A data interaction unit (2), the data interaction unit (2) is used to define a data packet format based on a TCP / IP protocol, the data packet format comprising a packet header and a packet body, the packet header comprising a length of the data packet and a type of the data packet, and transmit the data packet based on a Socket socket; A data conversion unit (3), the data conversion unit (3) is used to convert data according to the data format of the overseas credit platform and the third-party payment system; A data verification unit (4), the data verification unit (4) is used to verify the data during the data transmission process; A data security unit (5), the data security unit (5) is used to encrypt the data of the overseas credit platform and the third-party payment system, log and issue alarms for abnormal data during data transmission, adopt a master-slave mode, and set a master node and a backup node in the security policy center. When the master node fails, the backup node will immediately take over the work.
2. According to claim 1, the efficient and secure docking system between overseas credit platform and third-party payment, It is characterized in that The LZ77 algorithm is used to compress the data packet, including the following steps: A1. Starting from the beginning of the data, a sliding window is set, the size of the sliding window is a fixed number of bytes, and the sliding window stores the most recently appeared data fragments; A2. Starting from the current position, the data fragments in the sliding window are matched with the uncompressed data to find the longest substring that matches the uncompressed data starting from the current position; A3. If a match is found, a matching instruction is generated to indicate the position and length of the match, wherein the matching instruction includes a matching offset and a matching length. If no match is found, an unmatched instruction is generated to indicate the byte at the current position. A4, sliding the sliding window forward so that new data fragments including the current position enter the window; A5. Repeat steps A2-A4 until all data is compressed. A6. After the compression process is completed, a completion instruction is generated, and the completion instruction is used to reconstruct the original data during decompression.
3. The efficient and secure docking system between overseas credit platform and third-party payment according to claim 1, It is characterized in that According to the data format of overseas credit platforms and third-party payment systems, the data is converted, including the following steps: B1. Determine the data formats and structures of overseas credit platforms and third-party payment systems; B2. Compare the data format differences between overseas credit platforms and third-party payment systems, and formulate mapping rules, which include field correspondence, data type conversion, and data format conversion; B3. Extract the data that needs to be converted from the overseas credit platform and third-party payment system, convert the format of the extracted data according to the established mapping rules, and load the converted data into the target system.
4. The efficient and secure docking system between overseas credit platform and third-party payment according to claim 1, It is characterized in that Transmitting the data packet based on the Socket socket includes the following steps: C1. Establish a TCP connection between the client and the server. C2, encode the data packet into binary form according to the predefined format, and use the socket's send function to send the data packet to the target server; C3. Use the socket's receive function to receive data from the network, parse the received data according to the packet length field or other predefined methods, extract the complete data packet, parse the received data packet, and process different types of data according to the packet type field.
5. The efficient and secure docking system between overseas credit platform and third-party payment according to claim 1, It is characterized in that During the data transmission process, the data is verified, including the following steps: D1. The sender and receiver share a key; D2. The sender uses the shared key to encrypt the data to be sent, uses the message authentication code algorithm to generate a MAC value for the encrypted data, and sends the generated MAC value together with the encrypted data to the receiver, and the sender sends the encrypted data and MAC value to the receiver; D3. After receiving the data, the receiver uses the same shared key to decrypt the received data to restore the original encrypted data, and the receiver uses the same message authentication code algorithm and key to recalculate a MAC value for the decrypted data, and the receiver compares the calculated MAC value with the received MAC value; D4. If the calculated MAC value is the same as the received MAC value, it indicates that the data has not been tampered with during transmission. Otherwise, it indicates that the data has been tampered with.
6. The efficient and secure docking system between overseas credit platform and third-party payment according to claim 1, It is characterized in that The master-slave mode is adopted, and a master node and a backup node are set in the security policy center. When the master node fails, the backup node will immediately take over the work, including the following steps: E1. Determine the master node and the standby node. The master node is used for normal workflow, and the standby node is on standby. E2. The standby node shares configuration information and status data, and monitors the status of the master node based on the heartbeat detection mechanism. If the master node fails, the standby node will immediately detect and respond.
