Message data processing method, message data processing system and server

By encrypting and comparing the power plant equipment message data, the problem of server and database pressure caused by unfiltered power plant equipment message data entering the database was solved, and efficient data storage and management were achieved.

CN116132038BActive Publication Date: 2026-05-01SUNGROW POWER SUPPLY CO LTD
View PDF -1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SUNGROW POWER SUPPLY CO LTD
Filing Date
2023-02-09
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In existing technologies, message data generated by power plant equipment is directly entered into the database without effective filtering, resulting in excessive pressure on the server and database, and the existence of duplicate data problems.

Method used

The message data is encrypted using a message digest algorithm to generate a first ciphertext and a second ciphertext. By combining the ciphertexts and comparing them with the ciphertexts already stored in the database, only new messages are stored, thus avoiding duplicate entries into the database.

Benefits of technology

It reduces the storage pressure on servers and databases, improves data processing efficiency, avoids message duplication, and saves storage space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132038B_ABST
    Figure CN116132038B_ABST
Patent Text Reader

Abstract

The application discloses a message data processing method, a message data processing system and a server. The method comprises the following steps: after filtering a complex and lengthy to-be-processed message, the to-be-processed message is stored in a database, so that the storage space is greatly reduced, and the pressure on the server and the database is reduced. In addition, in the encryption process, the device information corresponding to the source device of the to-be-processed message is added, and the device information is encrypted, so that message duplication is avoided. Finally, when the combined ciphertext is different from the stored ciphertext in the database, the combined ciphertext is stored in the database. Compared with the prior art which needs to be disassembled and compared multiple times or in a loop, the ciphertext after conversion can be directly compared, so that the comparison efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a message data processing method, a message data processing system, and a server. Background Technology

[0002] Power plant equipment generates a large amount of message data during operation. This message data is a crucial parameter for monitoring the power plant and equipment operating status, querying equipment information, and measuring power generation. In related technologies, to facilitate the management of this large volume of message data, the server performs simple parsing and encapsulation before directly calling interfaces to store the data in the database, thus increasing the load on the server and database. Summary of the Invention

[0003] This application provides a message data processing method, a message data processing system, and a server, aiming to reduce the pressure of message data on the server and database.

[0004] This application provides a message data processing method, which includes:

[0005] The message to be processed is encrypted using a message digest algorithm to generate the first ciphertext.

[0006] Determine the device information corresponding to the source device of the message to be processed, and generate a second ciphertext corresponding to the device information based on the message digest algorithm;

[0007] Generate a combined ciphertext based on the first ciphertext and the second ciphertext;

[0008] When the combined ciphertext differs from the ciphertext already stored in the database, the combined ciphertext is stored in the database.

[0009] Optionally, the step of generating combined ciphertext based on the first ciphertext and the second ciphertext includes:

[0010] Perform a splitting operation on the first ciphertext to obtain at least two sets of sub-ciphertexts;

[0011] Each of the sub-ciphertexts is encrypted based on the message digest algorithm to generate at least two sets of encrypted strings;

[0012] The combined ciphertext is generated based on each of the encrypted strings and the second ciphertext.

[0013] Optionally, the step of splitting the first ciphertext to obtain at least two sets of sub-ciphertexts includes:

[0014] Determine the number of times the first ciphertext is split, and / or at least one split position of the first ciphertext;

[0015] The first ciphertext is split based on the number of splits and / or the split position to obtain at least two sets of sub-ciphertexts.

[0016] Optionally, the encrypted string includes a first encrypted string and a second encrypted string; the step of generating the combined ciphertext based on each of the encrypted strings and the second ciphertext includes:

[0017] The first encrypted string, the second ciphertext, and the second encrypted string are concatenated sequentially to obtain the combined ciphertext.

[0018] Optionally, before the step of encrypting the message to be processed based on the message digest algorithm to generate the first ciphertext, the method further includes:

[0019] Retrieve pending messages pushed by the message middleware;

[0020] The message to be processed is subjected to invalid data processing to obtain the message to be processed after invalid data processing.

[0021] The encryption of the message to be processed based on the message digest algorithm to generate the first ciphertext includes:

[0022] The message to be processed is encrypted using the message digest algorithm after the invalid data has been processed, to generate the first ciphertext.

[0023] Optionally, the step of performing invalid data processing on the message to be processed to obtain the message to be processed after invalid data processing includes:

[0024] Obtain the current base digits of the message to be processed;

[0025] When the current base does not match the preset base, the current base of the message to be processed is converted to the preset base to obtain the first message to be processed.

[0026] Obtain the current data format of the first message to be processed;

[0027] When the current data format does not match the preset data format, the current data format of the first message to be processed is converted into the preset data format to obtain the second message to be processed.

[0028] Delete the invalid data in the second message to be processed to obtain the message to be processed after the invalid data has been processed.

[0029] Optionally, the step of obtaining the pending message pushed by the message middleware includes:

[0030] Receive message data pushed by the message middleware;

[0031] Identify the service type of the message data;

[0032] When the service type of the message data is an attribute message, the message data is determined to be a message to be processed.

[0033] Optionally, the service type of the message data includes one of the following: second-level data, status message, IV scan message, and attribute message.

[0034] Optionally, the step of storing the combined ciphertext in the database when the combined ciphertext differs from the ciphertext already stored in the database includes:

[0035] When the combined ciphertext differs from the stored ciphertext in the database, the combined ciphertext is inserted into the stored ciphertext.

[0036] Alternatively, if the combined ciphertext differs from the stored ciphertext in the database, the combined ciphertext can be used to overwrite the stored ciphertext.

[0037] Optionally, the method further includes:

[0038] When the combined ciphertext matches a stored ciphertext in the database, the combined ciphertext is filtered.

[0039] Furthermore, to achieve the above objectives, the present invention also provides a message data processing system, the message data processing system comprising:

[0040] The first encryption module is used to encrypt the message to be processed based on the message digest algorithm to generate the first ciphertext;

[0041] The second encryption module is used to determine the device information corresponding to the source device of the message to be processed, and generate the second ciphertext corresponding to the device information based on the message digest algorithm.

[0042] The combination module is used to generate combined ciphertext based on the first ciphertext and the second ciphertext;

[0043] The database insertion module is used to store the combined ciphertext in the database when the combined ciphertext is different from the ciphertext already stored in the database.

[0044] In addition, to achieve the above objectives, the present invention also provides a server, the server comprising: a memory, a processor, and a message data processing program stored in the memory and executable on the processor, wherein the message data processing program, when executed by the processor, implements the steps of the above-described message data processing method.

[0045] This application provides a message data processing method, system, and server solution. By filtering complex and lengthy messages before storing them in the database, it significantly reduces storage space and lowers the pressure on the server and database. Furthermore, during the encryption process, device information corresponding to the source device of the message is added and encrypted to prevent message duplication. Finally, when the combined ciphertext differs from the ciphertext already stored in the database, the combined ciphertext is stored in the database. Compared to existing technologies that require multiple or iterative comparisons, this application can directly compare the converted ciphertext, thereby improving comparison efficiency. Attached Figure Description

[0046] Figure 1 This is a flowchart illustrating the first embodiment of the message data processing method of the present invention;

[0047] Figure 2 This is a flowchart illustrating the second embodiment of the message data processing method of the present invention;

[0048] Figure 3 This is a functional block diagram of the message data processing system of the present invention;

[0049] Figure 4 This is a schematic diagram of the server structure involved in the embodiment of the present invention.

[0050] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. The accompanying drawings are only one embodiment and not the entirety of the invention. Detailed Implementation

[0051] Power plant equipment generates a large amount of message data during operation. This message data is crucial for monitoring the power plant and equipment's operating status, querying equipment information, and measuring power generation. However, this message data may contain some useless, repetitive data. When storing these messages in the database, this useless, repetitive data is not filtered out. Instead, it undergoes simple parsing and encapsulation before being directly processed and stored in the database via API calls. Unfiltered message data increases the server's processing load, and directly storing unfiltered message data in the database increases the database's storage load.

[0052] Therefore, this application aims to reduce the pressure of message data on the server and database. This application proposes a message data processing method. This method introduces a message digest algorithm. Before the message data is stored in the database, the message to be processed is encrypted using the message digest algorithm to generate a first ciphertext; the device information corresponding to the source device of the message to be processed is determined, and a second ciphertext corresponding to the device information is generated based on the message digest algorithm; a combined ciphertext is generated based on the first ciphertext and the second ciphertext; by mapping the message to be processed to a ciphertext string using the message digest algorithm, the purpose of filtering the message data is achieved, reducing memory usage and saving memory space.

[0053] In addition, device information corresponding to the source device of the message to be processed is added during the encryption process, and this device information is then encrypted. Since this device information is used to identify the uniqueness of data packets from the source device, message duplication is avoided, thus alleviating the pressure on subsequent servers and databases.

[0054] Finally, if the combined ciphertext differs from the ciphertext already stored in the database, the combined ciphertext is stored in the database. Compared to existing technologies that require multiple or iterative comparisons after decomposition, this application can directly compare the converted ciphertext, thereby improving comparison efficiency.

[0055] To better understand the above technical solutions, exemplary embodiments of this disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of this disclosure to those skilled in the art.

[0056] like Figure 1 As shown, in the first embodiment of this application, the message data processing method is applied to a stream server. The stream server filters complex and lengthy messages before storing them in a database, significantly reducing storage space and lowering the pressure on the server and database. Furthermore, during the encryption process, device information corresponding to the source device of the message to be processed is added and encrypted to prevent message duplication. Specifically, the message data processing method of this application includes the following steps:

[0057] Step S110: Encrypt the message to be processed based on the message digest algorithm to generate the first ciphertext.

[0058] In this embodiment, the message digest algorithm is simply referred to as the MD5 algorithm. The MD5 algorithm belongs to the category of hash algorithms and transforms information of arbitrary length to produce a 128-bit message digest. This MD5 algorithm is used to map the message to be processed into a string, that is, to encrypt the message to be processed to obtain the string.

[0059] Optionally, each string corresponds to a first ciphertext, i.e., an MD5 hash value. This first ciphertext can be associated with the message to be processed in a mapping table. When the first ciphertext is known, the message to be processed can be obtained by looking up the mapping table. Since only the first ciphertext of the message to be processed needs to be stored, and the data length of the first ciphertext is shorter than that of the message to be processed, and the storage space occupied by the first ciphertext is also much smaller than that of the message to be processed, storage space is reduced, thus lowering the storage pressure on the database.

[0060] Step S120: Determine the device information corresponding to the source device of the message to be processed, and generate a second ciphertext corresponding to the device information based on the message digest algorithm.

[0061] In this embodiment, during the encryption of the message to be processed using the MD5 algorithm, there is a small probability of hash collision, meaning that two different message data will generate the same MD5 hash value after being processed by the MD5 algorithm, resulting in duplicate data and increasing the storage pressure on the database. Therefore, this application obtains the source device that sent the message to be processed and obtains the corresponding device information. The device information is then encrypted using the MD5 algorithm to obtain the second ciphertext.

[0062] Optionally, the device information can be a unique identifier, device type, device size, etc., of the source device. This device information is determined at the factory and can be directly obtained. Similarly, this device information is encrypted using the MD5 algorithm to generate a string, which corresponds to a second ciphertext. The second ciphertext and the device information can be associated and stored in a mapping table. When the second ciphertext is known, the device information can be obtained by looking up the mapping table. Since only the second ciphertext of the device information needs to be stored, and the data length of the second ciphertext is less than the data length of the device information message, the storage pressure on the database is reduced.

[0063] Step S130: Generate combined ciphertext based on the first ciphertext and the second ciphertext.

[0064] In this embodiment, after obtaining the first ciphertext and the second ciphertext, they can be concatenated to obtain a combined ciphertext. Since the device information in the second ciphertext is unique, each combined ciphertext is unique, thus solving the problem of duplicate messages and reducing the pressure on the server and database.

[0065] In one embodiment, current attacks on the MD5 algorithm mainly employ brute-force and dictionary attacks. However, these methods are susceptible to interception and cracking, impacting message security. Therefore, this application aims to further enhance message security. In generating a combined message based on the first ciphertext and the second ciphertext, this application primarily utilizes the following steps:

[0066] Step S131: Perform a splitting operation on the first ciphertext to obtain at least two sets of sub-ciphertexts.

[0067] In one embodiment, to improve the security of the first ciphertext, this application first splits the first ciphertext into multiple groups of sub-ciphertexts. The splitting method of the first ciphertext can be set according to actual needs. The splitting method of the first ciphertext can be determined according to the business type corresponding to the first ciphertext, that is, a corresponding splitting method is set for the first ciphertext corresponding to each business type, so that the first ciphertext split based on the splitting method is more accurate and meets expectations. The splitting method includes the number of splits and / or the splitting position. Optionally, the number of splits corresponding to the first ciphertext and / or at least one splitting position of the first ciphertext can be determined, and the first ciphertext is split based on the number of splits and / or the splitting position to obtain at least two groups of sub-ciphertexts.

[0068] Optionally, the number of times the first ciphertext is split can be set, and the first ciphertext is split based on the number of splits to obtain multiple sets of sub-ciphertexts. For example, when the number of splits is one, assuming the first ciphertext is 32 bits, a truncation function can be used to split the first ciphertext into ciphertext A (first 16 bits) and ciphertext B (last 16 bits); or the first ciphertext can be split into ciphertext A (first 10 bits) and ciphertext B (last 22 bits). It is understandable that the more times it is split, the more sub-ciphertexts are obtained, and encrypting each sub-ciphertext can improve the security of the message to be processed.

[0069] Optionally, at least one splitting point can be set for the first ciphertext, and the first ciphertext can be split based on this splitting point to obtain at least two sets of sub-ciphertexts. The splitting point can be determined according to the actual situation. It is understood that the more splitting points there are, the more sub-ciphertexts are obtained, and encrypting each sub-ciphertext further improves the security of the message to be processed.

[0070] Optionally, the number of times and the split positions of the first ciphertext can also be set. Based on the number of splits and the split positions, the first ciphertext is split into at least two sets of sub-ciphertexts.

[0071] Step S132: Encrypt each of the sub-ciphertexts based on the message digest algorithm to generate at least two sets of encrypted strings.

[0072] In this embodiment, after splitting the text into at least two sub-ciphertexts, each sub-ciphertext can be further encrypted using a message digest algorithm to obtain at least two encrypted strings. Assume there are two sub-ciphertexts, a first sub-ciphertext and a second sub-ciphertext. The first sub-ciphertext can be encrypted using a message digest algorithm to obtain a first encrypted string, and the second sub-ciphertext can be encrypted using the same algorithm to obtain a second encrypted string.

[0073] Step S133: Generate the combined ciphertext based on each of the encrypted strings and the second ciphertext.

[0074] In this embodiment, after obtaining the first encrypted string and the second encrypted string, a combined ciphertext can be generated based on the first encrypted string, the second encrypted string, and the second ciphertext. Optionally, the first encrypted string, the second ciphertext, and the second encrypted string can be concatenated sequentially to obtain the combined ciphertext. For example, if the first encrypted string is C, the second encrypted string is D, and the second ciphertext is E, then the encrypted combined ciphertext is CED.

[0075] Step S140: When the combined ciphertext is different from the ciphertext already stored in the database, the combined ciphertext is stored in the database.

[0076] In this embodiment, after obtaining the combined ciphertext, it can be compared with the ciphertext already stored in the database. If the combined ciphertext differs from the stored ciphertext, it indicates that the corresponding message to be processed is a new message, and the combined ciphertext can be stored in the database. If the combined ciphertext is the same as the stored ciphertext, it means that the corresponding message to be processed already exists in the database, so the combined ciphertext is filtered out and its entry into the database is prohibited to avoid duplicate data storage. Since the combined ciphertext is stored in the database only when it differs from the stored ciphertext, compared to the prior art which requires multiple or cyclical comparisons, this application can directly compare the converted combined ciphertext, thereby improving comparison efficiency. Furthermore, when the combined ciphertext is the same as the stored ciphertext, the duplicate combined ciphertext is filtered out and no further processing is required, reducing the processing pressure on the server and the storage pressure on the database.

[0077] In one embodiment, the database stores historical encrypted ciphertext combinations corresponding to the source device. When the combined ciphertext differs from the ciphertext already stored in the database, the combined ciphertext can be inserted into the existing ciphertext to achieve the insertion of a new combined ciphertext into the database. Optionally, when the combined ciphertext differs from the existing ciphertext in the database, the combined ciphertext can be used to overwrite the existing ciphertext in the database to achieve the insertion of a new combined ciphertext into the database.

[0078] In one embodiment, if the combined ciphertext is the same as the ciphertext already stored in the database, it means that the combined ciphertext has already been stored in the database. In order to reduce the processing pressure on the server and the storage pressure on the database, the combined ciphertext can be filtered and prohibited from being stored in the database to avoid duplicate data storage.

[0079] Optionally, the aforementioned database is a microservice database. The microservice database used in this application can be a Redis database. Redis is a key-value storage system. It supports a wider range of value types, including strings, lists, sets, sorted sets, and hash types.

[0080] This embodiment, based on the above technical solution, encrypts the message to be processed using a message digest algorithm before storing the message data in the database, generating a first ciphertext; determines the device information corresponding to the source device of the message to be processed, and generates a second ciphertext corresponding to the device information based on the message digest algorithm; generates a combined ciphertext based on the first and second ciphertexts; and achieves the purpose of filtering message data by mapping the message to be processed to a ciphertext string based on the message digest algorithm, thereby reducing memory usage and saving memory space. Furthermore, the device information corresponding to the source device of the message to be processed is added during the encryption process to encrypt the device information. Since this device information is used to characterize the uniqueness of the data message from the source device, message duplication is avoided, alleviating subsequent server and database pressure. Finally, when the combined ciphertext differs from the ciphertext already stored in the database, the combined ciphertext is stored in the database. Compared to existing technologies that require multiple or cyclical comparisons, this application can directly compare the converted ciphertext, thereby improving comparison efficiency.

[0081] Reference Figure 2 Based on the first embodiment, in the second embodiment of this application, the message data processing method of this application includes the following steps:

[0082] Step S210: Obtain the pending message pushed by the message middleware.

[0083] In this embodiment, the application environment of this application is a message data processing system, which includes a distributed receiving cluster, message middleware, Flink stream server, and database.

[0084] The distributed receiving cluster is used to receive message data from different power plant devices. After receiving message data from different power plant devices, the distributed receiving cluster aggregates it into a message queue and sends message data of different business types to different message middleware. The number of message middleware can be determined according to the number of business types. Assume that message data can be divided into: second-level data, status messages, IV scan messages, attribute messages, etc. Corresponding message middleware can be set for second-level data, status messages, IV scan messages, and attribute messages respectively. The Flink streaming server subscribes to the business types of message data that need to be filtered. Assume that the business type of message data that needs to be filtered subscribed to by the Flink streaming server is attribute messages. The message middleware associated with the business type of attribute messages will continuously send attribute messages to the Flink streaming server, or the Flink streaming server will read attribute messages from the message middleware in real time for invalid data processing and filtering on the Flink streaming server. After filtering on the Flink streaming server, the data storage process is called to store the filtered message data in the database, thereby reducing the pressure on the server and database.

[0085] In one embodiment, the message data of this application can be categorized according to service type into one of the following: second-level data, status messages, IV scan messages, and attribute messages. Status messages include equipment operating status data. Attribute messages are messages that include a set of attributes, which may include multiple attribute types. This message data is used to monitor the operating status of power plants and equipment, and to query important parameters such as equipment information and power generation. However, not every type of message data requires service processing. For example, attribute messages are mostly sent in concentrated bursts after the source equipment is powered on; much of this data is useless and repetitive, and the data messages exhibit peak periods.

[0086] Therefore, after receiving message data from the message middleware, the streaming server can identify the service type of the message data. If the service type of the message data is an attribute message, it is determined that the message data is a message to be processed. The message to be processed can undergo invalid data processing, followed by filtering, and finally, the data is stored in the database. This avoids processing message data of all service types, reducing the data processing pressure on the server.

[0087] In this embodiment, the Flink streaming server retrieves the message to be processed from the message middleware. Since this message contains invalid data, it needs to first process the invalid data before encrypting the processed message, thereby reducing the server's data processing load.

[0088] Step S220: Perform invalid data processing on the message to be processed to obtain the message to be processed after invalid data processing.

[0089] In one embodiment, the step of performing invalid data processing on the message to be processed to obtain the invalid output message includes:

[0090] Step S1111: Obtain the current base number of the message to be processed;

[0091] Step S1112: When the current base digit does not match the preset base digit, the current base digit of the message to be processed is converted into the preset base digit to obtain the first message to be processed.

[0092] Step S1113: Obtain the current data format of the first message to be processed;

[0093] Step S1114: When the current data format does not match the preset data format, the current data format of the first message to be processed is converted into the preset data format to obtain the second message to be processed.

[0094] Step S1115: Delete invalid data in the second message to be processed to obtain the message to be processed after invalid data processing.

[0095] In this embodiment, during the invalidation process of the message to be processed, the application can first convert the number system and data format used by the message to be processed, so as to obtain data that can be identified and processed, thereby improving data processing efficiency.

[0096] First, the current base of the message to be processed is obtained. If the current base does not match the preset base, the current base of the message to be processed is converted to the preset base to obtain the first message to be processed. The base of this first message to be processed is the same as the preset base. When the base of the first message to be processed is the same as the preset base, the first message to be processed can be directly identified and processed. The preset base can be set according to the actual situation. For example, the preset base can be set to decimal, which converts the current base of the message to be processed (hexadecimal) to decimal to obtain the first message to be processed (decimal).

[0097] Next, after converting the data format of the message to be processed, the current data format of the first message to be processed after the conversion can be further checked. If the current data format matches the preset data format, invalid data in the first message to be processed can be directly deleted. If the current data format of the first message to be processed after the conversion does not match the preset data format, it is necessary to further convert the current data format of the first message to be processed into the preset data format to obtain the second message to be processed. The data format of the second message to be processed is the same as the preset data format. When the data format of the second message to be processed is the same as the preset data format, the second message to be processed can be directly identified and processed. The preset data format can be set according to the actual situation. For example, the preset data format can be set to JSON format, which can convert the current data format of the first message to be processed into JSON format to obtain the second message to be processed in JSON format.

[0098] Finally, after obtaining the second message to be processed, a conventional identification algorithm can be used to identify invalid data in the second message to be processed, and the invalid data in the second message to be processed can be deleted, thereby obtaining the message to be processed after invalid data processing.

[0099] After receiving the pending message with invalid data processed, it can be further filtered in the stream server. The specific process of filtering the pending message can be referred to in the first embodiment, and will not be repeated here.

[0100] Step S111: Encrypt the message to be processed after invalid data processing based on the message digest algorithm to generate the first ciphertext.

[0101] In this embodiment, after obtaining the message to be processed after invalid data processing, the message to be processed after invalid data processing can be further encrypted based on the message digest algorithm to generate the first ciphertext, that is, the message to be processed is filtered to reduce the memory occupation of redundant and repetitive messages to be processed and save memory space.

[0102] Step S120: Determine the device information corresponding to the source device of the message to be processed, and generate a second ciphertext corresponding to the device information based on the message digest algorithm;

[0103] Step S130: Generate combined ciphertext based on the first ciphertext and the second ciphertext;

[0104] Step S140: When the combined ciphertext is different from the ciphertext already stored in the database, the combined ciphertext is stored in the database.

[0105] According to the above technical solution, this embodiment first performs invalid data processing on the messages to be processed before filtering them, thereby alleviating the processing pressure on the server and the storage pressure on the database for subsequent message filtering.

[0106] This invention provides an embodiment of a message data processing method. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here.

[0107] like Figure 3 As shown, this application provides a message data processing system, which includes:

[0108] The first encryption module is used to encrypt the message to be processed based on the message digest algorithm to generate the first ciphertext.

[0109] The second encryption module is used to determine the device information corresponding to the source device of the message to be processed, and generate the second ciphertext corresponding to the device information based on the message digest algorithm.

[0110] The combination module is used to generate combined ciphertext based on the first ciphertext and the second ciphertext.

[0111] Optionally, the combination module is further configured to perform a splitting operation on the first ciphertext to obtain at least two sets of sub-ciphertexts; encrypt each of the sub-ciphertexts based on the message digest algorithm to generate at least two sets of encrypted strings; and generate the combined ciphertext based on each of the encrypted strings and the second ciphertext.

[0112] Optionally, the combination module is further configured to determine the number of splits corresponding to the first ciphertext, and / or at least one split position of the first ciphertext; and to split the first ciphertext based on the number of splits and / or the split position to obtain the at least two sets of sub-ciphertexts.

[0113] Optionally, the combination module is further configured to concatenate the first encrypted string, the second ciphertext, and the second encrypted string sequentially to obtain the combined ciphertext.

[0114] The database insertion module is used to store the combined ciphertext in the database when the combined ciphertext is different from the ciphertext already stored in the database.

[0115] Optionally, the database insertion module is further configured to insert the combined ciphertext into the stored ciphertext when the combined ciphertext is different from the stored ciphertext in the database; or, when the combined ciphertext is different from the stored ciphertext in the database, to overwrite the stored ciphertext with the combined ciphertext.

[0116] Optionally, the database module is further configured to filter the combined ciphertext when it matches the combined ciphertext with the ciphertext already stored in the database.

[0117] Optionally, the message data processing system further includes an invalid data processing module, which is connected to the first encryption module. The invalid data processing module is used to obtain the message to be processed pushed by the message middleware; to perform invalid data processing on the message to be processed to obtain the message to be processed after invalid data processing; and to encrypt the message to be processed after invalid data processing based on the message digest algorithm to generate the first ciphertext.

[0118] Optionally, the invalid data processing module is further configured to obtain the current base of the message to be processed; when the current base does not match the preset base, convert the current base of the message to be processed into the preset base to obtain a first message to be processed; obtain the current data format of the first message to be processed; when the current data format does not match the preset data format, convert the current data format of the first message to be processed into the preset data format to obtain a second message to be processed; delete invalid data in the second message to be processed to obtain the message to be processed after invalid data processing.

[0119] Optionally, the invalid data processing module is further configured to receive message data pushed by the message middleware; identify the service type of the message data; and determine that the message data is a message to be processed when the service type of the message data is an attribute message. Optionally, the service type of the message data includes one of the following: second-level data, status message, IV scan message, and attribute message.

[0120] The specific implementation of the message data processing system of the present invention is basically the same as the embodiments of the message data processing method described above, and will not be repeated here.

[0121] like Figure 4 As shown, Figure 4 This is a schematic diagram of the hardware operating environment involved in the embodiments of the present invention.

[0122] It should be noted that, Figure 4 This can be a schematic diagram of the server's hardware operating environment.

[0123] like Figure 4As shown, the server may include: a processor 1001, such as a CPU; a memory 1005; a user interface 1003; a network interface 1004; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0124] Those skilled in the art will understand that Figure 4 The server structure shown does not constitute a limitation on the server and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0125] like Figure 4 As shown, the memory 1005, as a storage medium, may include an operating system, a network communication module, a user interface module, and a message data processing program. The operating system is a program that manages and controls the server hardware and software resources, the message data processing program, and the operation of other software or programs.

[0126] exist Figure 4 In the server shown, the user interface 1003 is mainly used to connect to the terminal and communicate with the terminal; the network interface 1004 is mainly used to communicate with the backend server; and the processor 1001 can be used to call the message data processing program stored in the memory 1005.

[0127] In this embodiment, the server includes: a memory 1005, a processor 1001, and a message data processing program stored in the memory and executable on the processor, wherein:

[0128] When processor 1001 calls the message data processing program stored in memory 1005, it performs the following actions:

[0129] The message to be processed is encrypted using a message digest algorithm to generate the first ciphertext.

[0130] Determine the device information corresponding to the source device of the message to be processed, and generate a second ciphertext corresponding to the device information based on the message digest algorithm;

[0131] Generate a combined ciphertext based on the first ciphertext and the second ciphertext;

[0132] When the combined ciphertext differs from the ciphertext already stored in the database, the combined ciphertext is stored in the database.

[0133] Based on the same inventive concept, this application also provides a computer-readable storage medium storing a message data processing program. When the message data processing program is executed by a processor, it implements the various steps of the message data processing method described above and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0134] Since the storage medium provided in this application embodiment is the storage medium used to implement the method of this application embodiment, those skilled in the art can understand the specific structure and variations of the storage medium based on the method described in this application embodiment, and therefore will not be repeated here. All storage media used in the method of this application embodiment are within the scope of protection of this application.

[0135] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied 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.

[0136] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0137] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0138] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of action steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0139] It should be noted that any reference signs placed between parentheses in the claims should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.

[0140] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0141] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A message data processing method, characterized in that, The message data processing method includes: The message to be processed is encrypted using a message digest algorithm to generate a first ciphertext, wherein the message to be processed is message data generated during the use of power plant equipment; Determine the device information corresponding to the source device of the message to be processed, and generate a second ciphertext corresponding to the device information based on the message digest algorithm; Perform a splitting operation on the first ciphertext to obtain at least two sets of sub-ciphertexts; Each of the sub-ciphertexts is encrypted based on the message digest algorithm to generate at least two sets of encrypted strings, wherein the encrypted strings include a first encrypted string and a second encrypted string; The first encrypted string, the second ciphertext, and the second encrypted string are concatenated sequentially to obtain the combined ciphertext; When the combined ciphertext differs from the ciphertext already stored in the database, the combined ciphertext is stored in the database.

2. The method as described in claim 1, characterized in that, The step of splitting the first ciphertext to obtain at least two sets of sub-ciphertexts includes: Determine the number of times the first ciphertext is split, and / or at least one split position of the first ciphertext; The first ciphertext is split based on the number of splits and / or the split position to obtain at least two sets of sub-ciphertexts.

3. The method as described in claim 1, characterized in that, Before the step of encrypting the message to be processed based on the message digest algorithm to generate the first ciphertext, the method further includes: Retrieve pending messages pushed by the message middleware; The message to be processed is subjected to invalid data processing to obtain the message to be processed after invalid data processing. The encryption of the message to be processed based on the message digest algorithm to generate the first ciphertext includes: The message to be processed is encrypted using the message digest algorithm after the invalid data has been processed, to generate the first ciphertext.

4. The method as described in claim 3, characterized in that, The step of performing invalid data processing on the message to be processed to obtain the message to be processed after invalid data processing includes: Obtain the current base digits of the message to be processed; When the current base does not match the preset base, the current base of the message to be processed is converted to the preset base to obtain the first message to be processed. Obtain the current data format of the first message to be processed; When the current data format does not match the preset data format, the current data format of the first message to be processed is converted into the preset data format to obtain the second message to be processed. Delete the invalid data in the second message to be processed to obtain the message to be processed after the invalid data has been processed.

5. The method as described in claim 3, characterized in that, The steps for obtaining pending messages pushed by the message middleware include: Receive message data pushed by the message middleware; Identify the service type of the message data; When the service type of the message data is an attribute message, the message data is determined to be a message to be processed.

6. The method as described in claim 5, characterized in that, The service type of the message data is second-level data, status message, IV scan message, or attribute message.

7. The method according to any one of claims 1-6, characterized in that, The step of storing the combined ciphertext in the database when it differs from the ciphertext already stored in the database includes: When the combined ciphertext differs from the stored ciphertext in the database, the combined ciphertext is inserted into the stored ciphertext. Alternatively, if the combined ciphertext differs from the stored ciphertext in the database, the combined ciphertext can be used to overwrite the stored ciphertext.

8. The method according to any one of claims 1-6, characterized in that, The method further includes: When the combined ciphertext matches a stored ciphertext in the database, the combined ciphertext is filtered.

9. A message data processing system, characterized in that, The message data processing system includes: The first encryption module is used to encrypt the message to be processed based on the message digest algorithm to generate the first ciphertext, wherein the message to be processed is message data generated during the use of power plant equipment; The second encryption module is used to determine the device information corresponding to the source device of the message to be processed, and generate the second ciphertext corresponding to the device information based on the message digest algorithm. The combination module is used to perform a splitting operation on the first ciphertext to obtain at least two sets of sub-ciphertexts; encrypt each of the sub-ciphertexts according to the message digest algorithm to generate at least two sets of encrypted strings, wherein the encrypted strings include a first encrypted string and a second encrypted string; and concatenate the first encrypted string, the second ciphertext, and the second encrypted string in sequence to obtain the combined ciphertext. The database insertion module is used to store the combined ciphertext in the database when the combined ciphertext is different from the ciphertext already stored in the database.

10. A server, characterized in that, The server includes: a memory, a processor, and a message data processing program stored in the memory and executable on the processor, wherein when the message data processing program is executed by the processor, it implements the steps of the message data processing method as described in any one of claims 1-8.