A method and device for data processing
By obtaining the identification and security level of the target third-party system and establishing a corresponding service agent for communication, the problem of low communication security and efficiency in the existing technology is solved, and efficient and secure communication for different systems is realized.
Patent Information
- Application Number
- CN202111277728.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-10-29
AI Technical Summary
The existing technology lacks pertinence when ensuring communication security, and the communication efficiency is not high. It cannot effectively distinguish the security levels and types of different systems, resulting in a mismatch in communication methods and affecting security and efficiency.
By obtaining the identity of the target third-party system, determine whether it is in the preset white list. If it is, determine the system type and establish a first service agent for communication; if not, determine the security level and establish a second service agent for communication. Different communication methods are used depending on the system type and security level.
It realizes the use of different communication methods for different systems, improves the security and efficiency of communication, and ensures safe and efficient data transmission with third-party systems.
Smart Images

Figure CN114091014B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a method and device for data processing. Background Art
[0002] With the development of Internet technology, communication between different systems is becoming more and more frequent, and the security of their communication has also become an important issue.
[0003] In order to ensure the security of communication, the existing technology usually adopts a unified security check method for the communication system, which is not targeted and affects the efficiency of image communication. Summary of the invention
[0004] In view of the above problems, a method and device for data processing is proposed to overcome the above problems or at least partially solve the above problems, including:
[0005] A method for data processing, the method comprising:
[0006] Obtain the target system ID of the target third-party system;
[0007] In the case where the target system identifier is in a preset whitelist, determining the target system type of the target third-party system, and in the case where the target system type is a specified system type, establishing a first service agent for the target third-party system, so as to communicate with the target third-party system using the first service agent;
[0008] When the target system identifier is not in a preset whitelist, the target system security level of the target third-party system is determined, and when the target system security level is less than a preset security level, a second service agent is established for the target third-party system to communicate with the target third-party system using the second service agent.
[0009] Optionally, it also includes:
[0010] When it is detected that first data is to be sent to the target third-party system through the first service agent, preprocessing the first data;
[0011] The preprocessed first data is sent to the target third-party system.
[0012] Optionally, it also includes:
[0013] When it is detected that second data sent by the target third-party system is received through the second service agent, a security check is performed on the second data.
[0014] Optionally, it also includes:
[0015] When it is detected that the third data is to be sent to the target third-party system through the second service agent, key information in the third data is determined and hidden;
[0016] The hidden processed third data is sent to the target third-party system.
[0017] Optionally, preprocessing the first data includes:
[0018] The first data is format-converted, and the format-converted first data is encrypted.
[0019] Optionally, the designated system type is an e-government system type.
[0020] A data processing device, comprising:
[0021] A target system identification acquisition module is used to acquire the target system identification of a target third-party system;
[0022] A first service agent establishing module, configured to determine the target system type of the target third-party system when the target system identifier is in a preset whitelist, and to establish a first service agent for the target third-party system when the target system type is a specified system type, so as to communicate with the target third-party system using the first service agent;
[0023] A second service agent establishing module is used to determine the target system security level of the target third-party system when the target system identifier is not in a preset whitelist, and to establish a second service agent for the target third-party system when the target system security level is less than a preset security level, so as to use the second service agent to communicate with the target third-party system.
[0024] Optionally, it also includes:
[0025] a preprocessing module, configured to preprocess the first data when detecting that the first data is to be sent to the target third-party system through the first service agent;
[0026] The first data sending module is used to send the preprocessed first data to the target third-party system.
[0027] A server comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the data processing method as described above when executed by the processor.
[0028] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data processing method described above is implemented.
[0029] The embodiments of the present invention have the following advantages:
[0030] In an embodiment of the present invention, by obtaining a target system identifier of a target third-party system, when the target system identifier is in a preset whitelist, determining the target system type of the target third-party system, and when the target system type is a specified system type, establishing a first service agent for the target third-party system, so as to adopt the first service agent to communicate with the target third-party system, and when the target system identifier is not in a preset whitelist, determining the target system security level of the target third-party system, and when the target system security level is less than a preset security level, establishing a second service agent for the target third-party system, so as to adopt the second service agent to communicate with the target third-party system, thereby realizing communication with the third-party system by establishing different service agents and adopting different communication methods for different systems, thereby improving the security and efficiency of communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0032] Figure 1 is a flowchart of a data processing method provided by an embodiment of the present invention;
[0033] Figure 2 is a flowchart of another data processing method provided by an embodiment of the present invention;
[0034] Figure 3 It is a structural block diagram of a data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] Reference Figure 1, shows a flowchart of a data processing method provided by an embodiment of the present invention, which may specifically include the following steps:
[0037] Step 101, obtaining a target system identifier of a target third-party system;
[0038] For a target third-party system that needs to communicate with it, a target system identifier of the target third-party system may be obtained. For example, the target system identifier may be the name, IP address, website, or other information used to identify the target third-party system.
[0039] Step 102, when the target system identifier is in a preset whitelist, determining the target system type of the target third-party system, and when the target system type is a specified system type, establishing a first service agent for the target third-party system, so as to communicate with the target third-party system using the first service agent;
[0040] As an example, the specified system type may be an e-government system type.
[0041] In actual applications, a whitelist may be pre-set, and the whitelist may store system identifiers of multiple third-party systems. A third-party system with a system identifier in the whitelist indicates that it is safe to communicate with the system. After determining the target system identifier, it may be determined whether the target system identifier of the target third-party system is in the whitelist.
[0042] When the target system is identified in the whitelist, a communication connection is established with it. However, due to the particularity of some third-party systems, they only allow internal devices to connect and do not directly connect with external devices. In this case, the target system type of the target third-party system can be further determined, and it can be determined whether the target system type of the target third-party system is the specified system type.
[0043] In the case where the target system type is a non-specified system type, since the target system identifier of the target third-party system is in the whitelist, a communication connection can be directly established with it. In the case where the target system type is a specified system type, a first service agent can be established for the target third-party system, and then a communication connection can be established between the first service agent and the target third-party system, and the first service agent can be used to communicate with the target third-party system.
[0044] Step 103, when the target system identifier is not in the preset whitelist, determine the target system security level of the target third-party system, and when the target system security level is less than the preset security level, establish a second service agent for the target third-party system, so as to use the second service agent to communicate with the target third-party system.
[0045] When the target system identifier is not in the preset whitelist, it indicates that communication with it is not necessarily safe. In this case, the target system security level of the target third-party system can be further determined. When the target system security level is greater than or equal to the preset security level, it indicates that its security level is high, and a communication connection can be established directly with the target third-party system.
[0046] When the security level of the target system is lower than the preset security level, indicating that its security level is not high, a second service agent can be established for the target third-party system, and then a communication connection between the second service agent and the target third-party system can be established, and the second service agent can be used to communicate with the target third-party system.
[0047] In an embodiment of the present invention, by obtaining a target system identifier of a target third-party system, when the target system identifier is in a preset whitelist, determining the target system type of the target third-party system, and when the target system type is a specified system type, establishing a first service agent for the target third-party system, so as to adopt the first service agent to communicate with the target third-party system, and when the target system identifier is not in a preset whitelist, determining the target system security level of the target third-party system, and when the target system security level is less than a preset security level, establishing a second service agent for the target third-party system, so as to adopt the second service agent to communicate with the target third-party system, thereby realizing communication with the third-party system by establishing different service agents and adopting different communication methods for different systems, thereby improving the security and efficiency of communication.
[0048] Reference Figure 2 , shows a flowchart of another data processing method provided by an embodiment of the present invention, which may specifically include the following steps:
[0049] Step 201, obtaining a target system identifier of a target third-party system;
[0050] For a target third-party system that needs to communicate with it, a target system identifier of the target third-party system may be obtained. For example, the target system identifier may be the name, IP address, website, or other information used to identify the target third-party system.
[0051] Step 202, when the target system identifier is in a preset whitelist, determining the target system type of the target third-party system, and when the target system type is a specified system type, establishing a first service agent for the target third-party system, so as to communicate with the target third-party system using the first service agent;
[0052] As an example, the specified system type may be an e-government system type.
[0053] In actual applications, a whitelist may be pre-set, and the whitelist may store system identifiers of multiple third-party systems. A third-party system with a system identifier in the whitelist indicates that it is safe to communicate with the system. After determining the target system identifier, it may be determined whether the target system identifier of the target third-party system is in the whitelist.
[0054] When the target system is identified in the whitelist, a communication connection can be established with it. However, due to the particularity of some third-party systems, they only allow internal devices to connect and do not directly connect with external devices. In this case, the target system type of the target third-party system can be further identified, and it can be determined whether the target system type of the target third-party system is the specified system type.
[0055] In the case where the target system type is a non-specified system type, since the target system identifier of the target third-party system is in the whitelist, a communication connection can be directly established with it. In the case where the target system type is a specified system type, a first service agent can be established for the target third-party system, and then a communication connection can be established between the first service agent and the target third-party system, and the first service agent can be used to communicate with the target third-party system.
[0056] Step 203, when the target system identifier is not in the preset whitelist, determining the target system security level of the target third-party system, and when the target system security level is less than the preset security level, establishing a second service agent for the target third-party system, so as to communicate with the target third-party system using the second service agent;
[0057] When the target system identifier is not in the preset whitelist, it indicates that communication with it is not necessarily safe. In this case, the target system security level of the target third-party system can be further determined. When the target system security level is greater than or equal to the preset security level, it indicates that its security level is high, and a communication connection can be established directly with the target third-party system.
[0058] When the security level of the target system is lower than the preset security level, indicating that its security level is not high, a second service agent can be established for the target third-party system, and then a communication connection between the second service agent and the target third-party system can be established, and the second service agent can be used to communicate with the target third-party system.
[0059] Step 204, when it is detected that the first data is to be sent to the target third-party system through the first service agent, preprocessing the first data and sending the preprocessed first data to the target third-party system;
[0060] After the first service agent is established, the first data can be sent to the target third-party system through the first service agent. Since the first service agent is established when the target system type of the target third-party system is a specified system type, and the communication requirements of the target third-party system of the specified system type are higher, such as the specified system type can be a government system type, in order to meet the needs of the target third-party system, the first data can be preprocessed, and then the preprocessed first data can be sent to the target third-party system.
[0061] In one embodiment of the present invention, preprocessing the first data may include:
[0062] The first data is format-converted, and the format-converted first data is encrypted.
[0063] In a specific implementation, the target third-party system may have format and confidentiality requirements for the data. The first data may be format-converted according to the requirements of the target third-party system, and the first data after format conversion may be encrypted, such as by using a certificate for encryption.
[0064] Step 205, when it is detected that the second data sent by the target third-party system is received through the second service agent, a security check is performed on the second data;
[0065] After the second service agent is established, the second data can be received from the target third-party system through the second service agent. Since the target third-party system is established when the target system security level of the target third-party system is lower than the preset security level, in order to further ensure the security of the received data, the received second data can be further subjected to a security check, such as checking whether the second data carries viruses such as Trojans.
[0066] Step 206, when it is detected that the third data is to be sent to the target third-party system through the second service agent, key information in the third data is determined, and the key information is hidden, and the hidden third data is sent to the target third-party system.
[0067] After the second service agent is established, the third data can be sent to the target third-party system through the second service agent. Since the target third-party system is established when the target system security level of the target third-party system is lower than the preset security level, in order to prevent leakage of data when sending out, key information in the third data, such as personal identity identification and other privacy information, can be determined, and the key information can be hidden. For example, mosaics can be added to the key information in the document, and then the hidden third data can be sent to the target third-party system.
[0068] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0069] Reference Figure 3 , shows a schematic diagram of the structure of a data processing device provided by an embodiment of the present invention, which may specifically include the following modules:
[0070] The target system identification acquisition module 301 is used to acquire the target system identification of the target third-party system;
[0071] A first service agent establishing module 302 is used to determine the target system type of the target third-party system when the target system identifier is in a preset whitelist, and to establish a first service agent for the target third-party system when the target system type is a specified system type, so as to communicate with the target third-party system using the first service agent;
[0072] The second service agent establishment module 303 is used to determine the target system security level of the target third-party system when the target system identifier is not in the preset whitelist, and to establish a second service agent for the target third-party system when the target system security level is less than the preset security level, so as to communicate with the target third-party system using the second service agent.
[0073] In one embodiment of the present invention, it also includes:
[0074] a preprocessing module, configured to preprocess the first data when detecting that the first data is to be sent to the target third-party system through the first service agent;
[0075] The first data sending module is used to send the preprocessed first data to the target third-party system.
[0076] In one embodiment of the present invention, it also includes:
[0077] The security check module is used to perform a security check on the second data when detecting that the second data sent by the target third-party system is received through the second service agent.
[0078] In one embodiment of the present invention, it also includes:
[0079] a concealment processing module, configured to, when detecting that third data is to be sent to the target third-party system through the second service agent, determine key information in the third data and perform concealment processing on the key information;
[0080] The third data sending module is used to send the hidden third data to the target third-party system.
[0081] In one embodiment of the present invention, the preprocessing module includes:
[0082] The format conversion encryption module is used to perform format conversion on the first data and encrypt the first data after format conversion.
[0083] In one embodiment of the present invention, the designated system type is an e-government system type.
[0084] In an embodiment of the present invention, by obtaining a target system identifier of a target third-party system, when the target system identifier is in a preset whitelist, the target system type of the target third-party system is determined, and when the target system type is a specified system type, a first service agent is established for the target third-party system, so as to communicate with the target third-party system using the first service agent, and when the target system identifier is not in a preset whitelist, the target system security level of the target third-party system is determined, and when the target system security level is less than a preset security level, a second service agent is established for the target third-party system, so as to communicate with the target third-party system using the second service agent, thereby achieving communication with the third-party system by establishing different service agents and ensuring the security of communication.
[0085] An embodiment of the present invention further provides a server, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and the computer program implements the above data processing method when executed by the processor.
[0086] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above data processing method is implemented.
[0087] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0088] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0089] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention 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 codes.
[0090] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the 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 terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal 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.
[0091] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product 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.
[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement 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.
[0093] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0094] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0095] The above is a detailed introduction to a data processing method and device provided. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for data processing, characterized in that: The method comprises: Obtain the target system ID of the target third-party system; In the case where the target system identifier is in a preset whitelist, determining the target system type of the target third-party system, and in the case where the target system type is a specified system type, establishing a first service agent for the target third-party system, so as to communicate with the target third-party system using the first service agent; Wherein, in the case where the target system identifier is in a preset whitelist, determining the target system type of the target third-party system further includes: in the case where the target system type is a non-specified system type, directly establishing a communication connection with the third-party system; Among them, the designated system type allows only internal devices to connect and does not directly connect with external devices, and the non-designated system type can connect with both internal devices and external devices; If the target system identifier is not in the preset whitelist, determine the target system security level of the target third-party system, and if the target system security level is less than the preset security level, establish a second service agent for the target third-party system, so as to communicate with the target third-party system using the second service agent; When the target system identifier is not in the preset whitelist, the target system security level of the target third-party system is determined, and when the target system security level is greater than or equal to the preset security level, a communication connection is directly established with the target third-party system.
2. The method according to claim 1, characterized in that Also includes: When it is detected that first data is to be sent to the target third-party system through the first service agent, preprocessing the first data; The preprocessed first data is sent to the target third-party system.
3. The method according to claim 1 or 2, characterized in that: Also includes: When it is detected that second data sent by the target third-party system is received through the second service agent, a security check is performed on the second data.
4. The method according to claim 3, characterized in that Also includes: When it is detected that the third data is to be sent to the target third-party system through the second service agent, determining key information in the third data and hiding the key information; The hidden processed third data is sent to the target third-party system.
5. The method according to claim 2, characterized in that: The preprocessing of the first data includes: The first data is format-converted, and the format-converted first data is encrypted.
6. The method according to claim 1, characterized in that The designated system type is an government affairs system type.
7. A data processing device, characterized in that: The device comprises: A target system identification acquisition module is used to acquire the target system identification of a target third-party system; A first service agent establishing module, configured to determine the target system type of the target third-party system when the target system identifier is in a preset whitelist, and to establish a first service agent for the target third-party system when the target system type is a specified system type, so as to communicate with the target third-party system using the first service agent; Wherein, in the case where the target system identifier is in a preset whitelist, determining the target system type of the target third-party system further includes: in the case where the target system type is a non-specified system type, directly establishing a communication connection with the third-party system; Among them, the designated system type allows only internal devices to connect and does not directly connect with external devices, and the non-designated system type can connect with both internal devices and external devices; A second service agent establishing module, for determining the target system security level of the target third-party system when the target system identifier is not in a preset whitelist, and establishing a second service agent for the target third-party system when the target system security level is less than a preset security level, so as to communicate with the target third-party system using the second service agent; When the target system identifier is not in the preset whitelist, the target system security level of the target third-party system is determined, and when the target system security level is greater than or equal to the preset security level, a communication connection is directly established with the target third-party system.
8. The device according to claim 7, characterized in that Also includes: a preprocessing module, configured to preprocess the first data when detecting that the first data is to be sent to the target third-party system through the first service agent; The first data sending module is used to send the preprocessed first data to the target third-party system.
9. A server, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the method for data processing according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for data processing according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Data transmission method and terminal device
CN105306454A
SSL (Secure Sockets Layer) communication methods and devices and memory medium
CN109413201A
Multi-identity management and authentication platform for human and social information
CN111797378A
