A triangular geometric encryption method and related devices for the secondary security protection system of a substation
By using triangular geometric encryption method in the secondary security system of the substation, the equilateral triangle area is constructed and the weighted total value is calculated, and the binary plaintext sequence is encrypted, which solves the data transmission security problem in the smart grid and improves the security and difficulty of data transmission.
Patent Information
- Application Number
- CN202310554447.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2043-05-16
AI Technical Summary
The data transmission security of substation secondary security systems in smart power grids faces the challenges of encryption technology. Especially when information openness increases, existing encryption methods have the risk that key streams are easily compromised, and it is difficult to effectively protect data privacy.
The triangular geometric encryption method is used to construct an equilateral triangle area, and the weighted total value is calculated using the distance value from the vertex to the center and the proportion of partition area, encrypting the binary plaintext sequence, eliminating the explicit key, expanding the ciphertext mapping space, reducing the aggregation of the triangle vertices, and increasing the degree of disorder.
It improves the data transmission security of the secondary security system of the substation, enhances the difficulty of illegal deciphering, avoids the potential risk of key stream being breached, and improves the security of data transmission.
Smart Images

Figure CN116566684B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power technology, and in particular, to a triangular geometric encryption method and related devices for a secondary security system of a substation. Background Art
[0002] With the in-depth application of information technology in the power field, the smart grid deeply integrates traditional power grids and technologies such as cloud computing and artificial intelligence. The intelligent control center can collect and analyze various information of a large number of users and make decisions to improve revenue.
[0003] The smart grid is the intelligentization of the traditional power grid. The smart grid realizes two-way information interaction through advanced sensing and measurement technologies, advanced equipment technologies, advanced control methods, and advanced decision support system technologies. However, with the increase in the openness of the smart grid, various information and privacy of users are facing security risks. The smart grid has characteristics such as complexity, strong coupling, and strong correlation. Under this background, it is of great practical significance to study the data security and privacy protection of users. Therefore, encryption technology in the data transmission process plays a crucial role in the development of the smart grid.
[0004] The secondary security system of a substation is an important guarantee for the security of key data transmission in the station. With the rapid development of smart substations, the data encryption technology of the secondary security system becomes more and more important. Summary of the Invention
[0005] The present application provides a triangular geometric encryption method and related devices for a secondary security system of a substation, which are used to improve the data transmission security of the secondary security system of the substation.
[0006] In view of this, in the first aspect of the present application, a triangular geometric encryption method for a secondary security system of a substation is provided. The method includes:
[0007] Obtain a group of binary plaintext sequences sent from a remote terminal unit to the secondary security system of the substation to be encrypted and arrange them in reverse order bit by bit to obtain two groups of binary plaintext sequences;
[0008] Based on each binary plaintext in the two groups of binary plaintext sequences, construct a triangular region, where the triangular region includes: an equilateral triangular region;
[0009] According to the distance values from each vertex to the center in the triangular region, determine the binary values of the three vertices, and partition the triangular region according to the binary values of each vertex, where each vertex corresponds to a partition;
[0010] Determine the weights of the corresponding vertex binary values according to the area ratios of the respective partitions, thereby calculating the weighted total value of the three binary vertices of the triangular region, and encrypt the binary plaintext sequence according to the weighted total value.
[0011] Optionally, constructing a triangular region based on each binary plaintext in two groups of binary plaintext sequences specifically includes:
[0012] Taking x i , x i-2 and x n-i+2 as vertices respectively to form a triangular region, where 3 ≤ i ≤ n, x i , x i-2 and x n-i+2 satisfy and can only satisfy one of the first condition and the second condition;
[0013] The first condition is that x i , x i-2 both belong to X, and x n-i+2 belongs to X′;
[0014] The second condition is that x i , x i-2 both belong to X′, and x n-i+2 belongs to X;
[0015] Among them, X = [x1, x2, x3,..., x n is a binary plaintext sequence, and X′ = [x n , x n-1 , x n-2 ,..., x1] is the sequence obtained by reversing the order of the binary plaintext sequence.
[0016] Optionally, partitioning the triangular region according to the binary values of the respective vertices specifically includes:
[0017] When the binary values of the three vertices are all 0 or 1, the area ratios of the three vertices a, b, and c corresponding to the A area, B area, and C area are respectively
[0018] When the binary values of the three vertices contain two 1s and one 0, the area ratios of the three vertices a, b, and c corresponding to the A area, B area, and C area are respectively
[0019] When the binary values of the three vertices contain two 0s and one 1, the area ratios of the three vertices a, b, and c corresponding to the A area, B area, and C area are respectively
[0020] Optionally, determine the weights of the corresponding vertex binary values according to the area proportion of each partition, so as to calculate the weighted total value of the three binary vertices of the triangular region, specifically including:
[0021] Based on the weighted total value calculation formula, calculate the weighted total value of the three binary vertices of the triangular region according to the area proportion of each partition;
[0022] Among them, the weighted total value calculation formula is:
[0023] m = D a * S A + D b * S B + D c * S C ;
[0024]
[0025] In the formula, m is the weighted total value, D a , D b , D c are respectively the binary values of the three binary vertices of the triangular region, S A , S B , S C are respectively the area proportions of the areas A, B, and C corresponding to the three vertices a, b, and c.
[0026] The second aspect of this application provides a triangular geometric encryption system for a substation secondary security system, and the device includes:
[0027] An acquisition unit, configured to acquire a group of binary plaintext sequences sent by a remote terminal to the substation secondary security system and arrange them in reverse order bit by bit to obtain two groups of binary plaintext sequences;
[0028] A construction unit, configured to construct a triangular region based on each binary plaintext in the two groups of binary plaintext sequences, where the triangular region includes: an equilateral triangular region;
[0029] A partitioning unit, configured to determine the binary values of the three vertices according to the distance values from each vertex in the triangular region to the center, and partition the triangular region according to the binary values of each vertex, where each vertex corresponds to a partition;
[0030] An encryption unit, configured to determine the weights of the corresponding vertex binary values according to the area proportion of each partition, so as to calculate the weighted total value of the three binary vertices of the triangular region, and encrypt the binary plaintext sequence according to the weighted total value.
[0031] Optionally, the construction unit is specifically configured to:
[0032] Taking x i , x i-2 and x n-i+2 as vertices respectively, a triangular region is formed, where 3 ≤ i ≤ n, and x i , x i-2 and x n-i+2 satisfy and can only satisfy one of the first condition and the second condition;
[0033] The first condition is: x i , x i-2 both belong to X, and x n-i+2 belongs to X′;
[0034] The second condition is: x i , x i-2 both belong to X′, and x n-i+2 belongs to X;
[0035] Among them, X = [x1, x2, x3,..., x n is a binary plaintext sequence, and X′ = [x n , x n-1 , x n-2 ,..., x1] is the sequence obtained by reversing the order of the binary plaintext sequence.
[0036] Optionally, the partitioning unit is specifically configured to:
[0037] Determine the binary values of the three vertices according to the distance values from the vertices in the triangular region to the center;
[0038] When the binary values of the three vertices are all 0 or 1, the area ratios of the three vertices a, b, and c corresponding to regions A, B, and C are respectively
[0039] When the binary values of the three vertices contain two 1s and one 0, the area ratios of the three vertices a, b, and c corresponding to regions A, B, and C are respectively
[0040] When the binary values of the three vertices contain two 0s and one 1, the area ratios of the three vertices a, b, and c corresponding to regions A, B, and C are respectively
[0041] Optionally, the encryption unit is specifically configured to:
[0042] Based on the weighted total value calculation formula, calculate the weighted total value of the three binary vertices of the triangular region according to the area ratios of each partition, and encrypt the binary plaintext sequence according to the weighted total value;
[0043] Among them, the calculation formula for the weighted total value is as follows:
[0044] m = D a *S A + D b *S B + D c *S C ;
[0045]
[0046] In the formula, m is the weighted total value, D a , D b , D c are respectively the binary values of the three binary vertices of the triangle region, and S A , S B , S C are respectively the area ratios of the three vertices a, b, and c corresponding to Area A, Area B, and Area C.
[0047] The third aspect of this application provides a triangular geometric encryption device for a substation secondary security system. The device includes a processor and a memory:
[0048] The memory is used to store program code and transmit the program code to the processor;
[0049] The processor is used to execute the steps of the triangular geometric encryption method of the substation secondary security system as described in the first aspect above according to the instructions in the program code.
[0050] The fourth aspect of this application provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the triangular geometric encryption method of the substation secondary security system as described in the first aspect above.
[0051] From the above technical solutions, it can be seen that this application has the following advantages:
[0052] This application provides a triangular geometric encryption method for a substation secondary security system, including: obtaining a group of binary plaintext sequences sent by a remote terminal unit to the substation secondary security system to be encrypted and arranging them in reverse order bit by bit to obtain two groups of binary plaintext sequences; based on each binary plaintext in the two groups of binary plaintext sequences, constructing a triangle region, where the triangle region includes: an equilateral triangle region; determining the binary values of the three vertices according to the distance values from the vertices in the triangle region to the center, partitioning the triangle region according to the binary values of the vertices, where each vertex corresponds to a partition; determining the weights of the binary values of the corresponding vertices according to the area ratios of the partitions, thereby calculating the weighted total value of the three binary vertices of the triangle region, and encrypting the binary plaintext sequences according to the weighted total value.
[0053] The triangular geometric encryption method of the secondary security protection system of the substation in this application. First, there is no explicit key in the encryption process. Instead, the plaintext itself is used for mutual operations to eliminate the potential risk of being broken by the key stream. And the designed triangular partition area is used as the vertex weight for operations, quantifying numbers into analog quantities, expanding the ciphertext mapping space, and increasing the difficulty of illegal deciphering. Further, the plaintext X and the reversed plaintext X' are designed to construct a triangular domain, which can effectively reduce the aggregation degree of the triangular vertices and increase the disorder degree of the ciphertext. Thus, the data transmission security of the secondary security protection system of the substation is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a schematic flowchart of a triangular geometric encryption method for a secondary security protection system of a substation provided in an embodiment of this application;
[0055] Figure 2 It is a schematic structural diagram of constructing a triangular region provided in an embodiment of this application;
[0056] Figure 3 It is a schematic structural diagram of partitioning a triangular region provided in an embodiment of this application Figure 1 ;
[0057] Figure 4 It is a schematic structural diagram of partitioning a triangular region provided in an embodiment of this application Figure 2 ;
[0058] Figure 5 It is a schematic structural diagram of partitioning a triangular region provided in an embodiment of this application Figure 3 ;
[0059] Figure 6 It is a schematic structural diagram of a triangular geometric encryption system for a secondary security protection system of a substation provided in an embodiment of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0060] In order to enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
[0061] Please refer to Figure 1 , a triangular geometric encryption method for a secondary security protection system of a substation provided in an embodiment of this application includes:
[0062] Step 101: Obtain a group of binary plaintext sequences sent from a remote unit to the secondary security protection system of a substation and arrange them in reverse order bit by bit to obtain two groups of binary plaintext sequences;
[0063] It should be noted that assume a group of binary plaintext sequences X = [x1, x2, x3,..., x n received by the secondary security protection system of the substation from the remote unit. First, copy it and arrange it in reverse order bit by bit to obtain a new sequence X' = [x n , x n-1 , x n-2 ,..., x1], thus obtaining two groups of binary plaintext sequences.
[0064] Step 102: Based on each binary plaintext in the two groups of binary plaintext sequences, construct a triangular region, where the triangular region includes: an equilateral triangular region;
[0065] It should be noted that as Figure 2 shown, construct a triangular domain. Respectively, take x i , x i-2 and x n-i+2 as vertices to form a triangular region. Where 3 ≤ i ≤ n, x i , x i-2 and x n-i+2 satisfy and can only satisfy one of the following two conditions:
[0066] ① x i , x i-2 belong to X at the same time, and x n-i+2 belongs to X';
[0067] ② x i , x i-2 belong to X' at the same time, and x n-i+2 belongs to X.
[0068] For the convenience of description and calculation, in this embodiment, let the triangle formed by x i , x i-2 and x n-i+2 be an equilateral triangle. As Figure 2 shown, n = 15 in the figure.
[0069] Step 103: According to the distance values from each vertex in the triangular region to the center, determine the binary values of the three vertices, and partition the triangular region according to the binary values of each vertex, where each vertex corresponds to a partition;
[0070] It should be noted that partition the triangular domain according to the situation of the three vertex values, and each vertex corresponds to a partition. Let the triangular domain be an equilateral triangle with an area S = 1. The partition method designed in this embodiment is as follows:
[0071] Case 1): Draw lines from each vertex to the center o of the triangle. When the binary values of the three vertices are balanced, i.e., all 0s or all 1s, the three vertices a, b, and c correspond to Area A, Area B, and Area C respectively. As Figure 3 shown, the area of each region is
[0072] Case 2): When the binary values of the three vertices are unbalanced. There are two situations:
[0073] ① The vertex values contain two 1s and one 0. At this time, the partitioning is as Figure 4 shown. Suppose the value of vertex a is 0, and b = c = 1, then ad = 1 / 2 * od. The area of each region is
[0074] ② The vertex values contain two 0s and one 1. At this time, the partitioning is as Figure 5 shown. Suppose the value of vertex a is 1, and b = c = 0. Points d and e are the midpoints of ob and oc respectively, and point f is the midpoint of de. The area of each region is
[0075] Step 104: Determine the weights of the corresponding vertex binary values according to the area ratios of each partition, thereby calculating the weighted total value of the three binary vertices in the triangular region, and encrypt the binary plaintext sequence according to the weighted total value.
[0076] It should be noted that taking the area ratio of each region as the weight of each vertex value, calculate the weighted total value m of the three binary vertices in this triangular domain, as the ciphertext operation basis for vertex D a (In this embodiment, a certain binary value that is the only one participating in the construction of this triangular domain in X or X’)
[0077] m = D a * S A + D b * S B + D c * S C
[0078]
[0079] Calculate the binary values of the vertices in each triangular domain respectively according to the above method, so as to obtain the ciphertext of X.
[0080] Note: In the above description, the first bit x1 and the last bit x15 of the plaintext do not participate in the vertex encryption operation of constructing the triangular domain. When encrypting the first and last bits, replace the first and last bits with adjacent bits to construct a triangular domain for vertex encryption operation. In this case, replace x1 with x2, and construct a triangular domain with x15 and x13 to encrypt x1, and replace x15 with x14, and construct a triangular domain with x1 and x3 to encrypt x15.
[0081] A triangular geometric encryption method for the secondary security protection system of a substation provided in this embodiment. Firstly, there is no explicit key in the encryption process. Instead, mutual operations are performed using the plaintext itself to eliminate the potential risk of being broken by the key stream. Moreover, the designed triangular partition area is used as the vertex weight for operations, quantifying the digital quantity into an analog quantity, expanding the ciphertext mapping space, and increasing the difficulty of illegal deciphering. Further, a triangular domain is constructed by designing the plaintext X and the reversed plaintext X', which can effectively reduce the aggregation degree of the triangular vertices and increase the disorder degree of the ciphertext. Thus, the data transmission security of the secondary security protection system of the substation is improved.
[0082] The above is a triangular geometric encryption method for the secondary security protection system of a substation provided in the embodiments of this application. The following is a triangular geometric encryption system for the secondary security protection system of a substation provided in the embodiments of this application.
[0083] Please refer to Figure 2 , a triangular geometric encryption system for the secondary security protection system of a substation provided in the embodiments of this application, includes:
[0084] An acquisition unit 201, configured to acquire a group of binary plaintext sequences sent by a remote terminal unit to the secondary security protection system of the substation and arrange them in reverse order bit by bit to obtain two groups of binary plaintext sequences;
[0085] A construction unit 202, configured to construct a triangular region based on each binary plaintext in the two groups of binary plaintext sequences, where the triangular region includes: an equilateral triangular region;
[0086] A partitioning unit 203, configured to determine the binary values of the three vertices according to the distance values from the vertices in the triangular region to the center, and partition the triangular region according to the binary values of the vertices, where each vertex corresponds to a partition;
[0087] An encryption unit 204, configured to determine the weights of the binary values of the corresponding vertices according to the area ratio of each partition, thereby calculating the weighted total value of the three binary vertices in the triangular region, and encrypting the binary plaintext sequence according to the weighted total value.
[0088] Further, an embodiment of this application also provides a triangular geometric encryption device for the secondary security protection system of a substation. The device includes a processor and a memory:
[0089] The memory is configured to store program codes and transmit the program codes to the processor;
[0090] The processor is configured to execute the steps of the triangular geometric encryption method for the secondary security protection system of the substation as described in the method embodiment above according to the instructions in the program codes.
[0091] Furthermore, the embodiments of the present application also provide a computer-readable storage medium, which is used to store program codes, and the program codes are used to execute the triangular geometric encryption method of the secondary security protection system of the substation described in the above method embodiments.
[0092] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the above-described systems and units can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.
[0093] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0094] It should be understood that in the present application, "at least one (item)" means one or more, and "multiple" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally means that the associated objects before and after are in an "or" relationship. "At least one (item) of the following" or a similar expression means any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0095] In several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms.
[0096] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0097] In addition, in each embodiment of this application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0098] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of this application. And the aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memories (English full name: Read-Only Memory, English abbreviation: ROM), random access memories (English full name: Random Access Memory, English abbreviation: RAM), magnetic disks, or optical discs and other various media that can store program codes.
[0099] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A triangular geometric encryption method for the secondary security protection system of a substation, characterized in that, Including: Obtain a set of binary plaintext sequences sent by a remote unit to the secondary security system of a substation to be encrypted, and arrange them in reverse order bit by bit to obtain two sets of binary plaintext sequences; Based on each binary plaintext in the two sets of binary plaintext sequences, construct a triangular region, where the triangular region includes: an equilateral triangular region; According to the distance values from each vertex to the center in the triangular region, determine the binary values of the three vertices, and partition the triangular region according to the binary values of each vertex, where each vertex corresponds to a partition; Determine the weights of the binary values of the corresponding vertices according to the area ratios of the partitions, thereby calculating the weighted total value of the three binary vertices of the triangular region, and encrypt the binary plaintext sequences according to the weighted total value; Among them, the constructing a triangular region based on each binary plaintext in the two sets of binary plaintext sequences is specifically: Taking and as vertices respectively, a triangular region is formed, where , is the number of sequences, and satisfy and can only satisfy one of the first condition and the second condition; The first condition is as follows: Belonging to the same , and belonging to ; The second condition is as follows: both belong to , and belongs to ; Among them, is a binary plaintext sequence, is the sequence obtained by reversing the order of the said binary plaintext sequence.
2. The triangular geometric encryption method of the secondary security protection system for a substation according to claim 1, wherein The partitioning the triangular region according to the binary values of each vertex specifically includes: When the binary values of all three vertices are 0 or 1, the area ratios of the three vertices a, b, and c corresponding to Area A, Area B, and Area C are respectively ; When the binary values of the three vertices contain two 1s and one 0, the area ratios of the three vertices a, b, and c corresponding to Area A, Area B, and Area C are respectively ; ; ; When the binary values of the three vertices contain two 0s and one 1, the area proportions of the three vertices a, b, and c corresponding to Area A, Area B, and Area C are respectively ; ; .
3. The triangular geometric encryption method of the secondary security system of the substation according to claim 2, characterized in that, The determining the weights of the binary values of the corresponding vertices according to the area ratios of the partitions, thereby calculating the weighted total value of the three binary vertices of the triangular region, and encrypting the binary plaintext sequences according to the weighted total value specifically includes: Based on the weighted total value calculation formula, calculate the weighted total value of the three binary vertices of the triangular region according to the area ratios of the partitions; Among them, the weighted total value calculation formula is: ; Based on the encryption formula, encrypt the binary plaintext sequences according to the weighted total value; Among them, the encryption formula is: ; Wherein, is the weighted total value, , , are respectively the binary values of the three binary vertices of the said triangular region, , , are respectively the area proportions of the three vertices a, b, c corresponding to regions A, B, and C, is the binary value of the encrypted binary vertex.
4. A triangular geometric encryption system for the secondary security protection system of a substation, characterized in that, Including: An obtaining unit, configured to obtain a set of binary plaintext sequences sent by a remote unit to the secondary security system of a substation to be encrypted, and arrange them in reverse order bit by bit to obtain two sets of binary plaintext sequences; A constructing unit, configured to construct a triangular region based on each binary plaintext in the two sets of binary plaintext sequences, where the triangular region includes: an equilateral triangular region; A partitioning unit, configured to determine the binary values of the three vertices according to the distance values from each vertex to the center in the triangular region, and partition the triangular region according to the binary values of each vertex, where each vertex corresponds to a partition; An encrypting unit, configured to determine the weights of the binary values of the corresponding vertices according to the area ratios of the partitions, thereby calculating the weighted total value of the three binary vertices of the triangular region, and encrypt the binary plaintext sequences according to the weighted total value; Among them, the constructing unit is specifically configured to: Taking and as vertices respectively, a triangular region is formed, where , is the number of sequences, and satisfy and can only satisfy one of the first condition and the second condition; The first condition is as follows: both belong to , and belongs to ; The second condition is: Belonging to the same , and belonging to ; Among them, is a binary plaintext sequence, is a sequence obtained by reversing the order of the said binary plaintext sequence.
5. The triangular geometric encryption system of the secondary security prevention system of a substation according to claim 4, wherein The partitioning unit is specifically configured to: Determine the binary values of the three vertices according to the distance values from each vertex to the center in the triangular region; When the binary values of all three vertices are 0 or 1, the area ratios of the three vertices a, b, and c corresponding to Area A, Area B, and Area C are respectively ; When the binary values of the three vertices contain two 1s and one 0, the area ratios of the three vertices a, b, and c corresponding to Area A, Area B, and Area C are respectively ; ; ; When the binary values of the three vertices contain two 0s and one 1, the area ratios of the three vertices a, b, and c corresponding to Area A, Area B, and Area C are respectively ; ; .
6. The triangular geometric encryption system of the substation secondary security protection system according to claim 4, characterized in that, The encrypting unit is specifically configured to: Based on the weighted total value calculation formula, calculate the weighted total value of the three binary vertices of the triangular region according to the area ratios of the partitions, and encrypt the binary plaintext sequences according to the weighted total value; Among them, the weighted total value calculation formula is: ; Based on the encryption formula, encrypt the binary plaintext sequences according to the weighted total value; Among them, the encryption formula is: ; Wherein, is the weighted total value, , , are the binary values of the three binary vertices of the said triangular region respectively, , , are the area ratios of the three vertices a, b, c corresponding to regions A, B, and C respectively, is the binary value of the encrypted binary vertex.
7. A triangular geometric encryption device for the secondary security protection system of a substation, characterized in that, The device includes a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the triangular geometric encryption method of the substation secondary security protection system according to any one of claims 1-3 based on the instructions in the program code.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program code, and the program code is used to execute the triangular geometric encryption method of the substation secondary security protection system according to any one of claims 1-3.
Citation Information
Patent Citations
Image encryption method for decryption area limitation using directed area and poker mapping
CN108174053A
Encrypted graph structure, encoding method and device, and recognition method and device
CN112862045A