Inter-platform data security interaction method and system

By adopting encrypted data transmission and legality verification methods in the data interaction between the aggregator cloud platform and the total monitoring platform, the problem of data being tampered with or leaked during the transmission process is solved, ensuring the integrity and security of the data.

CN118540101APending Publication Date: 2024-08-23STATE GRID JIANGSU ELECTRIC POWER CO LTD RESEARCH INSTITUTE +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410466833.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-18
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

During the data interaction between the aggregator cloud platform and the general monitoring platform, the lack of security measures may cause the data to be tampered with or leaked during the transmission process, affecting the analysis results of the general monitoring platform and the normal operation of the aggregator cloud platform.

Method used

Adopt an encrypted data transmission method, verify the legality of the data acquisition request through the second platform, and use the preset mapping relationship to generate encrypted data to ensure that only the first platform with decryption capabilities can obtain the response information, using symmetric encryption algorithms such as AES Or DES for data encryption transmission.

Benefits of technology

It effectively prevents data from being tampered with or lost during transmission, ensuring data integrity and security. Only platforms with decryption capabilities are allowed to obtain response information, which enhances data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540101A
    Figure CN118540101A
Patent Text Reader

Abstract

The invention discloses an inter-platform data security interaction method and system, and the method comprises the steps that a second platform obtains a data obtaining request sent by a first platform, and the data obtaining request at least comprises second platform information, request method information and request parameter information; the second platform acquires response information for the data acquisition request, wherein the response information comprises second platform information, request method information, request parameter information and a parameter value corresponding to the request parameter information; the second platform generates encrypted data according to the response information; and the second platform sends the encrypted data to the first platform, so that the first platform decrypts the encrypted data to obtain response information. According to the invention, through transmission of the encrypted data, it can be ensured that the data is not illegally intercepted or tampered in the transmission process, and the security of the data is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and system for secure data interaction between platforms, belonging to the technical field of computer security. Background Art

[0002] When two platforms do not use a secure data exchange method to communicate, there may be a risk of data leakage or data tampering.

[0003] Taking the data interaction between the aggregator cloud platform and the general monitoring platform as an example, the aggregator cloud platform can integrate the information and service data of multiple different service nodes into an integrated platform, and realize resource sharing, information circulation and collaborative cooperation through a unified interface and interaction method; the general monitoring platform monitors the operating status of each different aggregator cloud platform in real time, collects and analyzes its data to ensure the stable operation and high-quality service of each aggregation platform. However, the aggregator cloud platform integrates the information and service data of multiple different service nodes, which may contain sensitive data such as user privacy information and commercial secrets. When interacting with the general monitoring platform, if no data security interaction method is adopted, the data may be subject to network attacks or malicious tampering during transmission and interaction. Attackers may modify the content or structure of the data, causing the general monitoring platform to receive erroneous or incomplete data, which will not only affect the analysis results of the general monitoring platform, but also interfere with the normal operation of the aggregator cloud platform.

[0004] Therefore, in order to achieve secure data interaction between the two platforms, it is necessary to propose a method and system for secure data interaction between the two platforms. Summary of the invention

[0005] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide a method and system for secure data interaction between platforms. By encrypting the transmission of data, it can be ensured that the data is not illegally intercepted or tampered with during the transmission process, thereby greatly improving the security of the data.

[0006] To achieve the above object, the present invention is implemented by adopting the following technical solutions: In a first aspect, the present invention provides a method for secure data interaction between platforms, comprising: The second platform obtains the data acquisition request sent by the first platform, where the data acquisition request includes at least second platform information, request method information, and request parameter information; The second platform obtains response information for the data acquisition request, wherein the response information includes second platform information, request method information, request parameter information, and parameter values ​​corresponding to the request parameter information; The second platform generates encrypted data according to the response information; The second platform sends the encrypted data to the first platform, so that the first platform decrypts the encrypted data to obtain response information.

[0007] Furthermore, before the second platform sends the encrypted data to the first platform, the second platform verifies the legitimacy of the data acquisition request, including: Extracting the second platform information, the request method information and the request parameter information from the data acquisition request, calling a preset mapping relationship, and determining a request mapping value corresponding to the second platform information, the request method information and the request parameter information; Compare the requested mapping value with the list of legal mapping values; If the requested mapping value does not exist in the legal mapping value list, the data acquisition request is determined to be illegal, and the second platform transmits a data acquisition request response indicating rejection to the first platform; If the requested mapping value exists in the legal mapping value list, the data acquisition request is determined to be legal, and the second platform transmits a data acquisition request response indicating permission to the first platform; The legal mapping value list includes calling preset mapping relationships to determine corresponding legal mapping values ​​based on each legal second platform information, each legal request method information and each legal request parameter information.

[0008] Further, the extracting the second platform information, the request method information and the request parameter information from the data acquisition request, calling a preset mapping relationship, and determining the request mapping value corresponding to the second platform information, the request method information and the request parameter information includes: The extracted second platform information, request method information and request parameter information are connected or concatenated to obtain a concatenated string, the concatenated string is used as a request feature, and a preset mapping relationship is called to obtain a request mapping value corresponding to the request feature; Or, the second platform information, the request method information and the request parameter information are connected or concatenated to obtain a concatenated string; the concatenated string is converted into a value according to a preset mapping relationship, and the converted value is used as the request mapping value.

[0009] Furthermore, converting the concatenated character strings to obtain a conversion value according to a preset mapping relationship includes: The concatenated character string includes numbers and letters. Each letter in the concatenated character string is mapped to a corresponding mapping number according to a preset mapping relationship; each number in the concatenated character string and each corresponding mapping number are added to obtain a conversion value.

[0010] Further, the second platform information, the request method information and the request parameter information are connected or spliced ​​to obtain a spliced ​​string, including: Use slicing to intercept a portion of the request method information in a preset manner, or obtain a new string by adding, deleting or replacing characters in the request method information; splice the new string with the second platform information and the request parameter information to obtain a spliced ​​string.

[0011] Furthermore, before the second platform generates encrypted data according to the response information, it also includes generating a symmetric key shared by the second platform and the first platform, specifically including: The second platform generates a second private key and a second public key; the second platform sends the second public key to the first platform, and receives the first public key issued by the first platform, and the first platform generates a first private key and a first public key; The second platform receives the first ciphertext sent by the first platform, where the first ciphertext is obtained by encrypting a first random number K1 randomly generated by the first platform using a first private key; The second platform uses the first public key to decrypt the first ciphertext to obtain a first random number K1; the second platform uses the second private key to randomly generate a second random number K2 on the second platform, and uses a key negotiation method to determine the symmetric key S according to the first random number K1 and the second random number K2. k ; The second platform encrypts the second random number K2 to obtain a second ciphertext, and sends the second ciphertext to the first platform, so that the first platform decrypts the second ciphertext using the second public key to obtain the second random number K2, and uses the key agreement method to determine the symmetric key S according to the first random number K1 and the second random number K2. k .

[0012] Furthermore, the second platform generates encrypted data based on the response information, including: The response information is encrypted using a predetermined symmetric encryption algorithm and a symmetric key to obtain encrypted data, wherein the symmetric encryption algorithm includes any one or more of AES, DES and 3DES.

[0013] Furthermore, the second platform starts a timer while sending the encrypted data to the first platform. The second platform waits for a response message from the first platform within a set time period. If no response is received within the set time period, the second platform resends the data or performs error processing.

[0014] Furthermore, after the first platform decrypts the encrypted data to obtain response information, it compares and verifies the second platform information, request method information or request parameter information in the obtained response information with the second platform information, request method information or request parameter information in the data acquisition request. If the information does not match, the first platform determines that there is a risk in the data interaction.

[0015] In a second aspect, the present invention provides a system for secure data interaction between platforms, the system comprising a first platform and at least one second platform; the first platform and the second platform perform data interaction using any of the aforementioned methods for secure data interaction between platforms.

[0016] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides a method for secure data interaction between platforms. The second platform reports response information including request method information, request parameter information and parameter values ​​corresponding to the request parameter information. The first platform can verify whether the received data is complete, thereby preventing the data from being tampered with or lost during transmission, and ensuring the integrity of the response information. By encrypting the transmission of data, it can be ensured that the data is not illegally intercepted or tampered with during transmission, which greatly improves the security of the data. At the same time, only the first platform with corresponding decryption capabilities can obtain the response information, which further enhances the security of the data. Since the scheme uses a data acquisition request including platform information, request method information and request parameter information, different platforms can flexibly interact with data as needed. At the same time, the encryption and decryption process can also be set according to different security requirements.

[0017] The inter-platform data security interaction system provided by the present invention can prevent data from being tampered with or lost during transmission, thereby ensuring the integrity of response information; by encrypting the transmission of data, it can be ensured that data is not illegally intercepted or tampered with during transmission, thereby greatly improving data security. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 , Figure 2 It is a flow chart of a method for secure data interaction between platforms provided by an embodiment of the present invention.

[0019] Figure 3 It is a schematic diagram of the overall framework of the interaction between the first platform and the second platform provided by an embodiment of the present invention.

[0020] Figure 4 It is a schematic diagram of the interaction between the grid-side monitoring platform and the aggregator cloud platform provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention. Example

[0022] This embodiment introduces a method for secure data interaction between platforms, including: The second platform obtains the data acquisition request sent by the first platform, where the data acquisition request includes at least second platform information, request method information, and request parameter information; The second platform obtains response information for the data acquisition request, wherein the response information includes second platform information, request method information, request parameter information, and parameter values ​​corresponding to the request parameter information; The second platform generates encrypted data according to the response information; The second platform sends the encrypted data to the first platform, so that the first platform decrypts the encrypted data to obtain response information.

[0023] like Figure 1 and Figure 2 As shown, the method for secure data interaction between platforms provided in this embodiment specifically involves the following steps: Step S1: The second platform obtains a data acquisition request sent by the first platform, where the data acquisition request at least includes second platform information, request method information, and request parameter information; Step S2: The second platform obtains response information for the data acquisition request, wherein the response information includes second platform information, request method information, request parameter information, and parameter values ​​corresponding to the request parameter information; Step S3: The second platform generates encrypted data according to the response information; Step S4: The second platform sends the encrypted data to the first platform, so that the first platform decrypts the encrypted data to obtain response information.

[0024] In some embodiments, data interaction includes data request and data return. The data interaction between the second platform and the first platform adopts HTTPS (Hyper Text Transfer Protocol Security) protocol class RESTful API (Application Programming Interface) interface service form.

[0025] The overall framework of the interaction between the first platform and the second platform is as follows Figure 3 shown.

[0026] The first platform or the second platform can use HTTP requests to call the API interface. The URL (Uniform Resource Locator) of the API interface service is pre-set, such as API_URL = 'https: / / api.example.com / data'. In the specific example, Python's requests library can be used to send a GET request to a hypothetical API interface. The HTTPS request uses the POST method, and the content uses the json (JavaScript Object Notation) format. The POST method is a request method in the HTTP protocol, which is mainly used to submit data to the server and is suitable for scenarios such as form submission and file upload.

[0027] An application scenario of an embodiment, such as Figure 4 shown.

[0028] The first platform is the grid-side monitoring platform, and the second platform is the aggregator cloud platform. The aggregator cloud platform manages multiple charging stations, and each charging station is equipped with multiple charging piles to meet the charging needs of different vehicles. Aggregators can integrate charging facility resources from multiple sources, including charging piles, charging stations, etc., to form a unified operation and management platform, which helps to optimize the layout and allocation of charging facilities and improve the utilization and efficiency of charging facilities.

[0029] The grid-side platform can be the initiator of the data acquisition request, and the aggregator cloud platform can be the responder of the data acquisition request. According to the content of the data acquisition request of the grid-side platform, the aggregator cloud platform will actively report relevant information, which mainly includes real-time measurement values ​​and status change data, such as power load data (active power, reactive power, current, voltage, etc.) or charging facility status. The charging facility status includes the working status of the charging pile (online, offline, fault, etc.), charging current and charging voltage, charging power or temperature of the charging pile, etc. The aggregator cloud platform can also periodically transmit real-time measurement data to the grid-side platform. The aggregator cloud platform can transmit in real time and set the data transmission cycle, such as the cycle can be set to a few seconds, minutes, hours or every day, etc. This cycle can be configured.

[0030] In some embodiments, the first platform and the second platform may establish a persistent connection for periodically transmitting data. For example, when using the HTTP / 1.1 protocol, the connection may be maintained by setting Connection: keep-alive in the request header. The server does not close the connection immediately after sending a response, but waits for the next request.

[0031] It should be noted that the data acquisition request and the response information to the data acquisition request correspond to the preset situation, and there is no need to limit this.

[0032] As an example, the data acquisition request includes at least the second platform information, the request method information and the request parameter information. The second platform information may be the unique name or identity ID of the second platform, etc. The request method information may be the name string or method ID of the unique request method, etc., where the request method refers to an operation instruction that the first platform requests the second platform to perform on the request parameters; the request parameter information may include the specified area code and / or charging station ID, etc.

[0033] The application examples of the interactive API interface are as follows.

[0034] 1) The first platform sends a data acquisition request to the second platform to obtain the charging pile statistics information of a certain aggregator in a first designated area, and the first designated area may include a province or city administrative area code.

[0035] As an example, the downlink data acquisition request content field may include second platform information such as aggregator ID, request method information such as method ID (method ID such as PZ-CS-STAT-001, used to indicate obtaining charging pile statistics information of a certain aggregator in the first specified area), and request parameter information including the first specified area ID, where the aggregator ID, method ID and first specified area ID may be string field types.

[0036] The aggregator ID can be pre-assigned to the aggregator platform by the grid-side monitoring platform, and each aggregator platform has a unique aggregator ID.

[0037] 2) The response information field for the data acquisition request in 1) may include the second platform information, request method information and request parameter information in 1) the data acquisition request and the data part, the data part includes the parameter value corresponding to the request parameter information, and the parameter value includes the total number of charging piles, etc.

[0038] The data part can be obtained in array form. If there is no charging pile in a certain administrative area, the administrative area can be ignored in the response information.

[0039] 3) In some embodiments, the first platform sends a data acquisition request to the second platform to obtain information about all charging stations of a certain aggregator within a second specified area, and the second specified area may include a district or county administrative area.

[0040] Examples of downlink request content fields may include second platform information such as aggregator ID, request method information such as method ID (method ID such as PZ-CS-STAT-002, used to indicate obtaining information on all charging stations of a certain aggregator within a second specified area), and request parameter information including the second specified area ID, where the aggregator ID, method ID, and second specified area ID may be string field types.

[0041] 4) An example of the response information field for the data acquisition request in 3) may include the second platform information, request method information and request parameter information in 2) the data acquisition request, and the data part, where the data part includes the parameter value corresponding to the request parameter information, such as the charging station name, etc.

[0042] 5) In some embodiments, if the first platform sends a data acquisition request to the second platform to obtain all the charging pile information in a single charging station of a certain aggregator, as an example, the downlink request content field may include second platform information such as aggregator ID, request method information such as method ID (method ID such as CS-AllEVCS-STAT-003, used to indicate the acquisition of all the charging pile information in a single charging station of a certain aggregator), and request parameter information including charging station ID, where aggregator ID, method ID and charging station ID may be string field types.

[0043] 6) The response information field for the data acquisition request in 5) may include second platform information such as aggregator ID, request method information such as method ID (such as CS-AllEVCS-STAT-003), request parameter information including charging station ID and parameter values ​​corresponding to the request parameter information, such as the number of charging piles, etc.

[0044] 7) In some embodiments, if the first platform sends a data acquisition request to the second platform to obtain the measurement value information of charging piles within the jurisdiction of a province, city, district or county or within a charging station. The downlink request content field is shown in Table 7 and may include second platform information such as aggregator ID, request method information such as method ID (method ID such as SZ-EVCS-M-004, used to indicate the acquisition of the measurement value information of charging piles within the jurisdiction of a province, city, district or county or within a charging station), and request parameter information including designated area ID, first designated area ID, second designated area ID and / or charging station ID.

[0045] 8) The response information field for the data acquisition request in 7) may include: 7) the second platform information, request method information and request parameter information in the data acquisition request and the data part, the data part includes the parameter value corresponding to the request parameter information, such as the charging pile power, etc.

[0046] In some implementations, before the second platform sends the encrypted data to the first platform, the second platform also performs a legitimacy verification on the data acquisition request, specifically including: Extracting the second platform information, the request method information and the request parameter information from the data acquisition request, calling a preset mapping relationship, and determining a request mapping value corresponding to the second platform information, the request method information and the request parameter information; The request mapping value is compared with the legal mapping value list. If the request mapping value does not exist in the legal mapping value list, the data acquisition request is determined to be illegal, and the second platform transmits a data acquisition request response indicating rejection to the first platform; if the request mapping value exists in the legal mapping value list, the data acquisition request is determined to be legal, and the second platform transmits a data acquisition request response indicating permission to the first platform; wherein the legal mapping value list includes calling a preset mapping relationship to determine the corresponding legal mapping value based on each legal second platform information, each legal request method information and each legal request parameter information.

[0047] The embodiment of the present application also includes the second platform verifying the legitimacy of the data acquisition request before the second platform sends the encrypted data to the first platform. Through a preset mapping relationship, the second platform information, request method information and request parameter information are converted into a request mapping value, and then compared with a list of legal mapping values. This method ensures the accuracy of the verification. The request will only be accepted if all components of the request meet the preset legal standards. By verifying the legitimacy of the data acquisition request, illegal requests or malicious requests can be effectively prevented from entering the platform, thereby protecting data security between platforms.

[0048] As in the above example, the second platform information includes the aggregator ID (i.e., the second platform ID), which is unique and predetermined; the request method information includes the method ID, such as PZ-CS-STAT-01, PZ-CS-STAT-02, CS-AllEVCS-STAT-003, or SZ-EVCS-M-004, and the request method information can also be predetermined; the request parameter information includes the first designated area ID, the second designated area ID, and / or the charging station ID, etc., and the second platform can also determine the corresponding legal values ​​in advance. Therefore, the second platform can combine the predetermined legal second platform information, each legal request method information, and each legal request parameter information, and call the preset mapping relationship to determine the corresponding legal mapping value, and each legal mapping value constitutes a legal mapping value list.

[0049] In some examples, the mapping relationships of the second platforms may be the same, or the second platforms may correspond to different mapping relationships.

[0050] In some embodiments, based on the second platform information, the request method information and the request parameter information, calling a preset mapping relationship to determine the corresponding request mapping value includes: connecting or concatenating the second platform information, the request method information and the request parameter information to obtain a concatenated string, using the concatenated string as a request feature, and calling a preset mapping relationship to obtain a request mapping value corresponding to the request feature. The above determination of a legal mapping value is similar to the determination of a request mapping value.

[0051] In some embodiments, the mapping relationship can be a one-way hash function, where the request feature is used as the input of the hash function, and the output hash value is used as the request mapping value of the request feature. Since the hash function is one-way, it means that the original input data cannot be obtained from the hash value in reverse, which ensures the security of the data. Optional one-way hash functions include SHA-256 or SHA-3.

[0052] In some embodiments, based on the second platform information, request method information and request parameter information, a preset mapping relationship is called to determine the corresponding request mapping value, including: connecting or splicing the second platform information, request method information and request parameter information to obtain a spliced ​​string; obtaining a conversion value from the spliced ​​string according to the preset mapping relationship, and using the conversion value as the request mapping value.

[0053] The concatenated character string is converted according to a preset mapping relationship to obtain a conversion value, specifically including: the concatenated character string includes numbers and letters; each letter in the concatenated character string is mapped to a corresponding mapping number according to the preset mapping relationship; each number in the concatenated character string and each corresponding mapping number are added to obtain a conversion value.

[0054] As in the above embodiment, in "SZ-EVCS-M-004", 'C' is mapped to 3, 'S' is mapped to 19, 'M' is mapped to 13, and so on.

[0055] The embodiments of the present application simplify the complexity of the verification process by converting information into numerical values ​​for comparison, making it more intuitive and efficient, reducing the consumption of computing resources, and reducing the load on the system.

[0056] In some embodiments, the second platform information, the request method information, and the request parameter information are connected or concatenated to obtain a concatenated string, including: using slicing to intercept a portion of the request method information in a preset manner, or obtaining a new string by adding, deleting, or replacing characters; and concatenating the new string with the second platform information and the request parameter information to obtain a concatenated string. For example, only "SZ-EVCS" is intercepted from "SZ-EVCS-M-004".

[0057] It can be understood that in a specific embodiment, slicing can be used in a preset manner to intercept a portion of the target information, or a new string can be obtained by adding, deleting or replacing characters in the target information; the new string is concatenated with the information other than the target information in the second platform information, the request method information and the request parameter information to obtain a concatenated string; the target information is any one of the second platform information, the request method information and the request parameter information.

[0058] In some embodiments, before the second platform generates encrypted data according to the response information, the second platform generates a symmetric key shared by the second platform and the first platform, specifically including: The second platform generates a second private key and a second public key; the second platform sends the second public key to the first platform, and receives the first public key issued by the first platform, and the first platform generates a first private key and a first public key; The second platform receives the first ciphertext sent by the first platform, where the first ciphertext is obtained by encrypting a first random number K1 randomly generated by the first platform using a first private key; The second platform uses the first public key to decrypt the first ciphertext to obtain a first random number K1; the second platform uses the second private key to randomly generate a second random number K2 on the second platform, and uses a key negotiation method to determine the symmetric key S according to the first random number K1 and the second random number K2. k ; The second platform encrypts the second random number K2 to obtain a second ciphertext, and sends the second ciphertext to the first platform, so that the first platform decrypts the second ciphertext using the second public key to obtain the second random number K2, and uses the key agreement method to determine the symmetric key S according to the first random number K1 and the second random number K2. k .

[0059] In some embodiments, the lengths of the first random number K1 and the second random number K2 are the same. The key agreement method may be to combine the first random number K1 and the second random number K2 using an exclusive OR (XOR) operation. The exclusive OR operation is a binary operation, where the same is 0 and the different is 1, thereby obtaining the symmetric key S k .

[0060] In some embodiments, the key agreement method may be to combine K1 and K2, for example, by concatenating (K1 || K2) or using other combinations to obtain the combined data, where || represents a string concatenation operation. A hash function is applied to the combined data to generate a hash value of a fixed length. This hash value is used as a symmetric key shared by the second platform and the first platform.

[0061] In some embodiments, the second platform generates encrypted data based on the response information, including encrypting the response information using a pre-negotiated symmetric encryption algorithm and a symmetric key to obtain the encrypted data. Common symmetric encryption algorithms include AES (Advanced Encryption Standard), DES (Data Encryption Standard) and 3DES. After receiving the encrypted data, the first platform uses a symmetric decryption algorithm and a symmetric key corresponding to the symmetric encryption algorithm to decrypt the response information to obtain the response information.

[0062] When a first platform interacts with multiple second platforms, the symmetric keys shared by the first platform and each second platform may be the same or different, ensuring that the shared symmetric key is known only to the first platform and the second platform sharing the symmetric key with it.

[0063] In some embodiments, the second platform starts a timer when sending the encrypted data to the first platform. The main function of the timer is to ensure that the second platform waits for a response message (i.e., a data reception confirmation message) from the first platform within a period of time. If no response is received within this time, the second platform can take corresponding measures, such as resending the data or performing error handling.

[0064] In some embodiments, the first platform can decrypt the encrypted data returned by the second platform's uplink response, and compare and verify the second platform information, request method information or request parameter information in the original response information with the second platform information, request method information or request parameter information in the data acquisition request. The second platform information, request method information or request parameter information in the original response information should be the same as the second platform information, request method information or request parameter information in the data acquisition request. If the information is different, the first platform can determine that there is a risk in the data interaction.

[0065] The method for secure data interaction between platforms provided in this embodiment is that the second platform reports response information including request method information, request parameter information and parameter values ​​corresponding to the request parameter information, and the first platform can verify whether the received data is complete, thereby avoiding data tampering or loss during transmission, and ensuring the integrity of the response information. By transmitting encrypted data, it can be ensured that the data is not illegally intercepted or tampered with during transmission, which greatly improves the security of the data. At the same time, only the first platform with corresponding decryption capabilities can obtain the response information, which further enhances the security of the data. Since the scheme uses a data acquisition request including platform information, request method information and request parameter information, different platforms can flexibly interact with data as needed. At the same time, the encryption and decryption process can also be set according to different security requirements. Example

[0066] This embodiment provides a system for secure data interaction between platforms, the system comprising a first platform and at least one second platform; the first platform and the second platform perform data interaction using any of the aforementioned methods for secure data interaction between platforms.

[0067] The inter-platform data security interaction system provided in this embodiment can prevent data from being tampered with or lost during transmission, thereby ensuring the integrity of response information; by encrypting the transmission of data, it can ensure that data is not illegally intercepted or tampered with during transmission, greatly improving data security.

[0068] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

[0069] It should be understood by those skilled in the art that the embodiments of the present disclosure may be provided as methods, systems or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0070] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0071] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0072] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure rather than to limit its protection scope. Although the present disclosure has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that after reading the present disclosure, those skilled in the art can still make various changes, modifications or equivalent substitutions to the specific implementation methods of the invention, but these changes, modifications or equivalent substitutions are all within the protection scope of the disclosed claims to be approved.

Claims

1. A method for secure data interaction between platforms, characterized in that: include: The second platform obtains the data acquisition request sent by the first platform, where the data acquisition request includes at least second platform information, request method information, and request parameter information; The second platform obtains response information for the data acquisition request, wherein the response information includes second platform information, request method information, request parameter information, and parameter values ​​corresponding to the request parameter information; The second platform generates encrypted data according to the response information; The second platform sends the encrypted data to the first platform, so that the first platform decrypts the encrypted data to obtain response information.

2. The method for secure data interaction between platforms according to claim 1, characterized in that: Before the second platform sends the encrypted data to the first platform, the second platform also verifies the legitimacy of the data acquisition request, specifically including: Extracting the second platform information, the request method information and the request parameter information from the data acquisition request, calling a preset mapping relationship, and determining a request mapping value corresponding to the second platform information, the request method information and the request parameter information; Compare the requested mapping value with the list of legal mapping values; If the requested mapping value does not exist in the legal mapping value list, the data acquisition request is determined to be illegal, and the second platform transmits a data acquisition request response indicating rejection to the first platform; If the requested mapping value exists in the legal mapping value list, the data acquisition request is determined to be legal, and the second platform transmits a data acquisition request response indicating permission to the first platform; The legal mapping value list includes calling preset mapping relationships to determine corresponding legal mapping values ​​based on each legal second platform information, each legal request method information and each legal request parameter information.

3. The method for secure data interaction between platforms according to claim 2, characterized in that: The extracting the second platform information, the request method information and the request parameter information from the data acquisition request, calling a preset mapping relationship, and determining the request mapping value corresponding to the second platform information, the request method information and the request parameter information includes: The extracted second platform information, request method information and request parameter information are connected or concatenated to obtain a concatenated string, the concatenated string is used as a request feature, and a preset mapping relationship is called to obtain a request mapping value corresponding to the request feature.

4. The method for secure data interaction between platforms according to claim 2, characterized in that: The extracting the second platform information, the request method information and the request parameter information from the data acquisition request, calling a preset mapping relationship, and determining the request mapping value corresponding to the second platform information, the request method information and the request parameter information includes: The second platform information, the request method information and the request parameter information are connected or concatenated to obtain a concatenated string; the concatenated string is converted into a value according to a preset mapping relationship, and the converted value is used as a request mapping value.

5. The method for secure data interaction between platforms according to claim 4, characterized in that: The step of converting the concatenated character strings to obtain a conversion value according to a preset mapping relationship includes: The concatenated character string includes numbers and letters. Each letter in the concatenated character string is mapped to a corresponding mapping number according to a preset mapping relationship; each number in the concatenated character string and each corresponding mapping number are added to obtain a conversion value.

6. The method for secure data interaction between platforms according to claim 3, characterized in that: The connecting or splicing the second platform information, the request method information and the request parameter information to obtain a spliced ​​string includes: Use slicing to intercept a portion of the request method information in a preset manner, or obtain a new string by adding, deleting or replacing characters in the request method information; splice the new string with the second platform information and the request parameter information to obtain a spliced ​​string.

7. The method for secure data interaction between platforms according to claim 1, characterized in that: Before the second platform generates encrypted data according to the response information, it also includes generating a symmetric key shared by the second platform and the first platform, specifically including: The second platform generates a second private key and a second public key; the second platform sends the second public key to the first platform, and receives the first public key issued by the first platform, and the first platform generates a first private key and a first public key; The second platform receives the first ciphertext sent by the first platform, where the first ciphertext is obtained by encrypting a first random number K1 randomly generated by the first platform using a first private key; The second platform uses the first public key to decrypt the first ciphertext to obtain a first random number K1; the second platform uses the second private key to randomly generate a second random number K2 on the second platform, and uses a key negotiation method to determine the symmetric key S according to the first random number K1 and the second random number K2. k ; The second platform encrypts the second random number K2 to obtain a second ciphertext, and sends the second ciphertext to the first platform, so that the first platform decrypts the second ciphertext using the second public key to obtain the second random number K2, and uses the key agreement method to determine the symmetric key S according to the first random number K1 and the second random number K2. k .

8. The method for secure data interaction between platforms according to claim 7, characterized in that: The second platform generates encrypted data based on the response information, including: The response information is encrypted using a predetermined symmetric encryption algorithm and a symmetric key to obtain encrypted data, wherein the symmetric encryption algorithm includes any one or more of AES, DES and 3DES.

9. The method for secure data interaction between platforms according to claim 1, characterized in that: After the first platform decrypts the encrypted data to obtain response information, it compares and verifies the second platform information, request method information or request parameter information in the obtained response information with the second platform information, request method information or request parameter information in the data acquisition request. If the information is different, the first platform determines that there is a risk in the data interaction.

10. A data security interaction system between platforms, characterized in that: The system includes a first platform and at least one second platform; the first platform and the second platform interact with each other using the inter-platform data security interaction method described in any one of claims 1 to 9.