Text data display method and device, equipment and storage medium

By encrypting and verifying the text data of the digital signage, the problem of poor text display security in the existing technology is solved, the visual display security of the text data is realized, and the negative impact of improper display is avoided.

CN118568751APending Publication Date: 2024-08-30TCL OVERSEAS ELECTRONIC (HUIZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410739727.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The transmission of existing digital signage text display content has poor display security, which can easily lead to improper display during attacks, resulting in negative impacts on businesses or brands.

Method used

By obtaining the encrypted text data, parsing and performing encryption processing, the parsed text information and encryption parameter information are obtained, and the data consistency verification of the encryption verification parameters is performed to ensure the security of the visual display of the parsed text information.

Benefits of technology

The display security of text data is improved, the negative impact caused by improper display is avoided, and the trustworthiness and consistency of the displayed content are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568751A
    Figure CN118568751A
Patent Text Reader

Abstract

The invention discloses a text data display method and device, equipment and a storage medium, and the method comprises the steps: obtaining encrypted text data, analyzing the encrypted text data, and obtaining analyzed text information and encryption parameter information; encrypting the analyzed text information to obtain encrypted verification parameter information; and performing data consistency verification processing on the encryption verification parameter information and the encryption parameter information to obtain verification result information used for indicating that the analyzed text information can be visually displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of display security technology, and in particular to a text data display method, device, equipment and storage medium. Background Art

[0002] Digital signage is widely used in various scenarios of daily life due to its real-time, updatable and operable nature, such as urban transportation, commercial advertisements, public places, educational institutions, etc. Due to the real-time nature of digital signage, it will cause improper display when attacked during use, thus causing negative impact on merchants or brands.

[0003] In existing digital signage usage scenarios, the transmission of digital signage text display content is usually transparent, and the display security is poor.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a text data display method, device, equipment and storage medium, aiming to solve the technical problem of poor display security of text display content in the prior art.

[0006] To achieve the above object, the present invention provides a text data display method, the method comprising the following steps:

[0007] Acquire encrypted text data, parse the encrypted text data, and obtain parsed text information and encryption parameter information;

[0008] Encrypting the parsed text information to obtain encrypted verification parameter information;

[0009] The encrypted verification parameter information and the encrypted parameter information are subjected to data consistency verification processing to obtain verification result information; the verification result information is used to indicate the visual display of the parsed text information.

[0010] Optionally, the step of encrypting the parsed text information to obtain encrypted verification parameter information includes:

[0011] Get the encryption salt value;

[0012] Determining the text length and text hash value of the parsed text information;

[0013] The parsed text information parameters are encrypted based on the text length, the text hash value and the encryption salt value to obtain encrypted verification parameter information.

[0014] Optionally, the step of acquiring encrypted text data, parsing the encrypted text data, and obtaining parsed text information and encryption parameter information includes:

[0015] Get encrypted text data;

[0016] The encrypted text data is parsed to obtain parsed text information, zero-width space positions, and encryption parameter information at the zero-width space positions.

[0017] Optionally, the step of determining the text length and text hash value of the parsed text information includes:

[0018] Using the zero-width space position as the dividing point of the parsed text information;

[0019] Dividing the parsed text information into a plurality of text segments based on the dividing points, and obtaining text segment information corresponding to the text segments;

[0020] Determine the text segment information length and the text segment information hash value of each of the text segment information;

[0021] Accordingly, the step of encrypting the parsed text information parameters based on the text length, the text hash value and the encryption salt value to obtain encrypted verification parameter information includes:

[0022] Determining an encryption length parameter based on the text segment information length of the text segment information;

[0023] Concatenate the encryption salt value with the hash value of each text segment to obtain initial encryption information;

[0024] The encryption length parameter is used as an additional input for encryption, and the initial encryption information is encrypted twice to obtain encryption verification parameter information.

[0025] Optionally, the step of performing data consistency verification processing on the encryption verification parameter information and the encryption parameter information to obtain verification result information includes:

[0026] Determine the correspondence between each zero-width space and each text segment information based on the division point;

[0027] Comparing the encryption parameter information at the zero-width space position with the encryption verification parameter information corresponding to the text segment information according to the corresponding relationship;

[0028] When the encryption parameter information and the encryption verification parameter information are consistent, determining that the verification result information is passed;

[0029] When the encryption parameter information and the encryption verification parameter information are inconsistent, the verification result information is determined to be failed.

[0030] Optionally, the step of parsing the encrypted text data to obtain parsed text information, a zero-width space position, and encryption parameter information at the zero-width space position includes:

[0031] Perform a zero-width space search in the encrypted text data to determine the position of the zero-width space in the encrypted text data;

[0032] Obtaining zero-width space content at the zero-width space position, wherein the zero-width space content includes encryption parameter information;

[0033] The zero-width space content is separated in the encrypted text data to obtain the separated encrypted text data, and the separated encrypted text data includes parsed text information.

[0034] Optionally, the step of determining the text segment information length and the text segment information hash value of each of the text segment information includes:

[0035] Traversing each character in the text segment information to determine the length of the text information corresponding to the text segment information;

[0036] Initialize a hash function and determine the text length of a data block of the hash function;

[0037] Obtaining binary text segment information corresponding to the text segment information;

[0038] Filling the binary text segment information with data to obtain target binary text segment information; the length of the target binary text segment information is an integer multiple of the text length of the data block;

[0039] The target binary text segment information is converted into a hash value by using the hash function to obtain a hash value of the text segment information.

[0040] In addition, to achieve the above object, the present invention also provides a text data display device, the text data display device comprising:

[0041] A text parsing module, used to obtain encrypted text data, parse the encrypted text data, and obtain parsed text information and encryption parameter information;

[0042] An encryption processing module, used for encrypting the parsed text information to obtain encrypted verification parameter information;

[0043] The parameter verification module is used to perform data consistency verification processing on the encrypted verification parameter information and the encrypted parameter information to obtain verification result information; the verification result information is used to indicate the visual display of the parsed text information.

[0044] In addition, to achieve the above-mentioned purpose, the present invention also proposes a text data display device, which includes: a memory, a processor, and a text data display program stored in the memory and executable on the processor, wherein the text data display program is configured to implement the steps of the text data display method described above.

[0045] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a text data display program is stored, and when the text data display program is executed by a processor, the steps of the text data display method described above are implemented.

[0046] The present invention obtains encrypted text data, parses the encrypted text data, obtains parsed text information and encrypted parameter information; encrypts the parsed text information to obtain encrypted verification parameter information; performs data consistency verification on the encrypted verification parameter information and the encrypted parameter information to obtain verification result information indicating that the parsed text information can be visually displayed. Since the parsed text information is encrypted to obtain the encrypted verification parameter, the data consistency verification between the parsed text information and the original text is achieved by verifying the encrypted verification parameter and the encrypted parameter information, thereby improving the display security of the text data and avoiding the negative impact caused by improper display. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a structural diagram of a text data display device in a hardware operating environment involved in an embodiment of the present invention;

[0048] Figure 2 A schematic diagram of a flow chart of a first embodiment of a text data display method of the present invention;

[0049] Figure 3 A flowchart of a second embodiment of a text data display method of the present invention;

[0050] Figure 4 A schematic diagram of a flow chart of a third embodiment of a text data display method of the present invention;

[0051] Figure 5 A schematic diagram of the cloud encryption process of the third embodiment of the text data display method of the present invention;

[0052] Figure 6 It is a structural block diagram of the first embodiment of the text data display device of the present invention.

[0053] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0054] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0055] Reference Figure 1 , Figure 1 This is a schematic diagram of the structure of a text data display device in a hardware operating environment involved in an embodiment of the present invention.

[0056] like Figure 1 As shown, the text data display device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0057] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the text data display device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0058] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a text data display program.

[0059] exist Figure 1 In the text data display device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the text data display device of the present invention can be set in the text data display device, and the text data display device calls the text data display program stored in the memory 1005 through the processor 1001, and executes the text data display method provided by the embodiment of the present invention.

[0060] The embodiment of the present invention provides a text data display method, referring to Figure 2 , Figure 2 It is a flowchart of the first embodiment of the text data display method of the present invention.

[0061] In this embodiment, the text data display method includes the following steps:

[0062] Step S10: Acquire encrypted text data, parse the encrypted text data, and obtain parsed text information and encryption parameter information.

[0063] It should be noted that the execution subject of the method of this embodiment can be a terminal device with data processing, text display and program running functions, such as a display device such as a computer or a mobile phone, or an electronic device with the same or similar functions, such as the above-mentioned text data display device. The following takes a text data display device (hereinafter referred to as a display device) as an example to illustrate this embodiment and the following embodiments.

[0064] It should be understood that the encrypted text data of the present invention can be sent to the display device from a remote end, for example, by sending the encrypted text data to the display device through a cloud server, a remote server, etc., or it can be sent to the display device from a proximal device, for example, by transmitting through Bluetooth, wireless, a local area network, etc. The embodiment of the present invention does not limit the method for obtaining the encrypted text data.

[0065] For ease of explanation, the present invention takes the sending of encrypted text data by a cloud server as an example to describe in detail the embodiment of the present invention and the following embodiments.

[0066] It is understandable that the encrypted data can be obtained by encrypting the data through the encryption algorithm. The encrypted text data of the embodiment of the present invention is also a kind of encrypted data. The encrypted text data can be obtained by encrypting the original text through the encryption parameter algorithm. The original text can be obtained by parsing the encrypted text data, that is, the parsed text information.

[0067] It should be noted that the encryption parameter information is the encryption information obtained by the encryption algorithm. In the embodiment of the present invention, the encryption parameter algorithm first encrypts the original text by a preset encryption method to obtain the encryption parameter information, and then inserts the encryption parameter information into the original text to obtain the encrypted encrypted text data.

[0068] It should be understood that the above-mentioned preset encryption method, that is, the pre-set encryption method, can be hash algorithm encryption, symmetric algorithm encryption, asymmetric algorithm encryption, etc. The embodiment of the present invention does not limit the encryption method adopted by the present invention, and different encryption methods can be selected according to the actual application situation.

[0069] It should be noted that parsing the encrypted text data is to separate the encrypted parameter information from the encrypted text data, thereby obtaining the encrypted parameter information and the separated parsed text information.

[0070] In a specific implementation, the display device obtains the encrypted text data, and separates the encryption parameter information in the encrypted text data to obtain the encryption parameter information and the parsed text information. Since the parsed text information and the encrypted text parameters are obtained by parsing the encrypted text data, the security of the text display is improved.

[0071] Step S20: encrypting the parsed text information to obtain encrypted verification parameter information;

[0072] Step S30: performing data consistency verification processing on the encrypted verification parameter information and the encrypted parameter information to obtain verification result information; the verification result information is used to indicate the visual display of the parsed text information.

[0073] It should be noted that the encryption method for the above-mentioned parsed text information may be the same as the above-mentioned encryption parameter algorithm, or may be different from the above-mentioned encryption parameter algorithm, and the embodiment of the present invention is not limited to this.

[0074] It is understandable that, since the parsed text information corresponds to the original text, when the preset encryption algorithm and the encryption parameter algorithm are the same, if the original text has not been modified, the encryption verification parameters obtained by the preset encryption algorithm and the encryption parameter information obtained by the encryption parameter algorithm should be consistent. The data consistency verification of the text content can be achieved by checking the encryption verification parameters and the encryption parameter information. When the encryption verification parameters are consistent with the encryption parameter information, it can be said that the original text has not been modified, that is, the parsed text information is consistent with the original text; when the encryption verification parameters are inconsistent with the encryption parameter information, it can be said that the original text has been modified, that is, the parsed text information is inconsistent with the original text, and the encrypted text data may be attacked.

[0075] It should be understood that when the preset encryption algorithm and the encryption parameter algorithm are different, the preset encryption algorithm and the encryption parameter algorithm need to have a corresponding relationship, that is, if the original text has not been modified, the encryption verification parameter obtained by the preset encryption algorithm and the encryption parameter information obtained by the encryption parameter algorithm have a corresponding relationship. The data consistency verification of the text content can be achieved by checking the encryption verification parameter and the encryption parameter information. When the encryption verification parameter and the encryption parameter information have a corresponding relationship, it can be said that the original text has not been modified, that is, the parsed text information is consistent with the original text; when the encryption verification parameter and the encryption parameter information do not have a corresponding relationship, it can be said that the original text has been modified, that is, the parsed text information is inconsistent with the original text, and the encrypted text data may be attacked.

[0076] For the convenience of explanation, the present invention takes the example that the preset encryption algorithm and the encryption parameter algorithm are the same to describe in detail the embodiment of the present invention and the following embodiments.

[0077] In one embodiment of the present invention, the step of encrypting the parsed text information by a preset encryption algorithm to obtain an encryption verification parameter includes:

[0078] Step S21: Obtaining an encryption salt value;

[0079] Step S22: Determine the text length and text hash value of the parsed text information;

[0080] Step S23: Encrypt the parsed text information parameters based on the text length, text hash value and the encryption salt value to obtain encrypted verification parameter information.

[0081] It is understood that the encryption salt value is a string or binary data used to improve the security of encryption parameter information. The above encryption salt value can be a value issued by the cloud server or a value customized by the user, which is not limited in the embodiment of the present invention. It should be understood that in a verification process, the encryption salt value used by the preset encryption algorithm and the encryption parameter algorithm should be consistent.

[0082] It should be understood that the text hash value is the output value obtained by converting the parsed text information through a hash function or a hash algorithm. The text hash value is unique. Different parsed text information can generate different hash values, and the same parsed text information can generate the same hash value. The embodiment of the present invention does not limit the method for generating the text hash value and the number of bits of the text hash value, which can be selected according to the actual application.

[0083] It should be explained that, in order to determine the text length and text hash value of the parsed text information, in one implementation of the embodiment of the present application, the step of determining the text segment information length and the text segment information hash value of each of the text segment information includes:

[0084] Traversing each character in the text segment information to determine the length of the text information corresponding to the text segment information;

[0085] Initialize a hash function and determine the text length of a data block of the hash function;

[0086] Obtaining binary text segment information corresponding to the text segment information;

[0087] Filling the binary text segment information with data to obtain target binary text segment information; the length of the target binary text segment information is an integer multiple of the text length of the data block;

[0088] The target binary text segment information is converted into a hash value by using the hash function to obtain a hash value of the text segment information.

[0089] It should be noted that the above-mentioned text length, that is, the number of text bits in the data block, such as 128 bits, 256 bits, etc., can be determined by traversing the text segment information; the text interval that needs to be encrypted can be determined based on the text length of the parsed text information, and the encryption algorithm and the encryption salt value are used to encrypt the text hash value corresponding to the text content in the text interval to obtain the encryption verification parameter.

[0090] In a specific implementation, the display device can encrypt the parsed text information to obtain the encrypted verification parameter information; perform data consistency verification on the encrypted verification parameter information and the encrypted parameter information to obtain the verification result information. Since the encrypted verification parameters are obtained by encrypting the parsed text information, the data consistency verification between the parsed text information and the original text is achieved by verifying the encrypted verification parameters and the encrypted parameter information, which improves the display security of the text data and avoids the impact caused by improper display.

[0091] It is understandable that when the data consistency verification is passed, it means that the parsed text information is consistent with the original text and has not been modified by the attack, and the interface text can be displayed visually. For example, the parsed text information is displayed in a ticker; for example, the parsed text information is displayed in a promotional screen; for example, the parsed text information is displayed in a digital sign, etc., and the embodiments of the present invention are not limited to this.

[0092] In a specific implementation, the display device visually displays the parsed text information when the verification is passed. Since the display is performed when the verification is passed, the display security of the displayed information is improved.

[0093] The embodiment of the present invention obtains encrypted text data, parses the encrypted text data, obtains parsed text information and encrypted parameter information; encrypts the parsed text information to obtain encrypted verification parameter information; performs data consistency verification on the encrypted verification parameter information and the encrypted parameter information to obtain verification result information indicating that the parsed text information can be visually displayed. Since the parsed text information is encrypted to obtain the encrypted verification parameters, the data consistency verification between the parsed text information and the original text is achieved by verifying the encrypted verification parameters and the encrypted parameter information, thereby improving the display security of the text data and avoiding the negative impact caused by improper display.

[0094] Based on the first embodiment of the text data display method of the present invention as described above, a second embodiment of the text data display method of the present invention is proposed.

[0095] refer to Figure 3 , Figure 3 It is a flowchart of the second embodiment of the text data display method of the present invention.

[0096] Based on the above first embodiment, in this embodiment, the steps of obtaining encrypted text data, parsing the encrypted text data, and obtaining parsed text information and encryption parameter information include:

[0097] Step S11: Obtaining encrypted text data;

[0098] Step S12: Parse the encrypted text data to obtain parsed text information, zero-width space positions, and encryption parameter information at the zero-width space positions.

[0099] It should be understood that by parsing the encrypted text data, the parsed text information, the zero-width space position, and the encryption parameter information at the zero-width space position included in the encrypted text data can be determined.

[0100] It should be noted that the zero-width space is a hidden spacer or separator inserted in the text. The zero-width space is an invisible character and has no visible effect on the actual display content of the text. By inserting encryption parameter information in the zero-width character, an invisible watermark can be set for the original text, thereby verifying the parsed text information and improving the security of text transmission and display.

[0101] In an implementation of the embodiment of the present application, the step of determining the text length and text hash value of the parsed text information includes:

[0102] Step S221: using the zero-width space position as the dividing point of the parsed text information;

[0103] Step S222: dividing the parsed text information into a plurality of text segments based on the dividing points, and obtaining text segment information corresponding to the text segments;

[0104] Step S223: Determine the text segment information length and the text segment information hash value of each of the text segment information.

[0105] It can be understood that, for encrypted text data, the content components thereof are in the form of "text segment-zero-width space-text segment-zero-width space-...-zero-width space", and the zero-width space content at the zero-width space position in the encrypted text data is extracted to obtain the parsed text information. Specifically, the step of parsing the encrypted text data to obtain the parsed text information, the zero-width space position, and the encryption parameter information at the zero-width space position includes:

[0106] Perform a zero-width space search in the encrypted text data to determine the position of the zero-width space in the encrypted text data;

[0107] Obtaining zero-width space content at the zero-width space position, wherein the zero-width space content includes encryption parameter information;

[0108] The zero-width space content is separated in the encrypted text data to obtain the separated encrypted text data, and the separated encrypted text data includes parsed text information.

[0109] It should be noted that when separating the zero-width space content in the encrypted text data, the separated encrypted text data and the separated zero-width space content can be obtained; the separated encrypted text data can be spliced ​​to obtain parsed text information; or it can be not spliced ​​to obtain several text segments with the zero-width space position as the dividing point, and then obtain the text segment information of each text segment.

[0110] It should be noted that for each text segment information, its text segment information length and text segment information hash value can be determined, and then the encryption verification parameter information of the text segment information can be determined according to the text segment information length, the text segment information hash value and the encryption salt value. By verifying the encryption verification parameter information and encryption parameter information of each text segment, data consistency verification of the transmission process can be achieved.

[0111] Accordingly, the step of encrypting the parsed text information parameters based on the text length, the text hash value and the encryption salt value to obtain encrypted verification parameter information includes:

[0112] Step S231: determining an encryption length parameter based on the text segment information length of the text segment information;

[0113] Step S232: concatenate the encryption salt value with the hash value of each text segment to obtain initial encryption information;

[0114] Step S233: using the encryption length parameter as an additional input for encryption, performing secondary encryption on the initial encryption information to obtain encryption verification parameter information.

[0115] In one implementation of the embodiment of the present application, the encrypted text data may be obtained from the cloud or other terminals. When obtained from other terminals, the terminal may encrypt the original text based on multiple text segment information, and insert the encrypted generated encryption parameter information into the corresponding zero-width space to form encrypted text data with an invisible watermark, thereby improving the security of text transmission.

[0116] It can be understood that for each text segment information, there can be a corresponding zero-width space, from which the encryption parameter information of the corresponding text segment information can be extracted. The display device can encrypt the text segment information through a preset encryption algorithm and based on the encryption salt value, the length of the text segment information in the parsed text information, and the text hash value of the text segment information, thereby obtaining the encryption verification parameter corresponding to the text segment information. By comparing the encryption verification parameter of the text segment information with the encryption parameter information separated from the zero-width space, it can be determined whether the text segment information in the parsed text information is consistent with the text segment information of the original text. Specifically, the step of performing data consistency verification processing on the encryption verification parameter information and the encryption parameter information to obtain the verification result information includes:

[0117] Determine the correspondence between each zero-width space and each text segment information based on the division point;

[0118] Comparing the encryption parameter information at the zero-width space position with the encryption verification parameter information corresponding to the text segment information according to the corresponding relationship;

[0119] When the encryption parameter information and the encryption verification parameter information are consistent, determining that the verification result information is passed;

[0120] When the encryption parameter information and the encryption verification parameter information are inconsistent, the verification result information is determined to be failed.

[0121] It can be understood that when all the text segment information in the parsed text information is consistent with the original text, it can be said that it has not been modified, and the parsed text information can be displayed visually; when there is inconsistency between the text segment information in the parsed text information and the corresponding text segment information in the original text, it can be said that the text has been attacked, and the parsed text information will not be displayed. Specifically, when the encryption verification parameters corresponding to each text segment information in the parsed text information pass the data consistency verification with the encryption parameter information, the parsed text information is displayed visually.

[0122] In one implementation of the embodiment of the present invention, when the parsed text information is not displayed, a reminder may be sent to the cloud server or the user so that the user can process it in time.

[0123] The embodiment of the present invention divides the parsed text information based on the position of the zero-width space to obtain the text segment information; determines the text segment information length and the text segment information hash value of each text segment information; encrypts the text segment information based on the text segment information length, the text segment information hash value and the encryption salt value to obtain the encryption verification parameter information of each text segment information; determines the corresponding relationship between each zero-width space and each text segment information according to the position of the zero-width space; performs data consistency verification on the encryption parameter information at the zero-width space position and the encryption verification parameter information corresponding to the text segment information according to the corresponding relationship; when the data consistency is passed, the verification result information is determined to be passed; when there is data that fails the verification, the verification result information is determined to be failed. Since the parsed text information is divided according to the zero-width space, and the encryption verification parameter corresponding to the divided text segment information is verified with the encryption parameter information, it is determined whether the text segment information content of the parsed text information is consistent with the content of the text segment information in the original text, which ensures that the text can be displayed without being modified, and improves the security of text data display.

[0124] Based on the above embodiments of the text data display method of the present invention, a third embodiment of the text data display method of the present invention is proposed. Figure 4 As shown, Figure 4 It is a flowchart of the third embodiment of the text data display method of the present invention.

[0125] Reference Figure 4 In an embodiment of the present invention, the step of parsing the encrypted text data to obtain parsed text information, zero-width space positions, and encryption parameter information at the zero-width space positions includes:

[0126] Step S121: Searching for zero-width spaces in the encrypted text data to determine the position of the zero-width spaces in the encrypted text data

[0127] Step S122: obtaining the zero-width space content at the zero-width space position, wherein the zero-width space content includes encryption parameter information;

[0128] Step S123: Separate the zero-width space content in the encrypted text data to obtain the separated encrypted text data, wherein the separated encrypted text data includes parsed text information.

[0129] In an embodiment of the present invention, a zero-width space search can be performed on the encrypted text content in the encrypted text data to determine the zero-width space position in the encrypted text content and the zero-width space content at the zero-width space position, and then determine the encryption parameter information included in the zero-width space content.

[0130] It should be noted that when searching for zero-width spaces, the search may be based on encoding or by using a related plug-in, which is not limited in the embodiments of the present application.

[0131] In the embodiment of the present invention, the display device can obtain the encrypted text data from the cloud server or other terminals. The acquisition method can be direct acquisition or instruction acquisition, which is not limited in the embodiment of the present invention.

[0132] In an implementation of the embodiment of the present invention, the step of obtaining encrypted text data includes:

[0133] Initiate a text display request to the cloud;

[0134] Receive encrypted text data generated by the cloud based on a preset encryption algorithm.

[0135] It is understandable that the display device can initiate a text display request to the cloud. When the cloud receives the text display request, it can obtain the original text and encrypt it using an encryption algorithm based on the text length, text hash value and encryption salt value of the original text.

[0136] It should be noted that the encryption algorithm used in the cloud in the embodiment of the present invention may be the same as the encryption algorithm used by the display device, or may correspond to the encryption algorithm used by the display device, and the embodiment of the present invention is not limited to this.

[0137] Specifically, the encryption process of the original text using the encryption algorithm in the cloud can be as follows: Figure 5 As shown, Figure 5 This is a schematic diagram of the cloud encryption process of the third embodiment of the text data display method of the present invention.

[0138] Reference Figure 5 ,When the cloud receives a text display request from the display ,device, it can obtain the original text and traverse the original text to ,determine the position information of zero-width spaces in the original text, and ,then segment the original text to obtain the information of each text segment.

[0139] Furthermore, the cloud can determine the text length and text hash value of each text segment information, and convert the text hash value into a 128-bit binary code to further improve the security of text transmission. Furthermore, a custom encryption salt value can be determined, and encryption is performed using the custom encryption salt value, binary code, and text length to generate encryption parameter information corresponding to the text segment information, and the encryption parameter information is inserted into the zero-width space corresponding to the text segment information.

[0140] It is understandable that by encrypting each text segment of the original text and inserting the encryption parameter information into the zero-width space corresponding to each text segment, encrypted text data carrying an invisible watermark can be generated. The display device can determine whether the text has been modified during the transmission process by parsing and verifying the encrypted text data, thereby improving the security of text transmission and display.

[0141] In a specific implementation, the display device can initiate a text display request to the cloud. When the cloud receives the text display request, it obtains the original text and traverses the original text to determine the position information of the zero-width space in the original text, and then segments the original text to obtain each text segment information. By encrypting each text segment information and inserting the encryption parameter information into the zero-width space corresponding to each text segment information, the generated encrypted text data is more secure. By verifying the encryption parameter information, the problem of improper display caused by tampering of the text content can be avoided, thereby improving the display security of the text display data.

[0142] It is understandable that the display device can determine the encrypted text content of the encrypted text data by parsing the encrypted text data. The embodiment of the present invention does not limit the parsing method of the encrypted text data, and it can be selected according to the actual application situation.

[0143] It should be understood that the encrypted text content may include explicit parsed text information and implicit zero-width spaces. The encryption parameter information can be obtained by determining the implicit content at the zero-width space in the encrypted text content and extracting it.

[0144] In a specific implementation, the display device can parse the encrypted text data to obtain the encrypted text content. By extracting the content at the zero-width space in the encrypted text content, the encryption parameter information and the parsed text information can be obtained. Since the data consistency verification is performed through the encryption parameter information in the zero-width space, the consistency of the text data is verified without affecting the display of the text content, thereby improving the display security and display consistency of the text display content.

[0145] The embodiment of the present invention parses the encrypted text data to obtain the encrypted text content; performs a zero-width space search in the encrypted text content to determine the position of the zero-width space in the encrypted text content; separates the zero-width space content at the zero-width space position from the encrypted text content to obtain encryption parameter information and parsed text information. Since the encrypted text data is parsed to obtain the encrypted text content, the encryption parameter information and parsed text information can be obtained by separating the content at the zero-width space in the encrypted text content, thereby realizing the consistency verification of the text data without affecting the display of the text content, and improving the display security and display consistency of the text display content.

[0146] In addition, an embodiment of the present invention further provides a storage medium, on which a text data display program is stored. When the text data display program is executed by a processor, the steps of the text data display method described above are implemented.

[0147] Based on the first embodiment of the text data display method of the present invention, a first embodiment of the text data display device of the present invention is proposed, referring to Figure 6 , Figure 6 It is a structural block diagram of the first embodiment of the text data display device of the present invention.

[0148] like Figure 6 As shown, the text data display device proposed in the embodiment of the present invention includes:

[0149] The text parsing module 601 is used to obtain encrypted text data, parse the encrypted text data, and obtain parsed text information and encryption parameter information;

[0150] The encryption processing module 602 is used to encrypt the parsed text information to obtain encrypted verification parameter information;

[0151] The parameter verification module 603 is used to perform data consistency verification processing on the encrypted verification parameter information and the encrypted parameter information to obtain verification result information; the verification result information is used to indicate the visual display of the parsed text information.

[0152] The embodiment of the present invention obtains encrypted text data, parses the encrypted text data, obtains parsed text information and encrypted parameter information; encrypts the parsed text information to obtain encrypted verification parameter information; performs data consistency verification on the encrypted verification parameter information and the encrypted parameter information to obtain verification result information indicating that the parsed text information can be visually displayed. Since the parsed text information is encrypted to obtain the encrypted verification parameters, the data consistency verification between the parsed text information and the original text is achieved by verifying the encrypted verification parameters and the encrypted parameter information, thereby improving the display security of the text data and avoiding the negative impact caused by improper display.

[0153] In one embodiment of the present invention, the encryption processing module 602 is also used to obtain an encryption salt value; determine the text length and text hash value of the parsed text information; encrypt the parsed text information parameters based on the text length, text hash value and the encryption salt value to obtain encrypted verification parameter information.

[0154] In one embodiment of the present invention, the text parsing module 601 is also used to obtain encrypted text data; parse the encrypted text data to obtain parsed text information, zero-width space positions, and encryption parameter information at the zero-width space positions.

[0155] In one embodiment of the present invention, the text parsing module 601 is also used to divide the parsed text information based on the zero-width space position to obtain text segment information; determine the text segment information length and text segment information hash value of each text segment information; accordingly, the encryption processing module 602 is also used to encrypt the text segment information based on the text segment information length, text segment information hash value and encryption salt value of the text segment information to obtain encryption verification parameter information of each text segment information. In one embodiment of the present invention, the parameter verification module 603 is also used to determine the correspondence between each zero-width space and each text segment information according to the zero-width space position; perform data consistency verification on the encryption parameter information at the zero-width space position and the encryption verification parameter information corresponding to the text segment information according to the correspondence; when the data consistency is passed, determine the verification result information as passed; when there is data that fails the verification, determine the verification result information as failed.

[0156] In one embodiment of the present invention, the text parsing module 601 is also used to parse the encrypted text data to obtain encrypted text content; perform zero-width space search in the encrypted text content to determine the position of the zero-width space in the encrypted text content; separate the zero-width space content at the zero-width space position from the encrypted text content to obtain encryption parameter information and parsed text information.

[0157] In one embodiment of the present invention, the text parsing module 601 is also used to traverse the text segment information to determine the text segment information length of the text segment information; and process the text segment information through a hash algorithm to determine the text segment information hash value of the text segment information.

[0158] Other embodiments or specific implementations of the text data display device of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.

[0159] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0160] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0162] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A text data display method, characterized in that: The method comprises: Acquire encrypted text data, parse the encrypted text data, and obtain parsed text information and encryption parameter information; Encrypting the parsed text information to obtain encrypted verification parameter information; The encrypted verification parameter information and the encrypted parameter information are subjected to data consistency verification processing to obtain verification result information; the verification result information is used to indicate the visual display of the parsed text.

2. The text data display method according to claim 1, characterized in that: The step of encrypting the parsed text information to obtain encrypted verification parameter information includes: Get the encryption salt value; Determining the text length and text hash value of the parsed text information; The parsed text information parameters are encrypted based on the text length, the text hash value and the encryption salt value to obtain encrypted verification parameter information.

3. The text data display method according to claim 2, characterized in that: The step of obtaining encrypted text data, parsing the encrypted text data, and obtaining parsed text information and encryption parameter information includes: Get encrypted text data; The encrypted text data is parsed to obtain parsed text information, zero-width space positions, and encryption parameter information at the zero-width space positions.

4. The text data display method according to claim 3, characterized in that: The step of determining the text length and text hash value of the parsed text information comprises: Using the zero-width space position as the dividing point of the parsed text information; Dividing the parsed text information into a plurality of text segments based on the dividing points, and obtaining text segment information corresponding to the text segments; Determine the text segment information length and the text segment information hash value of each of the text segment information; Accordingly, the step of encrypting the parsed text information parameters based on the text length, the text hash value and the encryption salt value to obtain encrypted verification parameter information includes: Determining an encryption length parameter based on the text segment information length of the text segment information; The encryption salt value is concatenated with the hash value of each text segment to obtain initial encryption information; The encryption length parameter is used as an additional input for encryption, and the initial encryption information is encrypted twice to obtain encryption verification parameter information.

5. The text data display method according to claim 4, characterized in that: The step of performing data consistency verification processing on the encryption verification parameter information and the encryption parameter information to obtain verification result information includes: Determine the correspondence between each zero-width space and each text segment information based on the division point; Comparing the encryption parameter information at the zero-width space position with the encryption verification parameter information corresponding to the text segment information according to the corresponding relationship; When the encryption parameter information and the encryption verification parameter information are consistent, determining the verification result information is passed; When the encryption parameter information and the encryption verification parameter information are inconsistent, the verification result information is determined to be failed.

6. The text data display method according to claim 3, characterized in that: The step of parsing the encrypted text data to obtain parsed text information, a zero-width space position, and encryption parameter information at the zero-width space position includes: Perform a zero-width space search in the encrypted text data to determine the position of the zero-width space in the encrypted text data; Obtaining zero-width space content at the zero-width space position, wherein the zero-width space content includes encryption parameter information; The zero-width space content is separated in the encrypted text data to obtain the separated encrypted text data, and the separated encrypted text data includes parsed text information.

7. The text data display method according to claim 4, characterized in that: The step of determining the text segment information length and the text segment information hash value of each of the text segment information comprises: Traversing each character in the text segment information to determine the length of the text information corresponding to the text segment information; Initialize a hash function and determine the text length of a data block of the hash function; Obtaining binary text segment information corresponding to the text segment information; Filling the binary text segment information with data to obtain target binary text segment information; the length of the target binary text segment information is an integer multiple of the text length of the data block; The target binary text segment information is converted into a hash value by using the hash function to obtain a hash value of the text segment information.

8. A text data display device, characterized in that: The text data display device comprises: A text parsing module, used to obtain encrypted text data, parse the encrypted text data, and obtain parsed text information and encryption parameter information; An encryption processing module, used for encrypting the parsed text information to obtain encrypted verification parameter information; The parameter verification module is used to perform data consistency verification processing on the encrypted verification parameter information and the encrypted parameter information to obtain verification result information; the verification result information is used to indicate the visual display of the parsed text information.

9. A text data display device, characterized in that: The device comprises: a memory, a processor, and a text data display program stored in the memory and executable on the processor, wherein the text data display program is configured to implement the steps of the text data display method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores a text data display program, and when the text data display program is executed by the processor, the steps of the text data display method according to any one of claims 1 to 7 are implemented.