A message processing method, device, storage medium and equipment

By displaying prompt information in the configuration components of the bank application system and interacting with the encryption and decryption server, the problem of low script debugging efficiency is solved, the function of simultaneous debugging by multiple users is realized, and work efficiency is improved.

CN116016167BActive Publication Date: 2024-09-03CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211547322.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-05
Publication Date
2024-09-03
Estimated Expiration
2042-12-05

AI Technical Summary

Technical Problem

In banking application systems, script debugging efficiency is low because one press only allows one user to script and debug at the same time, making it impossible to perform a large number of scripts and debugs at the same time.

Method used

By displaying prompt information in the configuration component, obtain user selections, send the configuration information to the encryption and decryption server, determine whether the configuration information is included, and use the IP address and port to perform encryption and decryption operations to avoid script debugging through the press.

Benefits of technology

Improved the efficiency of script debugging, allowing multiple users to compile and debug scripts at the same time, improving work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016167B
    Figure CN116016167B
Patent Text Reader

Abstract

The present application discloses a message processing method, device, storage medium and equipment. When the message information is not preset information and the configuration element does not meet the preset conditions, prompt information is displayed to the user through a preset interface to enable the user to make a selection; when the selection information input by the user is received, the configuration information is obtained; the configuration information is sent to the encryption and decryption server, so that the encryption and decryption server determines whether the configuration information is included in the preset address table; if the preset address table contains the configuration information, the IP address and port sent by the encryption and decryption server are received; and an encryption request is sent to the encryption and decryption server using the IP address and port, so that the encryption and decryption server encrypts the message to obtain an encrypted message. Compared with the prior art, there is no need to perform script debugging through a press, thereby improving the efficiency of script debugging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of message processing, and in particular to a message processing method, device, storage medium and equipment. Background Art

[0002] As the core foundation supporting various financial software products, banking application systems have extremely high requirements for system security. The mainstream solutions of various banks to solve system security issues are basically concentrated on independently deploying security components to ensure the security of information data interacting between systems.

[0003] At present, the remote Windows test machine is mainly used as the main carrier for test script compilation and debugging. Before officially writing the debugging script, it is necessary to apply for a test machine resource, install and upgrade the security components of the test machine environment, and deploy the security agent software. When writing the script, it is necessary to manually add the corresponding message header of the security component, reference the JAR package of the security component, and call the relevant interface to implement the encryption function. Because a test machine only allows one user to compile and debug scripts at the same time, enterprises without enough test machines cannot compile and debug a large number of scripts at the same time, which leads to low script debugging efficiency.

[0004] Therefore, how to improve the efficiency of script debugging has become an urgent problem to be solved in this field. Summary of the invention

[0005] The present application provides a message processing method, apparatus, storage medium and device, the purpose of which is to improve the efficiency of script debugging.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] A message processing method, applied to a configuration element, comprising:

[0008] When the message information is not preset information and the configuration element does not meet the preset condition, a prompt information is displayed to the user through a preset interface to enable the user to make a selection; the message information is input by the user in advance; the message information at least includes a message; the preset condition is a configuration element of a pre-installed security agent software; the message information indicates whether the message is encrypted; the preset information is information that the message is not encrypted; the prompt information is information that prompts the user to remotely encrypt;

[0009] When the selection information input by the user is received, configuration information is acquired; the selection information indicates the selection of remote encryption information;

[0010] Sending the configuration information to the encryption and decryption server so that the encryption and decryption server determines whether the preset address table contains the configuration information;

[0011] If the preset address table contains the configuration information, receiving the IP address and port sent by the encryption and decryption server;

[0012] An encryption request is sent to the encryption / decryption server using the IP address and the port, so that the encryption / decryption server encrypts the message to obtain an encrypted message.

[0013] Optionally, also include:

[0014] Sending the encrypted message to the system under test so that the system under test responds and obtains a response message;

[0015] When the response message sent by the system under test is received, a decryption request is sent to the encryption and decryption server using the IP address and the port, so that the encryption and decryption server decrypts the response message to obtain a decrypted message.

[0016] Optionally, also include:

[0017] When the message information is preset information, the message is sent to the system under test.

[0018] Optionally, also include:

[0019] When the configuration element meets the preset condition, the configuration information is obtained, and the message is encrypted according to the configuration information to obtain an encrypted message.

[0020] Optionally, after enabling the encryption / decryption server to determine whether the preset address table contains configuration information, the method further includes:

[0021] If the preset address table does not contain the configuration information, the configuration information is displayed to the user through a preset interface, so that the user stores the configuration information in the preset address table.

[0022] A message processing device, comprising:

[0023] A display unit, used for displaying prompt information to the user through a preset interface when the message information is not preset information and the configuration element does not meet the preset condition, so that the user can make a selection; the message information is input by the user in advance; the message information at least includes a message; the preset condition is a configuration element in which the security agent software is pre-installed; the message information indicates whether the message is encrypted; the preset information is information that the message is not encrypted; the prompt information indicates information that prompts the user to remotely encrypt;

[0024] an acquiring unit, configured to acquire configuration information when receiving selection information input by the user; the selection information indicates information for selecting remote encryption;

[0025] A sending unit, used to send the configuration information to the encryption and decryption server, so that the encryption and decryption server determines whether the preset address table contains the configuration information;

[0026] A receiving unit, configured to receive an IP address and a port sent by the encryption and decryption server if the preset address table contains the configuration information;

[0027] The encryption unit is used to send an encryption request to the encryption / decryption server using the IP address and the port, so that the encryption / decryption server encrypts the message to obtain an encrypted message.

[0028] Optionally, also include:

[0029] Sending the encrypted message to the system under test so that the system under test responds and obtains a response message;

[0030] When the response message sent by the system under test is received, a decryption request is sent to the encryption and decryption server using the IP address and the port, so that the encryption and decryption server decrypts the response message to obtain a decrypted message.

[0031] Optionally, also include:

[0032] When the message information is preset information, the message is sent to the system under test.

[0033] A computer-readable storage medium includes a stored program, wherein the program executes the message processing method when executed by a processor.

[0034] A message processing device, comprising: a processor, a memory and a bus; the processor and the memory are connected via the bus;

[0035] The memory is used to store programs, and the processor is used to run programs, wherein the program executes the message processing method when the processor runs the program.

[0036] The technical solution provided by the present application is as follows: when the message information is not preset information and the configuration element does not meet the preset conditions, prompt information is displayed to the user through a preset interface to enable the user to make a selection; when the selection information input by the user is received, the configuration information is obtained; the configuration information is sent to the encryption and decryption server, so that the encryption and decryption server determines whether the configuration information is contained in the preset address table; if the preset address table contains the configuration information, the IP address and port sent by the encryption and decryption server are received; an encryption request is sent to the encryption and decryption server using the IP address and port, so that the encryption and decryption server encrypts the message to obtain an encrypted message. Compared with the prior art, there is no need to perform script debugging through a press, thereby improving the efficiency of script debugging. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A flowchart of a method for processing a message provided in an embodiment of the present application;

[0039] Figure 2 A flowchart of another message processing method provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of the architecture of a message processing device provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of the architecture of a message processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] like Figure 1 As shown, it is a flowchart of a message processing method provided in an embodiment of the present application, which is applied to a configuration element, including:

[0044] S101: When receiving a message sent by a user, determining whether the message is preset information.

[0045] If the message information is preset information, execute S102, otherwise execute S103.

[0046] The message information indicates whether the message is encrypted, the preset information is that the message is not encrypted, and the message information at least includes the message.

[0047] Specifically, assuming that the message information indicates that the message is not encrypted, and the preset information is information that the message is not encrypted, it is determined whether the message information is the preset information. Obviously, the message information is the preset information, so S102 is continued to be executed.

[0048] Specifically, assuming that the message information indicates that the message is to be encrypted, and the preset information is information that the message is not to be encrypted, it is determined whether the message information is the preset information. Obviously, the message information is not the preset information, and therefore, S103 is continued to be executed.

[0049] S102: Send the message to the system under test.

[0050] It should be noted that when the message information is preset information, it means that the message does not need to be encrypted, and the unencrypted message is directly sent to the system under test.

[0051] S103: Determine whether the configuration element meets the preset conditions.

[0052] If the configuration element meets the preset condition, then S104 is executed, otherwise S106 is executed.

[0053] Among them, the preset condition is the configuration element of the pre-installed security agent software.

[0054] Specifically, assuming that the configuration element has not installed the security agent software, the preset condition is that the configuration element has pre-installed the security agent software, and whether the configuration element meets the preset condition is determined. Obviously, the configuration element does not meet the preset condition, so continue to execute S106.

[0055] Specifically, assuming that the configuration element has installed the security agent software, the preset condition is that the configuration element has pre-installed the security agent software, and whether the configuration element meets the preset condition is determined. Obviously, the configuration element meets the preset condition, so continue to execute S104.

[0056] S104: Acquire configuration information, and encrypt the message according to the configuration information to obtain an encrypted message.

[0057] The configuration information includes but is not limited to: the address and port of the key management center, the security node number of this application, and the security node number of the peer end.

[0058] It should be noted that the specific implementation method of encrypting the message according to the configuration information is common knowledge known to those skilled in the art and will not be described in detail here.

[0059] S105: Send the encrypted message to the system under test, so that the system under test responds and obtains a response message.

[0060] After executing S105, continue to execute S113.

[0061] S106: Displaying prompt information to the user through a preset interface to enable the user to make a selection.

[0062] The prompt information is information that prompts the user to perform remote encryption.

[0063] S107: When the selection information input by the user is received, the configuration information is acquired.

[0064] The selection information indicates information for selecting remote encryption.

[0065] S108: Send the configuration information to the encryption and decryption server, so that the encryption and decryption server determines whether the preset address table contains the configuration information.

[0066] If the preset address table contains configuration information, execute S109, otherwise execute S110.

[0067] The preset address table includes but is not limited to: a key management center address list.

[0068] It should be noted that the specific implementation process of sending the configuration information to the encryption and decryption server is: sending the configuration information to the Kafka server, so that the Kafka server sends the configuration information to the encryption and decryption server.

[0069] It should be emphasized that since the encryption and decryption server has subscribed to the information of the Kafka server in advance, when the configuration information is sent to the Kafka server, the encryption and decryption server can obtain the configuration information from the Kafka server and complete subsequent operations.

[0070] S109: Receive the IP address and port number sent by the encryption and decryption server, and store the IP address and port number locally.

[0071] S110: Displaying the configuration information to the user through a preset interface, so that the user can store the configuration information into a preset address table.

[0072] S111: Send an encryption request to the encryption / decryption server using the IP address and port, so that the encryption / decryption server encrypts the message to obtain an encrypted message.

[0073] The encrypted request includes but is not limited to: http request.

[0074] Optionally, before sending an encryption request to an encryption / decryption server using an IP address and a port, the message needs to be pre-processed according to preset security requirements.

[0075] It should be noted that the specific implementation process of the encryption and decryption server to encrypt the message is: the encryption and decryption server uses the security agent software to register the service address of the key management center, obtains the root certificate and the security agent service certificate, and encrypts the message based on the root certificate and the security agent service certificate.

[0076] S112: Send the encrypted message to the system under test, so that the system under test responds and obtains a response message.

[0077] S113: When receiving a response message sent by the system under test, a decryption request is sent to the encryption and decryption server using the IP address and port, so that the encryption and decryption server decrypts the response message to obtain a decrypted message.

[0078] It should be noted that when a response message sent by the system under test is received, the response message is unpacked to obtain the target message, and it is determined whether the target message is an encrypted message. If the target message is an encrypted message, the target message is sent to the encryption and decryption server.

[0079] To summarize, the configuration information is sent to the encryption and decryption server so that the encryption and decryption server determines whether the preset address table contains the configuration information. If the preset address table contains the configuration information, the IP address and port sent by the encryption and decryption server are received, and the IP address and port number are stored locally. The IP address and port are used to send an encryption request to the encryption and decryption server so that the encryption and decryption server encrypts the message to obtain an encrypted message. Compared with the prior art, there is no need to perform script debugging through a press, thereby improving the efficiency of script debugging.

[0080] like Figure 2 As shown, it is a flowchart of another message processing method provided in an embodiment of the present application, including:

[0081] S201: When the message information is not preset information and the configuration element does not meet the preset conditions, a prompt message is displayed to the user through a preset interface to enable the user to make a selection.

[0082] Among them, the message information is input by the user in advance; the message information at least includes the message; the preset condition is the configuration element of the pre-installed security agent software; the message information indicates whether the message is encrypted; the preset information is the information that the message is not encrypted; the prompt information is the information that prompts the user to remotely encrypt.

[0083] S202: When the selection information input by the user is received, the configuration information is acquired.

[0084] The selection information indicates information for selecting remote encryption.

[0085] S203: Send the configuration information to the encryption and decryption server, so that the encryption and decryption server determines whether the preset address table contains the configuration information.

[0086] S204: If the preset address table contains configuration information, receive the IP address and port sent by the encryption and decryption server.

[0087] S205: Send an encryption request to the encryption / decryption server using the IP address and port, so that the encryption / decryption server encrypts the message to obtain an encrypted message.

[0088] To summarize, the configuration information is sent to the encryption and decryption server so that the encryption and decryption server determines whether the preset address table contains the configuration information. If the preset address table contains the configuration information, the IP address and port sent by the encryption and decryption server are received, and the IP address and port number are stored locally. The IP address and port are used to send an encryption request to the encryption and decryption server so that the encryption and decryption server encrypts the message to obtain an encrypted message. Compared with the prior art, there is no need to perform script debugging through a press, thereby improving the efficiency of script debugging.

[0089] like Figure 3 As shown, it is a schematic diagram of the architecture of a message processing device provided in an embodiment of the present application, including:

[0090] The display unit 100 is used to display prompt information to the user through a preset interface when the message information is not preset information and the configuration element does not meet the preset conditions, so that the user can make a selection; the message information is input by the user in advance; the message information at least includes the message; the preset condition is the configuration element of the pre-installed security agent software; the message information indicates whether the message is encrypted; the preset information is information that the message is not encrypted; the prompt information is information that prompts the user to remotely encrypt.

[0091] The display unit 100 is further configured to send the message to the system under test when the message information is preset information.

[0092] The display unit 100 is also used to obtain configuration information when the configuration element meets the preset conditions, and encrypt the message according to the configuration information to obtain the encrypted message.

[0093] The acquisition unit 200 is used to acquire configuration information when receiving selection information input by the user; the selection information indicates information for selecting remote encryption.

[0094] The sending unit 300 is used to send the configuration information to the encryption and decryption server, so that the encryption and decryption server determines whether the preset address table contains the configuration information.

[0095] The sending unit 300 is further configured to display the configuration information to the user through a preset interface if the preset address table does not contain the configuration information, so that the user can store the configuration information in the preset address table.

[0096] The receiving unit 400 is used to receive the IP address and port sent by the encryption and decryption server if the preset address table contains configuration information.

[0097] The encryption unit 500 is used to send an encryption request to the encryption / decryption server using the IP address and the port, so that the encryption / decryption server encrypts the message to obtain an encrypted message.

[0098] The encryption unit 500 is also used to send the encrypted message to the system under test so that the system under test responds and obtains a response message; when receiving the response message sent by the system under test, a decryption request is sent to the encryption and decryption server using the IP address and port, so that the encryption and decryption server decrypts the response message and obtains a decrypted message.

[0099] To summarize, the configuration information is sent to the encryption and decryption server so that the encryption and decryption server determines whether the preset address table contains the configuration information. If the preset address table contains the configuration information, the IP address and port sent by the encryption and decryption server are received, and the IP address and port number are stored locally. The IP address and port are used to send an encryption request to the encryption and decryption server so that the encryption and decryption server encrypts the message to obtain an encrypted message. Compared with the prior art, there is no need to perform script debugging through a press, thereby improving the efficiency of script debugging.

[0100] The present application also provides a computer-readable storage medium, which includes a stored program, wherein the program executes the message processing method provided by the present application.

[0101] like Figure 4 As shown, the present application also provides a message processing device, including: a processor 401, a memory 402 and a bus 403. The processor 401 is connected to the memory 402 via the bus 403, the memory 402 is used to store programs, and the processor 401 is used to run programs, wherein when the program is run, the message processing method provided by the present application is executed, including the following steps:

[0102] When the message information is not preset information and the configuration element does not meet the preset condition, a prompt information is displayed to the user through a preset interface to enable the user to make a selection; the message information is input by the user in advance; the message information at least includes a message; the preset condition is a configuration element of a pre-installed security agent software; the message information indicates whether the message is encrypted; the preset information is information that the message is not encrypted; the prompt information is information that prompts the user to remotely encrypt;

[0103] When the selection information input by the user is received, configuration information is acquired; the selection information indicates the selection of remote encryption information;

[0104] Sending the configuration information to the encryption and decryption server so that the encryption and decryption server determines whether the preset address table contains the configuration information;

[0105] If the preset address table contains the configuration information, receiving the IP address and port sent by the encryption and decryption server;

[0106] An encryption request is sent to the encryption / decryption server using the IP address and the port, so that the encryption / decryption server encrypts the message to obtain an encrypted message.

[0107] Optionally, also include:

[0108] Sending the encrypted message to the system under test so that the system under test responds and obtains a response message;

[0109] When the response message sent by the system under test is received, a decryption request is sent to the encryption and decryption server using the IP address and the port, so that the encryption and decryption server decrypts the response message to obtain a decrypted message.

[0110] Optionally, also include:

[0111] When the message information is preset information, the message is sent to the system under test.

[0112] Optionally, also include:

[0113] When the configuration element meets the preset condition, the configuration information is obtained, and the message is encrypted according to the configuration information to obtain an encrypted message.

[0114] Optionally, after enabling the encryption / decryption server to determine whether the preset address table contains configuration information, the method further includes:

[0115] If the preset address table does not contain the configuration information, the configuration information is displayed to the user through a preset interface, so that the user stores the configuration information in the preset address table.

[0116] If the functions described in the method of the embodiment of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a storage medium readable by a computing device. Based on this understanding, the part of the embodiment of the present application that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computing device (which can be a personal computer, server, mobile computing device or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks or optical disks.

[0117] 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.

[0118] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for processing a message, characterized in that: Applies to configuration components, including: When the message information is not preset information and the configuration element does not meet the preset condition, a prompt information is displayed to the user through a preset interface to enable the user to make a selection; the message information is input by the user in advance; the message information at least includes a message; the preset condition is a configuration element of a pre-installed security agent software; the message information indicates whether the message is encrypted; the preset information is information that the message is not encrypted; the prompt information is information that prompts the user to remotely encrypt; When the selection information input by the user is received, configuration information is acquired; the selection information indicates the selection of remote encryption information; Sending the configuration information to the encryption and decryption server so that the encryption and decryption server determines whether the preset address table contains the configuration information; If the preset address table contains the configuration information, receiving the IP address and port sent by the encryption and decryption server; An encryption request is sent to the encryption / decryption server using the IP address and the port, so that the encryption / decryption server encrypts the message to obtain an encrypted message.

2. The method according to claim 1, characterized in that: Also includes: Sending the encrypted message to the system under test so that the system under test responds and obtains a response message; When the response message sent by the system under test is received, a decryption request is sent to the encryption and decryption server using the IP address and the port, so that the encryption and decryption server decrypts the response message to obtain a decrypted message.

3. The method according to claim 1, characterized in that Also includes: When the message information is preset information, the message is sent to the system under test.

4. The method according to claim 1, characterized in that: Also includes: When the configuration element meets the preset condition, the configuration information is obtained, and the message is encrypted according to the configuration information to obtain an encrypted message.

5. The method according to claim 1, characterized in that After the encryption / decryption server determines whether the preset address table contains configuration information, the method further includes: If the preset address table does not contain the configuration information, the configuration information is displayed to the user through a preset interface, so that the user stores the configuration information in the preset address table.

6. A message processing device, characterized in that: include: A display unit, used for displaying prompt information to the user through a preset interface when the message information is not preset information and the configuration element does not meet the preset condition, so that the user can make a selection; the message information is input by the user in advance; the message information at least includes a message; the preset condition is a configuration element of a pre-installed security agent software; The message information indicates whether the message is encrypted; The preset information is the unencrypted information of the message; The prompt information indicates information prompting the user to remotely encrypt; an acquiring unit, configured to acquire configuration information when receiving selection information input by the user; the selection information indicates information for selecting remote encryption; A sending unit, used to send the configuration information to the encryption and decryption server, so that the encryption and decryption server determines whether the preset address table contains the configuration information; A receiving unit, configured to receive an IP address and a port sent by the encryption and decryption server if the preset address table contains the configuration information; The encryption unit is used to send an encryption request to the encryption / decryption server using the IP address and the port, so that the encryption / decryption server encrypts the message to obtain an encrypted message.

7. The device according to claim 6, characterized in that Also includes: Sending the encrypted message to the system under test so that the system under test responds and obtains a response message; When the response message sent by the system under test is received, a decryption request is sent to the encryption and decryption server using the IP address and the port, so that the encryption and decryption server decrypts the response message to obtain a decrypted message.

8. The device according to claim 6, characterized in that Also includes: When the message information is preset information, the message is sent to the system under test.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program, when executed by a processor, executes the message processing method according to any one of claims 1 to 5.

10. A message processing device, characterized in that: include: processor, memory, and bus; The processor is connected to the memory via the bus; The memory is used to store programs, and the processor is used to run programs, wherein the program, when run by the processor, executes the message processing method described in any one of claims 1 to 5.