A two-way cross real-time encryption method and related device for power communication system

Through the two-way cross-time real-time encryption method, the inter-crossing and self-crossing algorithms are used to generate ciphertexts in combination with forwarding time, forming a complex encryption mode, solving the security risks of data transmission in the smart grid and improving information security and privacy protection.

CN116566685BActive Publication Date: 2025-08-19GUANGDONG POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310554615.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-16
Publication Date
2025-08-19
Estimated Expiration
2043-05-16

AI Technical Summary

Technical Problem

The lack of encryption technology during data transmission in smart grids has led to security risks in user information security and privacy.

Method used

The two-way cross-time real-time encryption method is adopted to generate a ciphertext through the inter-intersection algorithm combined with forwarding time, and a self-intersection algorithm is used to generate a secondary ciphertext based on the total number of digits, forming a vertical and crisscrossing mesh four-way operation mode, and combining with real-time dynamic key encryption method, the encryption difficulty is improved.

Benefits of technology

It enhances the encryption effect of data transmission in power communication systems, improves information security and privacy protection, and increases the difficulty of cracking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116566685B_ABST
    Figure CN116566685B_ABST
Patent Text Reader

Abstract

The present application discloses a two-way cross real-time encryption method and related device for an electric power communication system, comprising: determining a binary plaintext to be encrypted in the electric power system and the corresponding forwarding time, wherein the binary plaintext includes: a telecontrol signal source forwarded by a telecontrol motor in a substation; encrypting the binary plaintext using a mutual cross algorithm in combination with the forwarding time to obtain a primary ciphertext; determining the total number of digits in the primary ciphertext, encrypting the primary ciphertext using a self-cross algorithm in combination with the total number of digits to obtain a secondary ciphertext. The present application adopts a two-way encryption method, wherein the second self-crossing is performed on the basis of the first mutual cross, and the entire encryption process forms a crisscrossing mesh four-way operation mode, which strengthens the encryption effect and increases the difficulty of cracking; adopts a real-time dynamic key encryption method, wherein the key includes the signal source generation time, so that the ciphertext of the same plaintext information at different times is different; thereby improving the encryption effect of data transmission in the electric power communication system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electric power technology, and in particular to a two-way cross-real-time encryption method and related devices for an electric power communication system. Background Art

[0002] With the in-depth application of information technology in the power sector, smart grids have deeply integrated traditional power grids with cloud computing, artificial intelligence and other technologies. Intelligent control centers can collect and analyze various information from massive users and make decisions to increase profits.

[0003] Smart grids are the intelligentization of traditional power grids. They enable bidirectional information exchange through advanced sensing and measurement technologies, advanced equipment, advanced control methods, and advanced decision support systems. However, with the increasing openness of smart grids, user information and privacy face security risks. Given the complex, tightly coupled, and highly correlated nature of smart grids, research on user data security and privacy protection is of great practical significance. Therefore, encryption technology in data transmission plays a crucial role in the development of smart grids. Summary of the Invention

[0004] The present application provides a bidirectional cross-real-time encryption method and related devices for an electric power communication system, which are used to improve the encryption effect of data transmission in the electric power communication system.

[0005] In view of this, a first aspect of the present application provides a bidirectional cross-real-time encryption method for a power communication system, the method comprising:

[0006] Determining binary plaintext to be encrypted and corresponding forwarding time in the power system, wherein the binary plaintext includes: a telecontrol signal source forwarded by a telecontrol machine in a substation;

[0007] Encrypting the binary plaintext using a mutual cross algorithm and combining the forwarding time to obtain a primary ciphertext;

[0008] The total number of digits in the primary ciphertext is determined, and the primary ciphertext is encrypted by combining the total number of digits with a self-crossover algorithm to obtain a secondary ciphertext.

[0009] Optionally, the adopting a mutual cross algorithm and combining the forwarding time to encrypt the binary plaintext to obtain a primary ciphertext specifically includes:

[0010] Encrypting the binary plaintext according to the forwarding time based on a one-time ciphertext encryption formula to obtain a one-time ciphertext;

[0011] The one-time ciphertext encryption formula is:

[0012]

[0013]

[0014] Where X1[i] and Y1[i] are the primary ciphertexts, and are the time for the binary plaintext groups X and Y to be forwarded by the remote motor in the substation, X=[x1,x2,x3,…,x n ] and Y=[y1,y2,y3,…,y n ].

[0015] Optionally, determining the total number of digits in the primary ciphertext and encrypting the primary ciphertext using a self-crossover algorithm in combination with the total number of digits to obtain the secondary ciphertext specifically includes:

[0016] Determining the total number of digits in the primary ciphertext, and generating a sequence of random positive integers based on the total number of digits to obtain a one-dimensional array;

[0017] Based on the one-dimensional array, the primary ciphertext is paired bit by bit, and a self-crossover operation is performed on the paired bits to obtain a secondary ciphertext.

[0018] Optionally, the secondary ciphertext generation formula is:

[0019]

[0020]

[0021] In the formula, X2[a] and X2[b] are a pair of secondary ciphertexts, X1[a] and X1[b] are a pair of primary ciphertexts, and are the times when the binary plaintext groups X and Y are forwarded by the remote motor in the substation.

[0022] A second aspect of the present application provides a bidirectional cross-real-time encryption system for a power communication system, the system comprising:

[0023] An acquisition unit is used to determine binary plaintext to be encrypted and a corresponding forwarding time in the power system, wherein the binary plaintext includes: a telecontrol signal source forwarded by a telecontrol machine in a substation;

[0024] A first encryption unit is configured to encrypt the binary plaintext using a cross-link algorithm in combination with the forwarding time to obtain a primary ciphertext;

[0025] The second encryption unit is used to determine the total number of digits of the primary ciphertext, and encrypt the primary ciphertext by combining the total number of digits with a self-cross algorithm to obtain a secondary ciphertext.

[0026] Optionally, the first encryption unit is specifically configured to:

[0027] Encrypting the binary plaintext according to the forwarding time based on a one-time ciphertext encryption formula to obtain a one-time ciphertext;

[0028] The one-time ciphertext encryption formula is:

[0029]

[0030]

[0031] Where X1[i] and Y1[i] are the primary ciphertexts, and are the time for the binary plaintext groups X and Y to be forwarded by the remote motor in the substation, X=[x1,x2,x3,…,x n ] and Y=[y1,y2,y3,…,y n ].

[0032] Optionally, the second encryption unit is specifically configured to:

[0033] Determining the total number of digits in the primary ciphertext, and generating a sequence of random positive integers based on the total number of digits to obtain a one-dimensional array;

[0034] Based on the one-dimensional array, the primary ciphertext is paired bit by bit, and a self-crossover operation is performed on the paired bits to obtain a secondary ciphertext.

[0035] Optionally, the secondary ciphertext generation formula is:

[0036]

[0037]

[0038] In the formula, X2[a] and X2[b] are a pair of secondary ciphertexts, X1[a] and X1[b] are a pair of primary ciphertexts, and are the times when the binary plaintext groups X and Y are forwarded by the remote motor in the substation.

[0039] A third aspect of the present application provides a bidirectional cross-connect real-time encryption device for a power communication system, the device comprising a processor and a memory:

[0040] The memory is used to store program code and transmit the program code to the processor;

[0041] The processor is configured to execute the steps of the bidirectional cross-real-time encryption method for the electric power communication system as described in the first aspect according to the instructions in the program code.

[0042] In a fourth aspect, the present application provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the two-way cross-real-time encryption method of the power communication system described in the first aspect.

[0043] It can be seen from the above technical solutions that this application has the following advantages:

[0044] The present application provides a bidirectional cross-real-time encryption method for an electric power communication system, comprising: determining a binary plaintext to be encrypted in the electric power system and a corresponding forwarding time, wherein the binary plaintext comprises: a telecontrol signal source forwarded by a telecontrol motor in a substation; encrypting the binary plaintext using a mutual cross algorithm in combination with the forwarding time to obtain a primary ciphertext; determining the total number of digits in the primary ciphertext, encrypting the primary ciphertext using a self-cross algorithm in combination with the total number of digits to obtain a secondary ciphertext.

[0045] The two-way cross real-time encryption method of the electric power communication system of the present application adopts a two-way encryption method, in which the second self-crossing is performed on the basis of the first mutual cross, and the entire encryption process forms a criss-cross mesh four-way operation mode, which enhances the encryption effect and increases the difficulty of cracking; a real-time dynamic key encryption method is adopted, in which the key includes the time when the signal source occurs, so that the ciphertext of the same plaintext information is different at different times; thereby improving the encryption effect of data transmission in the electric power communication system. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic flow chart of a bidirectional cross-real-time encryption method for a power communication system provided in an embodiment of the present application;

[0047] Figure 2 A schematic diagram of the structure of a mutual crossover algorithm provided in an embodiment of the present application;

[0048] Figure 3 This is a structural diagram of a bidirectional cross-real-time encryption system for an electric power communication system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to help those skilled in the art better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0050] See also Figure 1 , a bidirectional cross-real-time encryption method for a power communication system provided in an embodiment of the present application includes:

[0051] Step 101: Determine the binary plaintext to be encrypted and the corresponding forwarding time in the power system, wherein the binary plaintext includes: a telecontrol signal source forwarded by a telecontrol motor in a substation;

[0052] It should be noted that, for the convenience of explanation, there are two sets of binary plaintexts in the substation secondary security system, namely X=[x1,x2,x3,…,x n ] and Y=[y1,y2,y3,…,y n ]; and determine the binary plaintext to be encrypted in the power system, that is, the source of the telecontrol signal forwarded by the telecontrol machine in the substation.

[0053] Step 102: Encrypt the binary plaintext using a cross-link algorithm combined with the forwarding time to obtain a primary ciphertext.

[0054] It should be noted that the inter-Cro algorithm uses a bitwise operation on X and Y, denoted as inter-Cro(X,Y), to generate ciphertexts X1 and Y1, respectively. To further increase the unpredictability of the ciphertext and enhance the difficulty of illegal cracking, this embodiment incorporates bidirectional interleaving operations in conjunction with the forwarding time generation of the power system telecontrol signal source. This ensures that the same plaintext information generates completely different ciphertexts in different time windows.

[0055] Specifically, such as Figure 2 As shown, the inter-Cro(X,Y) algorithm performs bitwise operations on X and Y. The formula for the ciphertext X1 and Y1 is as follows:

[0056]

[0057]

[0058] in, and are the time it takes for plaintext X and Y to be forwarded by the remote motor in the substation, in this case, it is taken as seconds, that is, 0≤T sec <60.

[0059] Step 103: Determine the total number of digits in the primary ciphertext, and encrypt the primary ciphertext using a self-crossover algorithm combined with the total number of digits to obtain a secondary ciphertext.

[0060] It should be noted that the self-cross algorithm is used to perform further encryption operations on the primary ciphertexts X1 and Y1, respectively, which are denoted as self-Cro(X1) and self-Cro(Y2).

[0061] Specifically, after the mutual crossover operation is completed, the self-crossover operation is performed on the primary ciphertexts X1 and Y1 respectively. Taking X1 as an example, assume that the total number of digits in X1 is an even number N. The algorithm steps are as follows:

[0062] 1) First, generate a set of random positive integer sequences from 1 to N to form a one-dimensional array P;

[0063] 2) Pair the plaintext X1 bit by bit. Let m = [P[i-1]], n = P[i], where i <= N / 2, and pair X1[m] with X1[n].

[0064] 3) Perform a self-crossover () operation on the paired bits. Assuming X1[a] and X1[b] are a pair, the formula for generating the corresponding bits of the secondary ciphertext is:

[0065]

[0066]

[0067] The two-way cross-link real-time encryption method for a power communication system provided in an embodiment of the present application adopts a two-way encryption method. The second self-crossing is performed on the basis of the first mutual cross-linking. The entire encryption process forms a criss-crossing four-way operation mode, which strengthens the encryption effect and increases the difficulty of cracking. The method also adopts a real-time dynamic key encryption method. The key includes the time when the signal source occurs. This ensures that the ciphertext of the same plaintext information is different at different times. This improves the encryption effect of data transmission in the power communication system.

[0068] The above is a two-way cross real-time encryption method for a power communication system provided in an embodiment of the present application. The following is a two-way cross real-time encryption system for a power communication system provided in an embodiment of the present application.

[0069] See also Figure 2 , a bidirectional cross-real-time encryption system for a power communication system provided in an embodiment of the present application includes:

[0070] The acquisition unit 201 is configured to determine binary plaintext to be encrypted and the corresponding forwarding time in the power system, wherein the binary plaintext includes: a telecontrol signal source forwarded by a telecontrol motor in a substation;

[0071] The first encryption unit 202 is used to encrypt the binary plaintext using a cross-link algorithm combined with the forwarding time to obtain a primary ciphertext;

[0072] The second encryption unit 203 is used to determine the total number of digits in the primary ciphertext, and encrypt the primary ciphertext by combining the total number of digits with a self-cross algorithm to obtain a secondary ciphertext.

[0073] Furthermore, an embodiment of the present application also provides a bidirectional cross-connect real-time encryption device for a power communication system, the device comprising a processor and a memory:

[0074] The memory is used to store program code and transmit the program code to the processor;

[0075] The processor is configured to execute the steps of the bidirectional cross real-time encryption method for the electric power communication system as described in the above method embodiment according to the instructions in the program code.

[0076] Furthermore, a computer-readable storage medium is provided in an embodiment of the present application, and the computer-readable storage medium is used to store program code, and the program code is used to execute the bidirectional cross-real-time encryption method of the power communication system described in the above method embodiment.

[0077] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0078] The terms "first," "second," "third," "fourth," etc., in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or apparatus.

[0079] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one 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.

[0080] In the 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 schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as 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 mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0081] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0082] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0083] If the 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 the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling 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 method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English full name: Read-Only Memory, English abbreviation: ROM), random access memory (English full name: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program code.

[0084] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A two-way cross real-time encryption method for a power communication system, characterized in that: include: Determining binary plaintext to be encrypted and corresponding forwarding time in the power system, wherein the binary plaintext includes: a telecontrol signal source forwarded by a telecontrol machine in a substation; Encrypting the binary plaintext using a mutual cross algorithm and combining the forwarding time to obtain a primary ciphertext; Determining the total number of digits in the primary ciphertext, and encrypting the primary ciphertext using a self-crossover algorithm combined with the total number of digits to obtain a secondary ciphertext; The method of encrypting the binary plaintext using a cross-link algorithm and combining the forwarding time to obtain a ciphertext specifically includes: Encrypting the binary plaintext according to the forwarding time based on a one-time ciphertext encryption formula to obtain a one-time ciphertext; The one-time ciphertext encryption formula is: ; Where, and are the primary ciphertexts, and are the time when the binary plaintext groups X and Y are forwarded by the remote motor in the substation, and ; Determining the total number of digits of the primary ciphertext and encrypting the primary ciphertext using a self-crossover algorithm in combination with the total number of digits to obtain a secondary ciphertext specifically includes: Determining the total number of digits in the primary ciphertext, and generating a sequence of random positive integers based on the total number of digits to obtain a one-dimensional array; Based on the one-dimensional array, the primary ciphertext is paired bit by bit, and a self-crossover operation is performed on the paired bits to obtain a secondary ciphertext; The generation formula of the secondary ciphertext is: ⊙ ; ⊙ ; Where, and is a pair of secondary ciphertexts, and is a one-to-one ciphertext, and are the times when the binary plaintext groups X and Y are forwarded by the remote motor in the substation.

2. A two-way cross real-time encryption system for power communication system, characterized in that: include: An acquisition unit is used to determine binary plaintext to be encrypted and a corresponding forwarding time in the power system, wherein the binary plaintext includes: a telecontrol signal source forwarded by a telecontrol machine in a substation; A first encryption unit is configured to encrypt the binary plaintext using a cross-link algorithm in combination with the forwarding time to obtain a primary ciphertext; a second encryption unit, configured to determine the total number of digits in the primary ciphertext, and encrypt the primary ciphertext using a self-crossover algorithm in combination with the total number of digits to obtain a secondary ciphertext; The first encryption unit is specifically configured to: Encrypting the binary plaintext according to the forwarding time based on a one-time ciphertext encryption formula to obtain a one-time ciphertext; The one-time ciphertext encryption formula is: ; Where, and are the primary ciphertexts, and are the time when the binary plaintext groups X and Y are forwarded by the remote motor in the substation, and ; The second encryption unit is specifically configured to: Determining the total number of digits in the primary ciphertext, and generating a sequence of random positive integers based on the total number of digits to obtain a one-dimensional array; Based on the one-dimensional array, the primary ciphertext is paired bit by bit, and a self-crossover operation is performed on the paired bits to obtain a secondary ciphertext; The generation formula of the secondary ciphertext is: ⊙ ; ⊙ ; Where, and is a pair of secondary ciphertexts, and is a one-to-one ciphertext, and are the times when the binary plaintext groups X and Y are forwarded by the remote motor in the substation.

3. A two-way cross real-time encryption device for an electric power communication system, 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 configured to execute the bidirectional cross-real-time encryption method for the electric power communication system according to claim 1 according to the instructions in the program code.

4. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store program codes, and the program codes are used to execute the bidirectional cross-real-time encryption method for the electric power communication system according to claim 1.

Citation Information

Patent Citations

  • Data processing method and device, electronic equipment and storage medium

    CN112637836A

  • Implicit key encryption method applied to power grid communication and related device

    CN115801364A