Power information digital watermark encryption authentication method, electronic device and computer medium
By obtaining the version information of the power information table, generating digital watermarks, embedding and extracting the watermarks, and performing encryption processing, the problems of low security and long embedding time during power information transmission are solved, and high security and traceability of power information are achieved sex.
Patent Information
- Application Number
- CN202310746463.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-25
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2043-06-25
AI Technical Summary
The prior art is difficult to determine whether it has been tampered with or forged during the transmission of power information, resulting in low security, long embedding of digital watermarks, and obvious and easy to detect and modify the background watermark mark, affecting the anti-counterfeiting and traceability.
By obtaining the version information of the power information table, digital watermarks are generated, embedded and extracted, and encrypted, ensuring the uniqueness and concealment of the watermarks, and improving the security and traceability of the power information.
It effectively improves the security and traceability of power information, ensures data integrity and concealment during transmission, and prevents tampering and forgery.
Smart Images

Figure CN117150455B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular to a method for encrypting and authenticating power information using digital watermarks, an electronic device, and a computer medium. Background Art
[0002] With the establishment of the authority system of the power index center, the expansion of data scale and the in-depth support of business scenarios, various professions have put forward higher requirements and challenges for the maximum application of data sharing, data security and authority. At present, in order to improve the security of power information files, the commonly used method is to improve the security of power information files by adding background watermarks or encryption.
[0003] However, when the above method is adopted, the following technical problems usually occur:
[0004] First, it is difficult to determine whether the power information has been tampered with or forged during transmission, resulting in low security of power information;
[0005] Second, embedding the digital watermark into the entire power information file results in a longer time for embedding the watermark;
[0006] Third, directly adding a background watermark will make the mark more obvious and easy to detect and modify, which is not conducive to anti-counterfeiting and traceability.
[0007] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0008] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0009] Some embodiments of the present disclosure propose a power information digital watermark encryption authentication method, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.
[0010] In the first aspect, some embodiments of the present disclosure provide a method for digital watermark encryption and authentication of electric power information, the method comprising: a watermark embedding terminal obtains version information of an electric power information table to be processed; the watermark embedding terminal generates a digital watermark according to the version information; the watermark embedding terminal embeds the digital watermark into the electric power information table to be processed to obtain an embedded watermark electric power information table, and sends the embedded watermark electric power information table and the digital watermark to an associated watermark parsing terminal; the watermark parsing terminal performs watermark embedding position parsing on the embedded watermark electric power information table in response to receiving the embedded watermark electric power information table and the digital watermark to obtain the watermark embedding position; the watermark parsing terminal performs watermark extraction processing on the embedded watermark electric power information table according to the watermark embedding position to obtain an extracted watermark; the watermark parsing terminal performs encryption processing on the embedded watermark electric power information table in response to determining that the extracted watermark is consistent with the digital watermark to generate an encrypted embedded watermark electric power information table, and stores the encrypted embedded watermark electric power information table in a local database.
[0011] In a second aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.
[0012] In a third aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any implementation manner of the first aspect is implemented.
[0013] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the digital watermark encryption and authentication method of power information of some embodiments of the present disclosure, the security and traceability of power information are improved. Specifically, the reason for the low security of power information is that it is difficult to determine whether the power information has been tampered with or forged during the transmission process, resulting in low security of power information. Based on this, in some embodiments of the present disclosure, the digital watermark encryption and authentication method of power information, first, the watermark embedding terminal obtains the version information of the power information table to be processed. Secondly, the watermark embedding terminal generates a digital watermark according to the version information. Thus, the digital watermark can be generated using the version information unique to the power information table, ensuring the uniqueness of the digital watermark. Then, the watermark embedding terminal embeds the digital watermark into the power information table to be processed, obtains the embedded watermark power information table, and sends the embedded watermark power information table and the digital watermark to the associated watermark parsing terminal. Thus, the embedding of the digital watermark can be completed, and the traceability of the power information is improved. Afterwards, the watermark parsing terminal, in response to receiving the watermark-embedded power information table and the digital watermark, performs watermark embedding position parsing on the watermark-embedded power information table to obtain the watermark embedding position. Then, the watermark parsing terminal performs watermark extraction processing on the watermark-embedded power information table according to the watermark embedding position to obtain the extracted watermark. Thus, data support is provided for determining whether the power information table has been tampered with during transmission. Finally, in response to determining that the extracted watermark is consistent with the digital watermark, the watermark parsing terminal encrypts the watermark-embedded power information table to generate an encrypted watermark-embedded power information table, and stores the encrypted watermark-embedded power information table in a local database. Thus, the security and traceability of power information are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0015] Figure 1 is a flowchart of some embodiments of the power information digital watermark encryption authentication method according to the present disclosure;
[0016] Figure 2 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0018] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0019] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0020] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0021] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0022] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0023] Figure 1 The process 100 of some embodiments of the power information digital watermark encryption authentication method according to the present disclosure is shown. The power information digital watermark encryption authentication method comprises the following steps:
[0024] Step 101: The watermark embedding terminal obtains version information of the power information table to be processed.
[0025] In some embodiments, the watermark embedding terminal can obtain the version information of the pending power information table from the power terminal device through a wired connection or a wireless connection. Among them, the watermark embedding terminal can be a server for watermark embedding. The pending power information table can refer to the power information table to be added with a digital watermark, and can include various power indicators. The version information can indicate the copyright information corresponding to the above-mentioned pending power information table, which can include owner information, date, copyright statement, etc.
[0026] Optionally, the above-mentioned power information table to be processed is obtained through the following steps:
[0027] The first step is to modify the field value of each cell in the column cell whose field name meets the modification condition in the power information table to a field value of a numeric type. The modification condition is: the type of the field name is a non-numeric type. The field value of each cell in the column cell whose field name meets the modification condition in the power information table can be modified to a field value of a preset numeric type. For example, the preset field value of a numeric type can be "2".
[0028] In the second step, for the cell sequence corresponding to each field name of the modified power information table, based on the cell sequence, a feature value corresponding to the cell sequence is generated to obtain a feature value group.
[0029] In practice, the second step may include the following sub-steps:
[0030] In the first sub-step, for each cell in the above cell sequence, the following processing steps are performed:
[0031] 1. Determine the value included in the cell as the first variable value. The watermark embedding terminal may determine the value "2" included in the cell as the first variable value (the first variable value may be represented by Y).
[0032] 2. Determine the numerical value included in each candidate cell corresponding to the above-mentioned cell in the above-mentioned power information table as the second variable value to obtain a second variable value group, wherein each candidate cell corresponding to the above-mentioned cell is a cell in the same row as the above-mentioned cell in the above-mentioned power information table. Here, each candidate cell corresponding to the above-mentioned cell may refer to: other cells in the same row as the above-mentioned cell in the power information table. For example, the number of other cells in the same row as the above-mentioned cell in the power information table may be 3. Among them, the numerical value "2" included in the first cell can be determined as the second variable value (the first second variable value can be represented by X1). The numerical value "1" included in the second cell can be determined as the second variable value (the second second variable value can be represented by X2). The numerical value "3" included in the third cell can be determined as the second variable value (the third second variable value can be represented by X2, and so on). Thus, the second variable value group "3, 2, 1" is obtained.
[0033] 3. According to the first variable value and the second variable value group, a linear model is constructed, wherein the linear model includes a plurality of parameters to be measured. In practice, the watermark embedding terminal can construct a linear model using the first variable value Y and the second variable value group "X1, X2, X3", that is, .in, , , , All of them can be parameters to be measured. Can be an error number (for example, 0.1).
[0034] 4. Perform linear regression processing on the linear model to generate multiple known parameters, wherein the known parameters in the multiple known parameters correspond to the parameters to be measured in the multiple parameters to be measured. The watermark embedding terminal can perform linear regression processing on the linear model to generate multiple known parameters. Here, the actual parameters (known parameters) of each parameter to be measured can be determined by linear regression.
[0035] 5. Based on the above linear model, determine the complex correlation coefficient between the above first variable value and the above second variable value group. In practice, the above execution subject can perform fitting processing on the first variable value and the above second variable value group to obtain a fitted linear model. Then, the complex correlation coefficient between the above first variable value and the above second variable value group is determined by the calculation formula of the complex correlation coefficient. For example, the first variable value "Y" is fitted with the above second variable value group "X1, X2, X3" to obtain the fitted linear model " " ". The multiple correlation coefficient can be used to determine the relationship between "Y" and " " is the simple correlation coefficient of "Y" and "X1, X2, X3".
[0036] 6. In response to the square value of the above-mentioned complex correlation coefficient being greater than or equal to the preset coefficient, a characteristic coefficient is generated based on the above-mentioned multiple known parameters. The value range of the preset coefficient may be [0.6, 1]. For example, the preset coefficient may be "0.6". First, each of the above-mentioned multiple known parameters is normalized to generate a normalized known parameter, and a normalized known parameter group is obtained. Secondly, the absolute value of each normalized known parameter in the above-mentioned normalized known parameter group is determined as the target known parameter to obtain the target known parameter group. Then, based on the target value and the above-mentioned target known parameter group, an initial eigenvalue group is generated. Here, the target value may be 1. In practice, the difference between the above-mentioned target value and each target known parameter in the above-mentioned target known parameter group may be determined as the initial eigenvalue to obtain the initial eigenvalue group. Finally, the average value of each initial eigenvalue included in the above-mentioned initial eigenvalue group is determined as the characteristic coefficient.
[0037] The second sub-step is to determine the sum of the generated characteristic coefficients as the characteristic value corresponding to the above cell sequence.
[0038] The third step is to determine the target field name based on the above eigenvalue group. First, the eigenvalue that meets the target condition in the above eigenvalue group is determined as the target eigenvalue. The above target condition is: the candidate eigenvalue with the largest value in the above eigenvalue group, and the type of the field name corresponding to the eigenvalue with the largest value is a numerical type. Then, the field name of the cell sequence corresponding to the above target eigenvalue is determined as the target field name.
[0039] The fourth step is to mark the cell sequence corresponding to the target field name in the power information table as the cell sequence to be embedded with the watermark, so as to update the power information table. In practice, the cell sequence corresponding to the field name in the power information table and the target field name can be marked as the cell sequence to be embedded with the watermark, so as to update the power information table. Here, the cell sequence can be marked with a label to be embedded with the watermark, so as to update the power information table.
[0040] The fifth step is to determine the updated power information table as the power information table to be processed.
[0041] The above-mentioned related contents, as an inventive point of the embodiment of the present disclosure, solve the technical problem 2 mentioned in the background technology, "resulting in a long time for embedding watermarks". The factors that lead to a long time for embedding watermarks are often as follows: embedding digital watermarks in the entire power information file. If the above-mentioned factors are solved, the effect of shortening the watermark embedding time can be achieved. In order to achieve this effect, first, the field value of each cell in the column cell whose field name meets the modification condition in the power information table is modified to a field value of a numerical type. Among them, the above-mentioned modification condition is: the type of the field name is a non-numerical type. Thereby, it is convenient to subsequently determine the correlation between the numerical value in each column cell in the power information table and the numerical value in other column cells, so as to select the column cell with a low correlation with the numerical value in other column cells as the column cell to be embedded with the watermark. Also, because only the column cells with a low correlation with other column cells need to be embedded with watermarks, the time for embedding watermarks is reduced. At the same time, because the correlation degree of the numerical value in the column cell with a low correlation with other column cells is low, the integrity of the power information table after the watermark is embedded is guaranteed. Secondly, for the cell sequence corresponding to each field name of the modified power information table, based on the above cell sequence, the characteristic value corresponding to the above cell sequence is generated to obtain a characteristic value group. Thus, the degree of association between each cell sequence and other cell sequences can be determined (characteristic value, the larger the characteristic value, the lower the degree of association), so as to facilitate the subsequent selection of the cell sequence with the smallest degree of association with other cell sequences. Next, based on the above characteristic value group, the target field name is determined. Thus, it can be determined that the degree of association with other cell sequences is the smallest, and the type of the corresponding field name is a numeric type cell sequence. Then, the cell sequence corresponding to the above target field name in the above power information table is marked as a cell sequence to be embedded with a watermark, so as to update the above power information table. Finally, the updated power information table is determined as a power information table to be processed. Thus, the cell sequence in the power information table to be processed that can be embedded with a digital watermark can be marked, thereby avoiding the embedding of a digital watermark in the entire information table and reducing the time for embedding a watermark.
[0042] Step 102: the watermark embedding terminal generates a digital watermark according to the version information.
[0043] In some embodiments, the watermark embedding terminal may generate a digital watermark according to the version information.
[0044] In practice, the above execution entity can generate a digital watermark by following the steps below:
[0045] The first step is to perform binary encoding on the above version information to generate a binary value group.
[0046] In the second step, the above binary value combinations are combined into digital watermarks.
[0047] Step 103: the watermark embedding terminal embeds the digital watermark into the to-be-processed power information table to obtain a watermark-embedded power information table, and sends the watermark-embedded power information table and the digital watermark to an associated watermark parsing terminal.
[0048] In some embodiments, the watermark embedding terminal embeds the digital watermark into the power information table to be processed to obtain the embedded watermark power information table, and sends the embedded watermark power information table and the digital watermark to the associated watermark parsing terminal. The watermark parsing terminal may refer to a client. For example, the execution subject randomly embeds the digital watermark into a certain position in the power information table to be processed to obtain the embedded watermark power information table.
[0049] In practice, the watermark embedding terminal can embed the digital watermark into the to-be-processed power information table through the following steps to obtain the embedded watermark power information table:
[0050] The first step is to convert the above-mentioned power information table to be processed into a power information table image. For example, the power information table to be processed can be directly printed into an electronic image.
[0051] The second step is to convert the above power information table image into a data matrix. The above power information table image can be converted into a 0-255 data matrix.
[0052] The third step is to convert the digital watermark into standard code information. The standard code information can represent ASCII code information.
[0053] The fourth step is to convert the above standard code information into binary information, that is, to perform binary conversion on each character included in the above standard code information to obtain binary information.
[0054] The fifth step is to determine the embedding position in the above data matrix.
[0055] In practice, the fifth step may include the following sub-steps:
[0056] The first sub-step is to determine the position of the target field name in the power information table to be processed.
[0057] The second sub-step is to determine the corresponding position of the above position in the above data matrix as the embedding position.
[0058] The sixth step is to embed the above binary information into the embedding position of the above data matrix to obtain a watermark embedded data matrix.
[0059] The seventh step is to convert the watermark embedded data matrix into a watermark embedded power information table image as an embedded watermark power information table.
[0060] The above-mentioned related content, as an inventive point of an embodiment of the present disclosure, solves the technical problem three mentioned in the background technology, "not conducive to anti-counterfeiting and traceability". Factors that are not conducive to anti-counterfeiting and traceability are often as follows: directly adding a background watermark, the mark is more obvious, and it is easy to be detected and modified. If the above factors are solved, the effect of anti-counterfeiting and traceability can be achieved. In order to achieve this effect, first, the above-mentioned power information table to be processed is converted into a power information table picture. Secondly, the above-mentioned power information table picture is converted into a data matrix. In this way, it is convenient to reduce the change to the structure of the information itself while adding a digital watermark, and improve the concealment of the digital watermark. Then, the above-mentioned digital watermark is converted into standard code information; the above-mentioned standard code information is converted into binary information. In this way, it is convenient to embed the digital watermark into the data matrix. Then, determine the embedding position in the above-mentioned data matrix; then, embed the above-mentioned binary information into the embedding position of the above-mentioned data matrix to obtain a watermark embedded data matrix. In this way, the digital watermark can be embedded in the specified position. Finally, the above-mentioned watermark embedded data matrix is converted into a watermark embedded power information table picture as an embedded watermark power information table. In this way, a digital watermark can be added covertly, which not only prevents the watermark from being detected and modified, but also facilitates anti-counterfeiting and traceability.
[0061] Step 104: in response to receiving the watermark-embedded power information table and the digital watermark, the watermark parsing terminal parses the watermark-embedded power information table to obtain the watermark-embedded position.
[0062] In some embodiments, the watermark parsing terminal may parse the watermark embedding position of the watermark embedding power information table in response to receiving the watermark embedding power information table and the digital watermark, and obtain the watermark embedding position. In practice, the watermark parsing terminal may read the length, width, separation channel, binary data length, and fixed binary position of the watermark embedding power information table for integrated analysis, thereby parsing the position of the embedded digital watermark.
[0063] Step 105: the watermark analysis terminal performs watermark extraction processing on the watermark-embedded power information table according to the watermark embedding position to obtain an extracted watermark.
[0064] In some embodiments, the watermark parsing terminal may perform watermark extraction processing on the watermark-embedded power information table according to the watermark embedding position to obtain an extracted watermark.
[0065] In practice, the watermark parsing terminal can perform watermark extraction processing on the watermark-embedded power information table to obtain the extracted watermark by the following steps:
[0066] The first step is to determine the watermark extraction algorithm corresponding to the watermark embedding position. That is, a different watermark extraction algorithm is set for each watermark embedding position. For example, the watermark extraction algorithm can be the LSB least significant bit algorithm.
[0067] The second step is to extract the watermark information of the watermarked power information table according to the watermark extraction algorithm. The hidden information is extracted according to the character characteristics and a fixed position information of 8 or 16 bits in length of the binary coded information. For example, the watermark extraction algorithm can be used to extract the watermark information of the watermark embedding position in the watermarked power information table.
[0068] The third step is to convert the watermark information into standard code watermark information. The standard code watermark information may refer to ASCII code information.
[0069] The fourth step is to convert the above standard code watermark information into an extracted watermark.
[0070] Step 106, in response to determining that the extracted watermark is consistent with the digital watermark, the watermark parsing terminal encrypts the embedded watermark power information table to generate an encrypted embedded watermark power information table, and stores the encrypted embedded watermark power information table in a local database.
[0071] In some embodiments, the watermark parsing terminal may, in response to determining that the extracted watermark is consistent with the digital watermark, encrypt the embedded watermark power information table to generate an encrypted embedded watermark power information table, and store the encrypted embedded watermark power information table in a local database. That is, in response to determining that the extracted watermark is the same as the digital watermark, encrypt the embedded watermark power information table to generate an encrypted embedded watermark power information table. Here, the encryption method may be encryption using an asymmetric encryption algorithm.
[0072] The above-mentioned related content, as an inventive point of an embodiment of the present disclosure, solves the second technical problem mentioned in the background technology, "leading to uneven distribution of network resources". The factors that lead to uneven distribution of network resources are often as follows: using CNI plug-ins to implement the network configuration of power equipment nodes, it is difficult to adjust the network connection relationship between each power equipment node. If the above factors are solved, the effect of evenly scheduling network resources can be achieved. In order to achieve this effect, first, in response to receiving a network connection adjustment instruction for the above-mentioned power equipment node information set, the above-mentioned each network connection mode information and network connection adjustment information are obtained. Thereby, it is convenient to adjust the network connection between each power equipment node. Afterwards, the network connection mode information corresponding to the above-mentioned network connection adjustment information in the above-mentioned each network connection mode information is adjusted to generate a first adjusted network connection mode information, and a first adjusted network connection mode information set is obtained. Finally, according to the above-mentioned first adjusted network connection mode information set, the power equipment node network adjustment operation is performed. Thus, the network connection between each power equipment node can be adjusted in real time. Thus, network resources can be evenly scheduled.
[0073] Reference below Figure 2 , which shows a schematic diagram of the structure of an electronic device 200 (such as a watermark embedding terminal and / or a watermark parsing terminal) suitable for implementing some embodiments of the present disclosure. The electronic devices in some embodiments of the present disclosure may include but are not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 2 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0074] like Figure 2 As shown, the electronic device 200 may include a processing device 201 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 202 or a program loaded from a storage device 208 to a random access memory (RAM) 203. In the RAM 203, various programs and data required for the operation of the electronic device 200 are also stored. The processing device 201, the ROM 202, and the RAM 203 are connected to each other via a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.
[0075] Typically, the following devices may be connected to the I / O interface 205: an input device 206 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 207 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 208 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 209. The communication device 209 may allow the electronic device 200 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 2 The electronic device 200 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 2 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0076] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 209, or installed from the storage device 208, or installed from the ROM 202. When the computer program is executed by the processing device 201, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0077] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0078] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0079] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: the watermark embedding terminal obtains the version information of the power information table to be processed; the watermark embedding terminal generates a digital watermark according to the version information; the watermark embedding terminal embeds the digital watermark into the power information table to be processed to obtain the embedded watermark power information table, and sends the embedded watermark power information table and the digital watermark to the associated watermark parsing terminal; the watermark parsing terminal performs watermark embedding position parsing on the embedded watermark power information table in response to receiving the embedded watermark power information table and the digital watermark to obtain the watermark embedding position; the watermark parsing terminal performs watermark extraction processing on the embedded watermark power information table according to the watermark embedding position to obtain the extracted watermark; the watermark parsing terminal performs encryption processing on the embedded watermark power information table in response to determining that the extracted watermark is consistent with the digital watermark to generate an encrypted embedded watermark power information table, and stores the encrypted embedded watermark power information table in a local database.
[0080] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0081] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0082] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0083] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.
Claims
1. A method for encrypting and authenticating electric power information with digital watermark, comprising: The watermark embedding terminal obtains version information of the power information table to be processed; The watermark embedding terminal generates a digital watermark according to the version information; The watermark embedding terminal embeds the digital watermark into the to-be-processed power information table to obtain an embedded watermark power information table, and sends the embedded watermark power information table and the digital watermark to an associated watermark parsing terminal; The watermark parsing terminal performs watermark embedding position parsing on the watermark embedding power information table in response to receiving the watermark embedding power information table and the digital watermark to obtain the watermark embedding position; The watermark parsing terminal performs watermark extraction processing on the embedded watermark power information table according to the watermark embedding position to obtain an extracted watermark; In response to determining that the extracted watermark is consistent with the digital watermark, the watermark parsing terminal encrypts the embedded watermark power information table to generate an encrypted embedded watermark power information table, and stores the encrypted embedded watermark power information table in a local database; The to-be-processed power information table is obtained by the following steps: Modify the field value of each cell in the column cell whose field name meets the modification condition in the power information table to a field value of a numerical type, wherein the modification condition is: the type of the field name is a non-numerical type; For a cell sequence corresponding to each field name of the modified power information table, based on the cell sequence, a feature value corresponding to the cell sequence is generated to obtain a feature value group; Based on the feature value group, determining a target field name; Marking a cell sequence corresponding to the target field name in the power information table as a cell sequence to be embedded with a watermark, so as to update the power information table; Determine the updated power information table as the power information table to be processed; Wherein, generating a feature value corresponding to the cell sequence based on the cell sequence includes: For each cell in the cell sequence, the following processing steps are performed: Determine the value included in the cell as a first variable value; Determine the numerical value included in each candidate cell corresponding to the cell in the power information table as a second variable value to obtain a second variable value group, wherein each candidate cell corresponding to the cell is a cell in the same row as the cell in the power information table; Constructing a linear model according to the first variable value and the second variable value group, wherein the linear model includes a plurality of parameters to be measured; Performing linear regression processing on the linear model to generate a plurality of known parameters, wherein a known parameter in the plurality of known parameters corresponds to a parameter to be measured in the plurality of parameters to be measured; Determining, based on the linear model, a complex correlation coefficient between the first variable value and the second variable value group; In response to the square value of the complex correlation coefficient being greater than or equal to a preset coefficient, generating a characteristic coefficient based on the plurality of known parameters; The sum of the generated characteristic coefficients is determined as the characteristic value corresponding to the cell sequence; wherein the embedding of the digital watermark into the power information table to be processed to obtain the embedded watermark power information table includes: Converting the to-be-processed power information table into a power information table image; Converting the power information table image into a data matrix; Converting the digital watermark into standard code information; Converting the standard code information into binary information; determining an embedding position in the data matrix; Embedding the binary information into the embedding position of the data matrix to obtain a watermark embedded data matrix; The watermark embedded data matrix is converted into a watermark embedded power information table image as an embedded watermark power information table.
2. The method according to claim 1, wherein: Generating a digital watermark according to the version information includes: Performing binary encoding processing on the version information to generate a binary value group; The binary value combination is combined into a digital watermark.
3. The method according to claim 1, wherein: The step of performing watermark extraction processing on the watermark-embedded power information table according to the watermark embedding position to obtain the extracted watermark comprises: Determine a watermark extraction algorithm corresponding to the watermark embedding position; Extracting the watermark information embedded in the watermark power information table according to the watermark extraction algorithm; Converting the watermark information into standard code watermark information; The standard code watermark information is converted into an extracted watermark.
4. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.
5. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Image digital watermark embedding and detecting system
CN102609890A
Text watermark embedding and extracting method and device, electronic equipment and storage medium
CN107330306A
An image copyright hidden digital watermark embedding method and device
CN109685710A
Method, device and system for verifying electronic document based on electronic seal
CN109829269A
Watermark embedding method and device, electronic equipment and readable storage medium
CN111680273A
