Data security processing method, electronic device and computer storage medium
By analyzing data structures on carriers such as files and using multiple watermark embedding algorithms, the problem of watermarks being easily tampered with is solved, and more efficient data security protection is achieved.
Patent Information
- Application Number
- CN202111349751.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-11-15
AI Technical Summary
In the prior art, watermarks are easily maliciously analyzed and tampered with, resulting in insufficient data security and it is difficult to effectively protect the data security of files such as documents, images, audio, video, etc.
By performing data structure analysis on the carrier to be embedded in the watermark, multiple structural parts are selected, and watermark embedding processing is performed on each structural part using multiple watermark embedding algorithms. At the same time, the watermark extraction algorithm is determined for each structural part, so as to realize the extraction and security verification of watermarks.
It enhances the data security protection effect of watermarks, which is difficult to crack and even if part of it is cracked, it cannot crack and modify the carrier as a whole, improving the data security of the carrier.
Smart Images

Figure CN113987550B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a data security processing method, an electronic device, and a computer storage medium. Background Art
[0002] The development of Internet technology has brought many conveniences to people's work and life, but at the same time, it has also posed severe challenges to data security.
[0003] Currently, watermarking is used to protect data security, especially for files such as documents, images, audio, and video. For example, watermarks are typically embedded in redundant fields within documents. If a document is leaked, the source of the leak can be determined by extracting the watermarked content. However, this method of watermarking is susceptible to malicious analysis, which could lead to watermark removal or the discovery of the watermark's embedding and extraction logic. Furthermore, malicious actors could tamper with the watermarked content to achieve illicit purposes.
[0004] Therefore, how to use watermarks more effectively for file protection to provide high-quality data security has become an urgent problem to be solved. Summary of the Invention
[0005] In view of this, an embodiment of the present application provides a data security processing solution to at least partially solve the above-mentioned problems.
[0006] According to a first aspect of an embodiment of the present application, a data security processing method is provided, comprising: performing data structure analysis on a carrier to be embedded with a watermark to obtain a plurality of structural parts in which the watermark can be embedded; selecting a plurality of corresponding watermark embedding algorithms for the plurality of structural parts from a plurality of pre-set watermark embedding algorithms; performing watermark embedding processing on content information of each structural part according to the watermark embedding algorithm corresponding to each structural part in the plurality of structural parts; and obtaining a carrier embedded with the watermark according to the watermark embedding processing result of each structural part.
[0007] According to the second aspect of an embodiment of the present application, another data security processing method is provided, including: obtaining a carrier embedded with a watermark and multiple structural parts included in the carrier, wherein the multiple structural parts are watermarked by multiple watermark embedding algorithms; determining a watermark extraction algorithm to be used for each structural part; extracting a watermark from each structural part according to the watermark extraction algorithm corresponding to each structural part; and determining the data security of the carrier according to the result of the watermark extraction.
[0008] According to the third aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method described in the first aspect or the second aspect.
[0009] According to a fourth aspect of the embodiments of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect or the second aspect is implemented.
[0010] According to the data security processing solution provided by the embodiments of this application, on the one hand, based on the data structure analysis of the carrier to be watermarked, its multiple structural parts are obtained. These multiple structural parts are then watermarked using multiple different watermark embedding algorithms, ultimately completing the watermarking of the carrier. This greatly enhances the data security protection effect of the watermark on the carrier. First, the multiple watermark embedding algorithms are not easily cracked. Second, even if a part of them is cracked, the carrier as a whole cannot be cracked or modified, effectively improving the data security of the carrier.
[0011] On the other hand, for media that have been watermarked using multiple watermark embedding algorithms, the corresponding watermark extraction algorithm can be determined based on the watermark embedding algorithm used for each structural component. After watermark extraction using the watermark extraction algorithm, the security of the media can be further determined based on the content information obtained after watermark extraction. Similarly, because multiple watermark embedding algorithms are used to embed multiple watermarks on a single media, the watermark embedding algorithm is not easily cracked. Even if partially cracked, the entire media cannot be cracked or modified, and the cracking is easy to detect, effectively improving the data security of the media. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0013] Figure 1 A schematic diagram of an exemplary system applicable to the data security processing method according to an embodiment of the present application;
[0014] Figure 2A This is a flowchart of a data security processing method according to the first embodiment of the present application;
[0015] Figure 2B for Figure 2A A schematic diagram of a watermark information generation process in the illustrated embodiment;
[0016] Figure 2C for Figure 2A One of the illustrated embodiments is a schematic diagram of the overall process of embedding a watermark into a carrier;
[0017] Figure 3A This is a flowchart of a data security processing method according to the second embodiment of the present application;
[0018] Figure 3B for Figure 3A A schematic diagram of a watermark information extraction process in the illustrated embodiment;
[0019] Figure 4 This is a flowchart of a data security processing method according to the third embodiment of the present application;
[0020] Figure 5 This is a structural diagram of an electronic device according to the fourth embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field should fall within the scope of protection of the embodiments of the present application.
[0022] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.
[0023] Figure 1 An exemplary system for the data security processing method applicable to the embodiment of the present application is shown. Figure 1 As shown, the system 100 may include a server 102, a communication network 104 and / or one or more user devices 106. Figure 1 The example in the figure is for multiple user devices.
[0024] The server 102 may be any suitable server for storing information, data, programs, and / or any other suitable type of content. In some embodiments, the server 102 may perform any suitable function. For example, in some embodiments, the server 102 may be used to embed a watermark into a carrier. As an optional example, in some embodiments, the server 102 may be used to embed multiple watermarks into a carrier based on the data structure of the carrier. As another example, in some embodiments, the server 102 may be used to receive a request from a user device for embedding a watermark into a carrier, and based on multiple structural parts obtained by analyzing the data structure of the carrier, use multiple watermark embedding algorithms to embed multiple watermarks into the carrier. Furthermore, the server 102 may also return the carrier embedded with multiple watermarks to the user device. As another example, in some embodiments, the server 102 may also be used to extract the watermark from the carrier embedded with the watermark, and determine the data security of the carrier based on the extraction result.
[0025] In some embodiments, the communication network 104 can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network 104 can include any one or more of the following: the Internet, an intranet, a wide area network (WAN), a local area network (LAN), a wireless network, a digital subscriber line (DSL) network, a frame relay network, an asynchronous transfer mode (ATM) network, a virtual private network (VPN) and / or any other suitable communication network. The user device 106 can be connected to the communication network 104 by one or more communication links (e.g., communication link 112), and the communication network 104 can be linked to the server 102 via one or more communication links (e.g., communication link 114). The communication link can be any communication link suitable for transmitting data between the user device 106 and the server 102, such as a network link, a dial-up link, a wireless link, a hard-wired link, any other suitable communication link or any suitable combination of such links.
[0026] User device 106 may include any one or more user devices suitable for presenting documents, images, audio, or video. In some embodiments, user device 106 may include any suitable type of device. For example, in some embodiments, user device 106 may include a mobile device, a tablet computer, a laptop computer, a desktop computer, a wearable computer, a game console, a media player, a vehicle entertainment system, and / or any other suitable type of user device. Note that in some embodiments, user device 106 may request a server to embed a watermark for a carrier, and present the watermarked carrier.
[0027] Although server 102 is illustrated as one device, in some embodiments, any suitable number of devices may be used to perform the functions performed by server 102. For example, in some embodiments, multiple devices may be used to implement the functions performed by server 102. Alternatively, the functions of server 102 may be implemented using cloud services.
[0028] In addition, if the user device 106 has higher software and hardware performance, some or all of the functions that can be executed by the server 102 can also be executed by the user device 106.
[0029] Based on the above system, an embodiment of the present application provides a data security processing method, which is described below through multiple embodiments.
[0030] Example 1
[0031] Reference Figure 2A , shows a step flow chart of a data security processing method according to embodiment 1 of the present application.
[0032] This embodiment describes the data security processing method of the present application embodiment from the perspective of embedding watermarks. The data security processing method of this embodiment includes the following steps:
[0033] Step S202: performing data structure analysis on the carrier to be embedded with the watermark, and obtaining multiple structural parts that can be embedded with the watermark.
[0034] The carrier to be embedded with the watermark may be any appropriate file type, including but not limited to documents (such as text documents, spreadsheet documents, web documents, and other text-based files), images, audio, video, and the like.
[0035] In the embodiments of the present application, a data structure analysis is performed on the carrier to be watermarked to obtain each structural component of the carrier. In one feasible approach, the carrier to be watermarked can be subjected to data structure analysis based on text content, spatial domain, frequency domain, or compressed domain. Based on the results of the data structure analysis, multiple structural components of the carrier that can be watermarked are obtained. The multiple structural components thus obtained provide a more comprehensive data foundation and greater flexibility for subsequent watermarking of the carrier.
[0036] For example, the structural part of a document includes the character spacing, line spacing, picture content, table content, etc. in the document; the structural part of a video may include: the video information header, coefficients of the video frequency domain, pixels in the spatial domain, etc.; the structural part of an image may include: the image information header, coefficients of the frequency domain, pixels in the spatial domain, etc.; the structural part of an audio may include: the audio information header, coefficients of the audio frequency domain, coefficients in the time domain, etc.
[0037] In one example, the watermark information that can be embedded in the carrier may include but is not limited to: carrier creator information (such as name or ID), creation time, carrier downloader information (such as name or ID), download time, carrier content, carrier modification time, carrier propagation chain and other structural parts.
[0038] In addition, the watermarks to be embedded in various structural parts may be the same or different, or may be partially the same or partially different, and no detailed distinction is made in the embodiments of the present application.
[0039] It should be noted that, in the embodiments of the present application, unless otherwise specified, “plurality”, “multiple” and other quantities related to “multiple” all mean two or more.
[0040] Step S204: Selecting corresponding watermark embedding algorithms for the multiple structural parts from the multiple pre-set watermark embedding algorithms.
[0041] Because carriers may be of different types, such as the aforementioned documents, images, audio, and video, it is necessary to pre-set multiple watermark embedding algorithms for each type of carrier. For example, for documents, watermark embedding algorithms with functions such as modifying the document content without changing its semantic meaning, modifying the format encoding of the document content, and modifying the binary structure of the document can be set; for images, watermark embedding algorithms with functions such as modifying the spatial domain pixels of the image, transforming to the transform domain or using spread spectrum watermarks using methods such as DWT (Discrete Wavelet Transform), DCT (Discrete Cosine Transform), and DFT (Discrete Fourier Transform) can be set; for audio, watermark embedding algorithms with functions such as modifying audio data in the time domain, transforming to the transform domain using methods such as DWT, DCT, and DFT, phase encoding, spread spectrum watermarking, and embedding watermarks into the compressed domain can be set; for video, watermark embedding algorithms with functions such as modifying the spatial domain pixels of the image frame, transforming to the transform domain or using spread spectrum watermarks using methods such as DWT, DCT, and DFT, and embedding watermarks into the compressed domain can be set. However, the above is only an exemplary description. In actual applications, other watermark embedding algorithms are also applicable to the solutions of the embodiments of the present application. It is only necessary that each type of carrier has corresponding multiple watermark embedding algorithms.
[0042] Based on the pre-set multiple watermark embedding algorithms and the multiple structural parts of the obtained carrier, a corresponding watermark embedding algorithm is selected for each structural part. It should be noted that in some cases, the multiple sets of watermark information that need to be embedded in the carrier may be combined (which can be used for mutual verification of subsequent watermark information) before watermark embedding. In this case, the combined watermark information can be regarded as a whole, that is, as a separate watermark information. For example, a document includes five structural parts A, B, C, D, and E, each structural part corresponds to a watermark embedding algorithm, and five watermark information a, b, c, d, and e need to be embedded. In one method, a corresponding watermark embedding algorithm can be selected for each watermark information that needs to be embedded. For example, the five watermark information corresponds to five watermark embedding algorithms and the five watermark embedding algorithms are all different algorithms, or the five watermark information corresponds to three watermark embedding algorithms, a and b both use the first one, c uses the second one, d and e use the third one, and so on. In another approach, for the five watermarks a, b, c, d, and e that need to be embedded in the document, they can be combined (e.g., randomly) according to needs or preset rules. Assuming the combined results are a+b, c, d, and e, a+b can be considered as one watermark, and it can be considered that the document needs to be embedded with four watermarks. Multiple watermark embedding algorithms can be selected for the four watermarks. In yet another approach, for the five watermarks a, b, c, d, and e that need to be embedded in the document, they can be combined (e.g., randomly) according to needs or preset rules. Assuming the combined results are a+b, b, c+d, d, and e, a+b can be considered as one watermark, c+d as one watermark, and multiple watermark embedding algorithms can be selected for the five watermarks.
[0043] As can be seen from the above, the watermark embedding algorithms selected for the multiple structural parts of the carrier may be different for different structural parts, or the watermark algorithms for some of the structural parts may be the same, but it is necessary to ensure that at least two or more watermark embedding algorithms are used for multiple structural parts.
[0044] In a feasible manner, selecting corresponding multiple watermark embedding algorithms for multiple structural parts can be implemented as follows: for each of the multiple structural parts, perform a presentation quality evaluation and / or a data security evaluation on the result after watermark embedding using each of the multiple watermark embedding algorithms; according to the result of the presentation quality evaluation and / or the result of the data security evaluation, select corresponding multiple watermark embedding algorithms for the multiple structural parts. Among them, the presentation quality evaluation is used to evaluate the visual presentation effect of the carrier to which a certain structural part belongs after embedding a watermark using a certain watermark embedding algorithm; the data security evaluation is used to evaluate whether the watermark algorithm used by a certain structural part is easy to detect and crack. In this way, for each structural part, a relatively effective watermark embedding algorithm can be found. For example, for a document, modifying the character spacing and line spacing will affect the visual perception of the user; for an image or a video, the watermark embedded using different watermark embedding algorithms will cause changes in pixel points, resulting in a decrease in objective quality PSNR (Peak Signal-to-Noise Ratio) and subjective quality and other indicators; for an audio, the watermark embedded using different watermark embedding algorithms will also cause changes in the audio segment, resulting in a decrease in objective quality PESQ (Perceptual Evaluation of Speech Quality) and subjective quality MOS (Mean Opinion Score) and other indicators.
[0045] Further optionally, selecting corresponding multiple watermark embedding algorithms for multiple structural parts according to the result of the presentation quality evaluation and / or the result of the data security evaluation can be implemented as follows: according to the result of the presentation quality evaluation and / or the result of the data security evaluation, determine the weight of each watermark embedding algorithm; according to the weight, select N watermark embedding algorithms from the multiple watermark embedding algorithms, and determine the selected watermark embedding algorithms as the watermark embedding algorithms to be used by the multiple structural parts; where 1 < N ≤ the number of multiple structural parts. Among them, the selected N watermark embedding algorithms are the N watermark embedding algorithms with higher weights. Through the way of weights, the matching degree between the watermark embedding algorithm and the carrier and the security level can be effectively evaluated. However, this is not limited to this. By means of scoring or rating of the watermark embedding algorithm, the suitable watermark embedding algorithm can also be effectively selected.
[0046] The specific implementation of the above presentation quality evaluation and data security evaluation can be implemented by those skilled in the art in any suitable way, including but not limited to using a neural network model with corresponding functions and the like.
[0047] Step S206: Perform watermark embedding processing on the content information of each structural part according to the watermark embedding algorithm corresponding to each structural part among the multiple structural parts.
[0048] After determining a watermark embedding algorithm for each structural part of the carrier, the determined watermark embedding algorithm can be used to embed watermarks into the content information of each structural part based on the pre-set watermark information to be embedded in each structural part. For example, for the content part of the carrier, multiple structural parts are obtained after data structure analysis, and then watermark embedding is performed based on the determined watermarks (such as the download ID, downloader information, partial content in the carrier, carrier modification time, etc.) and the watermark embedding algorithms corresponding to each structural part. Taking a document as an example, after performing data structure analysis, the word spacing and line spacing of the document are obtained. The download ID can be used as the watermark to be used for the word spacing part, and multiple available word-to-word portions can be selected according to certain rules. Watermark embedding algorithm A corresponding to the word spacing part can be used for watermark embedding. The download time can be used as the watermark to be used for the line spacing part, and multiple available line-to-line portions can be selected according to certain rules. Watermark embedding algorithm B corresponding to the line spacing part can be used for watermark embedding.
[0049] In one feasible way, this step S206 can be implemented as follows: based on the watermark information to be embedded in each structural part and the corresponding watermark embedding algorithm, watermark coding information is generated; based on the watermark embedding algorithm and watermark coding information corresponding to each structural part, watermark embedding processing is performed on each structural part. In this way, on the one hand, the watermark is implemented in a coded form, which further improves the efficiency of watermark embedding; on the other hand, by encoding the information carrying the watermark embedding algorithm, it is convenient for subsequent legitimate users to extract the watermark. Among them, the specific implementation method and means of encoding can be selected by those skilled in the art according to actual needs. The embodiment of the present application does not limit this. The coding information corresponding to the watermark embedding algorithm can be located at a preset position of the entire watermark coding information, such as the head or tail of the entire watermark coding information. Those skilled in the art should understand that the method of directly embedding the watermark in the content information without encoding is also applicable to the solution of the embodiment of the present application.
[0050] In a feasible manner, this step S206 can be implemented as follows: overlapping processing of watermark information is performed on at least part of the multiple structural parts of the carrier according to preset rules; watermark embedding processing is performed on the structural part using the watermark embedding algorithm corresponding to the structural part and the watermark information after overlapping processing, and watermark embedding processing is performed on other structural parts according to the watermark embedding algorithm and watermark information corresponding to other structural parts in the multiple structural parts. Among them, the preset rules can be appropriately set by those skilled in the art according to actual needs, such as random rules, etc., and the embodiments of the present application do not limit this. In addition, in the embodiments of the present application, overlapping processing means that for a certain structural part of the carrier, the watermark information combination obtained by combining at least two different watermark information is used as the watermark information corresponding to the structural part, and there is an overlapping relationship of watermark information with other structural parts in the multiple structural parts. For example, suppose the original multiple structural parts include five structural parts: A, B, C, D, and E. Furthermore, assume there are five types of watermark information to be embedded: A', B', C', D', and E'. The results of the combination are A'+B', B', C'+D', D', and E'. Then, A'+B' can be used as the watermark information to be embedded in part A, B' as the watermark information to be embedded in part B, C'+D' as the watermark information to be embedded in part C, D' as the watermark information to be embedded in part D, and E' as the watermark information to be embedded in part E. It can be seen that the watermark information corresponding to the different structural parts obtained after the combination may overlap with the watermark information corresponding to other structural parts. For example, A'+B' in part A overlaps with B' in part B, and C'+D' in part C overlaps with D' in part D. The watermark information embedded in this way can be used to determine the data security of the carrier without relying on external data.
[0051] An example of the above process is Figure 2B As shown, from Figure 2BIt can be seen that the watermark information to be embedded includes at least four types: downloader ID, download time, carrier content, and carrier modification time. Furthermore, in this example, the download time and carrier content are combined, but the original carrier content part is still retained. Therefore, four watermark information are obtained after the combination, namely downloader ID, download time + carrier content, carrier content, and carrier modification time. Assume that, according to the weight of each watermark embedding algorithm, the downloader ID is determined to be used as the watermark information for part A of the carrier, and the watermark embedding algorithm A with the top 1 weight is determined. The download time + carrier content is determined to be used as the watermark information for part B of the carrier, and the watermark embedding algorithm B with the top 2 weight is determined. The carrier content is determined to be used as the watermark information for part C of the carrier, and the watermark embedding algorithm C with the top 3 weight is determined. The carrier modification time is determined to be used as the watermark information for part D of the carrier, and the watermark embedding algorithm Z with the top 4 weight is determined. Then, when watermark embedding is performed for each structural part, the encoder first encodes the four watermark information mentioned above to obtain the code of the downloader ID, the code of (download time + carrier content), the code of the carrier content, and the code of the carrier modification time. Then, watermark embedding is performed based on the watermark embedding algorithm of each structural part. For example, watermark embedding algorithm A is used to embed the code of the downloader ID into the A part of the carrier to generate watermark A; watermark embedding algorithm B is used to embed the code of (download time + carrier content) into the B part of the carrier to generate watermark B; watermark embedding algorithm C is used to embed the code of the carrier content into the C part of the carrier to generate watermark C; watermark embedding algorithm Z is used to embed the code of the carrier modification time into the D part of the carrier to generate watermark Z.
[0052] Step S208: Obtain a carrier embedded with a watermark according to the watermark embedding processing result of each structural part.
[0053] After each structural part is embedded with a watermark, the carrier with the watermark embedded as a whole can be obtained.
[0054] A simple illustration of the above process is as follows Figure 2C As shown, Figure 2C In the process, by analyzing the data structure of the carrier, the corresponding multiple structural parts are obtained; then, multiple pre-set watermark embedding algorithms are obtained. Figure 2CThe figure shows watermark embedding algorithms AZ. Based on the multiple watermark embedding algorithms AZ, a presentation quality assessment and / or data security assessment is performed for each structural part to obtain the weight of each watermark embedding algorithm relative to the current structural part; then, according to the weight, the weighted TopN watermark embedding algorithms used by multiple structural parts are selected from the watermark embedding algorithms AZ, where N is greater than 1 and less than or equal to the number of multiple structural parts; then, according to the watermark to be embedded in each structural part and the corresponding watermark embedding algorithm, a watermark is embedded for each structural part, and finally a watermark carrier with the embedded watermark is generated.
[0055] This embodiment analyzes the data structure of the carrier to be watermarked to obtain multiple structural components. These components are then watermarked using multiple different watermark embedding algorithms, ultimately completing the watermarking of the carrier. This significantly enhances the data security protection provided by the watermark. First, the multiple watermark embedding algorithms are not easily cracked. Second, even if a portion of them is cracked, the entire carrier cannot be cracked or modified, effectively improving the data security of the carrier.
[0056] Example 2
[0057] Reference Figure 3A , shows a step flow chart of a data security processing method according to embodiment 2 of the present application.
[0058] This embodiment describes the data security processing method of the present application embodiment from the perspective of watermark extraction. The data security processing method of this embodiment includes the following steps:
[0059] Step S302: Acquire a carrier embedded with a watermark and multiple structural parts included in the carrier.
[0060] The multiple structural parts are watermarked using multiple watermark embedding algorithms.
[0061] In this step, after obtaining the carrier embedded with the watermark, a structural analysis may be performed on it, including at least: data structure analysis based on text content, data structure analysis based on spatial domain, data structure analysis based on frequency domain, or data structure analysis based on compressed domain.
[0062] In one feasible manner, the carrier embedded with the watermark may be a carrier generated by the method described in the first embodiment above, but is not limited thereto. If there are other carriers with multiple watermarks, the solution of this embodiment may also be applied.
[0063] Step S304: Determine the watermark extraction algorithm to be used for each structural part.
[0064] In this embodiment, a plurality of watermark extraction algorithms are pre-set, and the plurality of watermark extraction algorithms at least include watermark extraction algorithms that match a plurality of watermark embedding algorithms used when embedding watermarks into a carrier.
[0065] In one feasible approach, for each structural part of the carrier, all watermark extraction algorithms can be exhaustively tried until the watermark extraction algorithm used for the current structural part is found. This approach is simple to implement and has low algorithm implementation cost.
[0066] In another feasible approach, for each structural component of the carrier, the corresponding watermark encoding field can be obtained. The watermark embedding algorithm used for each structural component can be determined based on the encoded information of the watermark embedding algorithm carried in the watermark encoding field. Based on the watermark embedding algorithm, the corresponding watermark extraction algorithm can be determined. If the watermark information is encoded during watermark embedding, this approach can be used to determine the encoded information of the watermark embedding algorithm from the watermark encoding field corresponding to each structural component. Based on this encoded information, the watermark embedding algorithm used at the time can be determined, and then the corresponding watermark extraction algorithm can be determined. This can greatly improve the efficiency and accuracy of determining the watermark extraction algorithm.
[0067] In another feasible approach, for each structural portion of the carrier, the structural features of each structural portion after watermark embedding can be obtained; this structural feature is compared with the features of multiple pre-set watermark extraction algorithms, and based on the comparison results, the watermark extraction algorithm used for each structural portion is determined. Because there is a certain correlation between the watermark embedding algorithm and the watermark extraction algorithm, by comparing the structural features after watermark embedding with the features of the extraction algorithm, the degree of match between the two can be determined, thereby determining the appropriate watermark extraction algorithm. For example, if the watermark embedding algorithm is an algorithm that has the function of modifying the binary structure of the document, then the structural features after watermark embedding by this algorithm will have features related to modifying the binary structure. The corresponding watermark extraction algorithm will also have feature parts that modify the binary structure. Through matching, the correlation or similarity between the two can be determined, thereby determining the corresponding watermark extraction algorithm. In this way, the watermark extraction algorithm can be effectively determined using existing information without auxiliary information, thereby improving the efficiency of algorithm determination.
[0068] Step S306: extracting watermarks from each structural part according to the watermark extraction algorithm corresponding to each structural part.
[0069] After determining the watermark extraction algorithm corresponding to each structural part, subsequent watermark extraction processing can be performed to obtain the watermark of the structural part. It is also possible to decode the watermark to obtain the watermark information. If the watermark information is encoded, watermark extraction processing can be performed based on the watermark encoding to obtain the watermark information.
[0070] A simple diagram of the process is as follows Figure 3B As shown, from Figure 3B As can be seen in the figure, the watermark carrier with embedded watermark is subjected to the detection of its multiple structural parts to determine the watermark extraction algorithm of each structural part. In this example, as shown in the figure, the watermark extraction algorithm A is used to extract the watermark of the A structural part to obtain the watermark of the downloader ID; the watermark extraction algorithm B is used to extract the watermark of the B structural part to obtain the mixed watermark of the download time and the carrier content; the watermark extraction algorithm C is used to extract the watermark of the C structural part to obtain the carrier content watermark; the watermark extraction algorithm Y is used to extract the watermark of the D structural part to obtain the carrier modification time watermark.
[0071] Step S308: Determine the data security of the carrier based on the result of watermark extraction.
[0072] Generally speaking, for each structural part, if the watermark information obtained after watermark extraction processing is consistent with the original watermark information, the carrier is considered to have not been tampered with and is safe; otherwise, the carrier may have been illegally tampered with and is unsafe.
[0073] One feasible approach involves extracting and decoding the watermark information for each structural component, and then obtaining the original watermark information for each component from the cloud. The data security of the carrier can be determined by comparing the extracted and decoded watermark information with the original watermark information. This approach has broad applicability, as it accurately determines whether the original watermark information and the extracted watermark information are consistent, regardless of whether the carrier uses multiple original watermark information or combines multiple original watermark information.
[0074] In another feasible method, if the carrier has performed watermark overlapping processing on a part of the original multiple structural parts when embedding the watermark, that is, there is a structural part of the watermark information using overlapping processing among the multiple structural parts, and there is information overlap between the overlapping watermark information and the watermark information of other structural parts, then when determining the data security of the carrier based on the results of watermark extraction, watermark extraction and watermark decoding can be performed on the structural part with overlapping watermark information and other structural parts respectively; and the data security of the carrier is determined based on the consistency between the overlapping watermark information obtained after decoding and the watermark information of other structural parts. For example, if the carrier embedded with the watermark includes the following multiple structural parts, namely: A, B, C, D and E, assuming that these structural parts are watermark extracted and decoded respectively, the watermark information A'+B' corresponding to part A, the watermark information B' corresponding to part B, the watermark information C'+D" corresponding to part C, the watermark information D' corresponding to part D, and the watermark information E' corresponding to part E will be obtained. If B' in A'+B' is inconsistent with the independent B', it can be determined that part A or part B has been tampered with, and it can also be concluded that the carrier has been tampered with. Similarly, if D' in C'+D' is inconsistent with the independent D', it can be determined that part C or part D has been tampered with, and it can also be concluded that the carrier has been tampered with. It can be seen that in this way, there is no need to rely on data obtained from the outside (such as the cloud), and the data security of the carrier can be determined based on the information of the carrier itself.
[0075] In addition, if the same watermark is used to embed multiple structural parts of a carrier, the watermark information of each structural part can be obtained based on the watermark extraction results; the watermark information of each structural part is judged to be the same, and the data security of the carrier is determined based on the judgment results. For example, if the watermark-embedded carrier includes the following multiple structural parts, namely: A, B, C, D, and E, after watermark extraction is performed on these structural parts respectively, the watermark of A, the watermark of B, the watermark of C, the watermark of D, and the watermark of E will be obtained. If different watermarks exist among the above watermarks, it can be determined that the carrier has been tampered with. If different watermarks are used to embed multiple structural parts of a carrier, the watermark of each structural part can be obtained based on the watermark extraction results; the watermark of each structural part is compared with the original watermark obtained from the cloud one by one. If there are inconsistent watermarks, it can be determined that the watermark has been tampered with.
[0076] Through this embodiment, for a carrier that has been watermarked using multiple watermark embedding algorithms, the corresponding watermark extraction algorithm can be determined based on the watermark embedding algorithm used for each structural component. After watermark extraction using the watermark extraction algorithm, the security of the carrier can be further determined based on the content information obtained after watermark extraction. Similarly, because multiple watermark embedding algorithms are used to embed multiple watermarks on a single carrier, the watermark embedding algorithm is not easily cracked. Even if partially cracked, the carrier cannot be cracked or modified as a whole, and the cracking is easy to detect, thereby effectively improving the data security of the carrier.
[0077] Example 3
[0078] Reference Figure 4 , shows a step flow chart of a data security processing method according to embodiment three of the present application.
[0079] This embodiment describes the data security processing method provided by the embodiment of the present application from the perspective of the complete process from watermark embedding to watermark extraction. However, those skilled in the art should understand that in actual applications, the method described in the first embodiment can be used for watermark embedding, while other methods can be used for watermark extraction; similarly, other methods can be used for watermark embedding, while the method described in the second embodiment can be used for watermark extraction.
[0080] The data security processing method of this embodiment includes the following steps:
[0081] Step S402: obtaining multiple structural parts of a carrier to be embedded with a watermark, and selecting corresponding multiple watermark embedding algorithms for the multiple structural parts from a plurality of pre-set watermark embedding algorithms.
[0082] For different types of carriers, multiple watermark embedding algorithms can be pre-set, and each embedding algorithm does not overlap or affect each other. For example, for document types, watermarks can be embedded by modifying the document's word spacing, line spacing, or by modifying the document structure, document content semantics, and other methods; for images, audio, video, and other types, watermarks can be embedded in the time domain, transform domain, compression domain, and other methods. Different embedding methods have different security performance in different scenarios and will have different impacts on the quality of the carrier. For example, for document carriers, modifying the word spacing and line spacing will affect the user's visual perception; for image and video carriers, using different methods to embed watermarks will cause changes in pixels, resulting in a decrease in objective quality PSNR and subjective quality indicators; for audio carriers, using different methods to embed watermarks will also cause changes in the audio segment, resulting in a decrease in objective quality PESQ and subjective quality MOS indicators.
[0083] For the carrier to be watermarked, the carrier's data structure is first analyzed and processed before watermark embedding. By analyzing and judging the carrier's data structure, the security factor weight of each watermark embedding algorithm can be adaptively determined. For example, for document carriers, the changes in the semantic meaning of the document content before and after watermark embedding, the changes in the format encoding of the document content, and the changes in the binary structure of the document can be compared. If the watermark embedding algorithm causes excessive changes to the carrier, the weight of the watermark embedding algorithm will be relatively low. For image, video, and audio carriers, subjective presentation quality assessment and data security assessment can be performed separately. In one feasible approach, the presentation quality assessment can use a pre-trained presentation quality assessment model, and the data security assessment can use a pre-trained data security assessment model. The presentation quality assessment model, based on the characteristics of the human visual system (HVS) and the human auditory system (HAS), identifies areas of the carrier that are difficult for humans to perceive, such as complex textures in images and videos and low-frequency signals in audio. Different watermark embedding algorithms will have varying degrees of impact on the visual or auditory quality of these areas. The data security assessment model, which can be a steganalysis model such as an ensemble classifier or a deep learning network model such as SRNet, outputs security factors for different watermark embedding algorithms applied to the carrier. After obtaining the subjective presentation quality and security factors of different watermark embedding algorithms for the carrier, the top N watermark embedding algorithms with the highest subjective presentation quality and security factors are selected for watermark embedding. N is generally determined based on the watermark's security level, embedding capacity, and robustness requirements. Higher security levels, larger embedding capacity, and more stringent robustness requirements lead to a larger N. N can be selected from a range greater than 1 and less than or equal to the number of structural components in the carrier, with two values generally being acceptable. The more watermark embedding algorithms there are, the more specific embedding methods available, effectively ensuring the diversity and security of watermark embedding algorithms.
[0084] Step S404: Based on the multiple structural parts of the carrier, generate and embed a tamper-proof watermark into the carrier.
[0085] After determining the TopN weighted watermark embedding algorithms, for the structural components and their content information that need to be embedded, information such as the downloader ID, download time, carrier content, carrier modification time, and carrier propagation chain can be used as usable watermark information. Optionally, an encoder can be used to encode the watermark information and, based on the encoded watermark information, output a coding field carrying the corresponding watermark embedding algorithm. For example, the coded field output is "{(100…0)(011…0)(001…0)…(000…1)}," where the digits before the ellipsis indicate the watermark embedding algorithm identifier (in this example, 3 bits are shown; in actual applications, this can be set based on the number of watermark embedding algorithms), and the digits after the ellipsis indicate the encoding of the content information. Each bracket corresponds to a structural component of the carrier. Based on this, it can be seen from the above coded field that the Top1 watermark embedding algorithm embeds a watermark of the downloader ID, the Top2 watermark embedding algorithm embeds a combined watermark of the download time and carrier content, the Top3 watermark embedding algorithm embeds a watermark of the carrier content, and the TopN watermark embedding algorithm embeds a watermark of the carrier content modification time. The length of the encoding field depends on the type of content information M and the number of watermark embedding algorithms N, with the encoding field length being M*N. The type of content information can include the downloader's ID, download time, the carrier's transmission link, the carrier's structural content, the carrier's copyright information, and so on. Regarding the watermark embedding algorithm, for document-type carriers, the watermark embedding algorithm can modify the document content without changing its semantic meaning, modify the format encoding of the document content, or modify the document's binary structure. For image, audio, or video-type carriers, the watermark embedding algorithm can directly modify the carrier's structure in the spatial domain or in the transform domain.
[0086] After embedding the watermark into each structural part of the carrier, a watermark-embedded carrier, namely the watermark carrier, is generated.
[0087] Step S406: extracting the watermark from the carrier embedded with the watermark.
[0088] Different watermark extraction algorithms do not interfere with each other for watermark carriers. In the process of watermark extraction, you can use exhaustive search to try all watermark extraction algorithms, but this may increase the extra time overhead; you can also detect the coding field of each structural part of the watermark carrier to determine the watermark embedding algorithm used by the carrier, and then use the corresponding watermark extraction algorithm to extract the watermark.
[0089] Different watermarks extracted from the carrier can verify each other, and the specific content of the carrier can be used to determine whether the carrier or watermark has been tampered with. For example, if an attacker tampers with the specific content of a certain structural part of the carrier, the tampered specific content will be inconsistent with the specific content of the carrier after the watermark is extracted and removed from the structural part, and the extraction end will show that the carrier content has been tampered with; or, after malicious analysis, the attacker can locate the watermark embedding algorithm and replace Alice's watermark with Bob's watermark. By verifying other watermarks combined with the downloader ID or modifying the time, it can be determined whether the watermark has been tampered with, preventing the attacker from framing Bob as the leaker from Alice.
[0090] The above process is illustrated below with multiple examples.
[0091] Example 1:
[0092] Set the carrier to be embedded with the watermark as a document. The document formats include but are not limited to: doc, docx, xls, xlsx, ppt, pptx, etc.
[0093] The preset settings include multiple algorithms for embedding watermarks in documents, such as modifying the document content without changing its word meaning and semantics, modifying the format encoding of the document content, modifying the binary structure of the document, etc.
[0094] Perform data structure analysis on the document to obtain multiple structural parts. By presenting a quality assessment model and a data security assessment model, the coefficient weights of embedding watermarks using different watermark embedding algorithms are adaptively determined for each structural part, and a watermark embedding algorithm with TopN weights is selected for multiple structural parts.
[0095] Determine the watermark to be embedded, and use an encoder to generate encoding fields corresponding to different structural parts and carrying watermark embedding algorithms. Different watermark embedding algorithms will embed different watermarks.
[0096] Obtain the watermark document after embedding the watermark, use different watermark extraction algorithms corresponding to the watermark embedding algorithm to extract the watermark and / or content information of each structural part, and compare and verify the watermark and / or content information to confirm whether the document content and the watermark content have been tampered with.
[0097] Example 2:
[0098] Set the carrier to be embedded with the watermark to an image. The image formats include but are not limited to: jpg, png, tiff, webp, bmp, etc.
[0099] A variety of algorithms are pre-set for embedding watermarks in images, such as modifying image pixels in the spatial domain or transforming the image to the transform domain through DWT, DCT, DFT, etc., and then embedding watermarks by modifying the coefficients in the transform domain.
[0100] Perform data structure analysis on the image to obtain multiple structural parts. By presenting a quality assessment model and a data security assessment model, the coefficient weights of embedding watermarks using different watermark embedding algorithms are adaptively determined for each structural part, and a watermark embedding algorithm with TopN weights is selected for multiple structural parts.
[0101] Determine the watermark to be embedded, and use an encoder to generate encoding fields corresponding to different structural parts and carrying watermark embedding algorithms. Different watermark embedding algorithms will embed different watermarks.
[0102] Obtain the watermark image after embedding the watermark, use different watermark extraction algorithms corresponding to the watermark embedding algorithm to extract the watermark and / or content information of each structural part, and confirm whether the document content and the watermark content have been tampered with by comparing and verifying the watermark and / or content information.
[0103] Example 3:
[0104] Set the carrier to be embedded with watermark as video. Video formats include but are not limited to mp4, avi, ts, mov, flv, webm, etc.
[0105] A variety of algorithms are pre-set for embedding watermarks in videos, such as modifying the pixels of video frames in the spatial domain or transforming the video frames to the transform domain through DWT, DCT, DFT, etc., and then embedding watermarks by modifying the coefficients in the transform domain.
[0106] The data structure of the video is analyzed to obtain multiple structural parts. By presenting a quality assessment model and a data security assessment model, the coefficient weights of the watermark embedded in each structural part are adaptively determined using different watermark embedding algorithms, and the watermark embedding algorithm with TopN weights is selected for multiple structural parts.
[0107] Determine the watermark to be embedded, and use an encoder to generate encoding fields corresponding to different structural parts and carrying watermark embedding algorithms. Different watermark embedding algorithms will embed different watermarks.
[0108] Obtain the watermarked video after embedding the watermark, use different watermark extraction algorithms corresponding to the watermark embedding algorithm to extract the watermark and / or content information of each structural part, and compare and verify the watermark and / or content information to confirm whether the document content and the watermark content have been tampered with.
[0109] Example 4:
[0110] Set the carrier to be embedded with watermark to audio, and the audio format includes but is not limited to wav, mp3, aac, ogg, etc.
[0111] A variety of algorithms for embedding watermarks in audio are pre-set, such as modifying audio data in the time domain or transforming audio data to the transform domain through DWT, DCT, DFT, etc., and then embedding watermarks by modifying the coefficients in the transform domain.
[0112] Perform data structure analysis on the audio to obtain multiple structural parts. By presenting a quality assessment model and a data security assessment model, the coefficient weights of embedding watermarks using different watermark embedding algorithms are adaptively determined for each structural part, and a watermark embedding algorithm with TopN weights is selected for multiple structural parts.
[0113] Determine the watermark to be embedded, and use an encoder to generate encoding fields corresponding to different structural parts and carrying watermark embedding algorithms. Different watermark embedding algorithms will embed different watermarks.
[0114] Obtain the watermarked audio after embedding the watermark, use different watermark extraction algorithms corresponding to the watermark embedding algorithm to extract the watermark and / or content information of each structural part, and compare and verify the watermark and / or content information to confirm whether the document content and the watermark content have been tampered with.
[0115] Through this embodiment, on the one hand, through the pre-set multiple watermark embedding algorithms, a variety of watermark embedding algorithm combinations can be generated for the carrier, so that the watermark embedding is more secure and the cost of malicious analysis by attackers can be increased; on the other hand, when the combined structural parts are used, the content information of each structural part is strongly correlated through combined coding and separate coding, and the downloader ID, download time, carrier content, carrier modification time and other content information are bound to the carrier object and are inseparable. In this way, it is possible to effectively identify the attacker's tampering with the carrier content and even the internal watermark.
[0116] Example 4
[0117] Reference Figure 5 , shows a structural diagram of an electronic device according to the fourth embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.
[0118] like Figure 5 As shown, the electronic device may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .
[0119] in:
[0120] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .
[0121] The communication interface 504 is used to communicate with other electronic devices or servers.
[0122] The processor 502 is used to execute the program 510, and specifically can execute the relevant steps in the above-mentioned data security processing method embodiment.
[0123] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0124] The processor 502 may be a CPU, an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs, or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0125] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0126] The program 510 can be specifically used to enable the processor 502 to perform the operations described in any embodiment of the data security processing method embodiment.
[0127] The specific implementation of each step in program 510 can refer to the corresponding description of the corresponding steps and units in the above-mentioned data security processing method embodiment, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, and will not be repeated here.
[0128] An embodiment of the present application also provides a computer program product, including computer instructions, which instruct a computing device to execute operations corresponding to any data security processing method in the above-mentioned multiple method embodiments.
[0129] It should be pointed out that, according to the needs of implementation, each component / step described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0130] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or can be implemented as software or computer code that can be stored in a recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or can be implemented as computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded via a network and stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the data security processing method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the data security processing method shown here, the execution of the code converts the general-purpose computer into a dedicated computer for executing the data security processing method shown here.
[0131] Those skilled in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of this application.
[0132] The above implementation methods are only used to illustrate the embodiments of the present application, and are not intended to limit the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also fall within the scope of the embodiments of the present application, and the scope of patent protection of the embodiments of the present application should be defined by the claims.
Claims
1. A data security processing method, comprising: Performing data structure analysis on a carrier to be embedded with a watermark, obtaining multiple structural parts where the watermark can be embedded. Each of the carriers includes multiple structural parts, and the types of the carriers include documents, videos, images, and audios. The structural parts of the document-type carrier include the character spacing and line spacing of the document text, the picture content or table content in the document. The structural parts of the video-type carrier include the information header of the video, the coefficients in the video frequency domain, or the pixel points in the spatial domain. The structural parts of the image-type carrier include the information header of the image, the coefficients in the frequency domain, or the pixel points in the spatial domain. The structural parts of the audio carrier include the information header of the audio, the coefficients in the audio frequency domain, or the coefficients in the time domain; Selecting corresponding multiple watermark embedding algorithms for the multiple structural parts from a variety of pre-set watermark embedding algorithms; Performing watermark embedding processing on the content information of each structural part according to the watermark embedding algorithm corresponding to each structural part in the multiple structural parts; Obtaining a carrier embedded with a watermark according to the watermark embedding processing result of each structural part; Among them, the performing watermark embedding processing on the content information of each structural part according to the watermark embedding algorithm corresponding to each structural part in the multiple structural parts includes: performing overlapping processing on the watermark information of at least some of the multiple structural parts according to a preset rule; using the watermark embedding algorithm corresponding to the structural part after overlapping processing and the watermark information after overlapping processing to perform watermark embedding processing on the structural part, and performing watermark embedding processing on the other structural parts according to the watermark embedding algorithm and watermark information corresponding to the other structural parts in the multiple structural parts.
2. The method according to claim 1, wherein The selecting corresponding multiple watermark embedding algorithms for the multiple structural parts from a variety of pre-set watermark embedding algorithms includes: For each structural part in the multiple structural parts, performing presentation quality evaluation and / or data security evaluation on the result after watermark embedding using each watermark embedding algorithm in the variety of watermark embedding algorithms; Selecting corresponding multiple watermark embedding algorithms for the multiple structural parts according to the result of the presentation quality evaluation and / or the result of the data security evaluation.
3. The method according to claim 2, wherein: The selecting corresponding multiple watermark embedding algorithms for the multiple structural parts according to the result of the presentation quality evaluation and / or the result of the data security evaluation includes: Determining the weight of each watermark embedding algorithm according to the result of the presentation quality evaluation and / or the result of the data security evaluation; Selecting N watermark embedding algorithms from the multiple watermark embedding algorithms according to the weight, and determining the selected watermark embedding algorithms as the watermark embedding algorithms to be used for the multiple structural parts; where 1 < N ≤ the number of the multiple structural parts.
4. The method according to any one of claims 1 to 3, wherein: The performing watermark embedding processing on the content information of each structural part according to the watermark embedding algorithm corresponding to each structural part in the multiple structural parts includes: Generating watermark coding information based on the watermark information to be embedded in each structural part and the corresponding watermark embedding algorithm; Based on the watermark embedding algorithm corresponding to each structural part and the watermark encoding information, watermark embedding processing is performed on each structural part.
5. The method according to any one of claims 1 to 3, wherein: The data structure analysis of the carrier to be embedded with the watermark is performed to obtain multiple structural parts that can be embedded with the watermark, including: Performing data structure analysis based on text content, data structure analysis based on spatial domain, data structure analysis based on frequency domain, or data structure analysis based on compression domain on the carrier to be embedded with the watermark; According to the result of the data structure analysis, a plurality of structural parts in the carrier in which watermarks can be embedded are obtained.
6. A data security processing method, comprising: Obtain a carrier embedded with a watermark and multiple structural parts included in each of the carriers, wherein the multiple structural parts are embedded with watermarks using multiple watermark embedding algorithms, and the multiple structural parts are obtained by performing data structure analysis on the carriers. The types of the carriers include documents, videos, images, and audio. The structural parts of the document-type carriers include word spacing, line spacing, and image content or table content in the document. The structural parts of the video-type carriers include a video information header, coefficients in the video frequency domain, or pixels in the spatial domain. The structural parts of the image-type carriers include an image information header, coefficients in the frequency domain, or pixels in the spatial domain. The structural parts of the audio carriers include an audio information header, coefficients in the audio frequency domain, or coefficients in the time domain. determining a watermark extraction algorithm to be used for each structural part; Extract watermarks from each structural part according to the watermark extraction algorithm corresponding to each structural part; determining the data security of the carrier according to the result of watermark extraction; Among them, there is a structural part with overlapping watermark information among the multiple structural parts, and there is information overlap between the overlapping watermark information and the watermark information of other structural parts; determining the data security of the carrier based on the result of watermark extraction includes: performing watermark extraction and watermark decoding on the structural part with overlapping watermark information and the other structural parts respectively; determining the data security of the carrier based on the consistency between the overlapping watermark information obtained after decoding and the watermark information of other structural parts.
7. The method according to claim 6, wherein: The step of determining a watermark extraction algorithm to be used for each structural part includes: Obtaining a watermark encoding field corresponding to each structural part, and determining a watermark embedding algorithm used by each structural part according to encoding information of the watermark embedding algorithm carried in the watermark encoding field; According to the watermark embedding algorithm, a corresponding watermark extraction algorithm is determined.
8. The method according to claim 6, wherein: The step of determining a watermark extraction algorithm to be used for each structural part includes: Obtain the structural features of each structural part after embedding the watermark; The structural features are compared with features of a plurality of pre-set watermark extraction algorithms, and the watermark extraction algorithm used for each structural part is determined according to the comparison results.
9. The method according to any one of claims 6 to 8, wherein: Determining the data security of the carrier according to the result of watermark extraction includes: Obtain the watermark information obtained after watermark extraction and watermark decoding of each structural part, and obtain the original watermark information of each structural part from the cloud; The data security of the carrier is determined based on the comparison result of the watermark information after watermark extraction and watermark decoding with the original watermark information.
10. The method according to any one of claims 6 to 8, wherein: Determining the data security of the carrier according to the result of watermark extraction includes: The watermark information of each structural part is obtained according to the result of watermark extraction; whether the watermark information of each structural part is the same is judged, and the data security of the carrier is determined according to the judgment result.
11. An electronic device comprising: A processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the data security processing method according to any one of claims 1 to 10.
12. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the data security processing method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Digital watermark embedding method, extraction method, device and digital watermark system
CN108665403A
Automated digital watermarking methods using neural networks
US20030095683A1