Power grid information encryption and authentication method, system and device and medium
By combining symmetric and asymmetric encryption algorithms, combined with iris recognition and dynamic authentication of the CHAP protocol, the problem of insufficient security of a single encryption algorithm and static authentication credentials in traditional power grid information encryption and authentication methods is solved, and efficient power grid information transmission is achieved. and reliability.
Patent Information
- Application Number
- CN202411058887.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-15
AI Technical Summary
Traditional power grid information encryption methods rely on a single encryption algorithm and key management method, which have problems with data being cracked and false identity authentication, and cannot meet the real-time and efficient requirements of smart grids.
Combining symmetric encryption algorithms and asymmetric encryption algorithms, the information receiving end is authenticated through the preset identity authentication mechanism, and efficient encryption technology and key management methods are adopted, and iris recognition technology and CHAP protocol are used for dynamic authentication to ensure that the key secure transmission and data integrity.
It significantly improves the security, efficiency and reliability of power grid information transmission, prevents data leakage and illegal access, and ensures the authenticity of the identity of the information receiving end.
Smart Images

Figure CN118784347A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power grid information security technology, and more specifically to a power grid information encryption and authentication method, system, device and medium. Background Art
[0002] In the field of power grid information transmission, it is crucial to ensure the confidentiality, integrity and authentication of data. Traditional power grid information transmission methods often rely only on simple encryption technology or a single authentication method, which have certain security defects. Especially with the rapid development of smart grids today, the security of power grid information has become increasingly prominent. How to effectively protect the confidentiality of power grid information, prevent data from being tampered with and forged, and ensure the authenticity and reliability of the identity of the information receiver have become urgent issues to be solved in the current field of power grid information security.
[0003] Traditional power grid information encryption methods often use a single encryption algorithm and key management method, which makes data easy to crack during transmission and the security of the key is difficult to guarantee. At the same time, traditional identity authentication mechanisms mostly use static authentication credentials, such as user names and passwords, which are at risk of being stolen or guessed, and cannot ensure that the identity of the information receiver is authentic and reliable.
[0004] Traditional power grid information encryption methods mainly rely on a single encryption algorithm, such as symmetric encryption algorithm or asymmetric encryption algorithm. Symmetric encryption algorithm has fast encryption speed, but key management and distribution are difficult; asymmetric encryption algorithm has convenient key management, but slow encryption speed.
[0005] Traditional identity authentication mechanisms often use static authentication credentials, such as usernames and passwords, which are easily stolen or guessed and cannot effectively prevent illegal users from accessing the power grid information system. In addition, there is a lack of means for dynamic authentication during data transmission, which cannot ensure that the identity of the information receiver remains unchanged throughout the transmission process.
[0006] The traditional power grid information encryption and authentication process usually requires multiple steps and multiple keys, which increases the complexity of the operation and the possibility of errors.
[0007] It can be seen that due to the singleness of encryption technology and the insufficient security of identity authentication mechanism, the efficiency of power grid information encryption and authentication is low, which cannot meet the requirements of smart grid for real-time and efficient information transmission. Summary of the invention
[0008] In view of the above problems, the purpose of the present invention is to provide a power grid information encryption and authentication method, system, device and medium, which combines symmetric encryption algorithm and asymmetric encryption algorithm, authenticates the information receiving end through a preset identity authentication mechanism, and adopts efficient encryption technology and key management method, thereby greatly improving the security, efficiency and reliability of power grid information transmission.
[0009] To achieve the above-mentioned purpose, the present invention is implemented through the following technical solutions: a method for encrypting and authenticating power grid information, comprising: Using a predetermined symmetric encryption algorithm and a key, encrypting the power grid information to be transmitted to generate encrypted power grid information; Using an asymmetric encryption algorithm and a public key of the information receiving end to encrypt the key used by the symmetric encryption algorithm to generate an encrypted key; Sending the encrypted power grid information and the encrypted key to the information receiving end; During the information transmission process, the information receiving end is authenticated by a preset identity authentication mechanism; after the authentication is passed, the information receiving end uses the built-in private key to decrypt the received encrypted key to obtain the key used by the symmetric encryption algorithm; The encrypted power grid information is decrypted using the key pair used by the symmetric encryption algorithm to obtain the original power grid information.
[0010] Further, the method of using a predetermined symmetric encryption algorithm and a key to encrypt the power grid information to be transmitted to generate encrypted power grid information includes: Use UTF-8 encoding to convert the power grid load data to be transmitted into an initial string; Initialize the encryptor using the preset 256-bit key and AES algorithm; The initial character string is encrypted by an encryptor to generate encrypted power grid information.
[0011] Further, the use of the asymmetric encryption algorithm and the public key of the information receiving end to encrypt the key used by the symmetric encryption algorithm to generate an encrypted key includes: Get the RSA public key of the information receiver; The key used by the symmetric encryption algorithm is encrypted using the RSA public key and OAEP mode of the information receiving end to generate an encrypted key.
[0012] Further, the step of sending the encrypted power grid information and the encrypted key to the information receiving end includes: Encapsulate the encrypted power grid information and the encrypted key into a data packet in a preset format and convert it into a JSON data packet; A network connection is established with the information receiving end through the SSL / TLS protocol, and the JSON data packet is sent to the information receiving end.
[0013] Furthermore, during the information transmission process, the information receiving end is authenticated by a preset identity authentication mechanism, including: Before sending information, iris recognition technology is used to authenticate the data receiving end; During information transmission, the data receiving end is authenticated from time to time by dynamically changing the authentication credentials based on the CHAP protocol; If the authentication fails, the data transmission will be interrupted immediately.
[0014] Furthermore, after the authentication is passed, the information receiving end uses the built-in private key to decrypt the received encrypted key to obtain the key used by the symmetric encryption algorithm, including: The information receiving end loads a built-in RSA private key in its built-in secure storage space, wherein the RSA private key matches the RSA public key; Obtain a JSON data packet, and extract the encrypted power grid information, the encrypted key, and the accompanying initialization vector from the JSON data packet; The encrypted key is decrypted using the RSA private key and the OAEP padding decryption algorithm to obtain the key used by the symmetric encryption algorithm.
[0015] Further, the decrypting the encrypted power grid information using the key pair used by the symmetric encryption algorithm to obtain the original power grid information includes: Use the AES algorithm, the associated initialization vector, and the key used by the symmetric encryption algorithm, and configure the decryptor in CBC mode; Decrypting the encrypted power grid information using a decryptor to generate corresponding data blocks; Remove padding from the data block to generate an initial string; The initial character string is decoded according to the UTF-8 encoding to generate the corresponding power grid load data.
[0016] Correspondingly, the present invention also discloses a power grid information encryption and authentication system, comprising: An information encryption module, used to encrypt the power grid information to be transmitted using a predetermined symmetric encryption algorithm and a key to generate encrypted power grid information; A key encryption module, used to encrypt the key used by the symmetric encryption algorithm using an asymmetric encryption algorithm and a public key of the information receiving end to generate an encrypted key; A data sending module, used for sending the encrypted power grid information and the encrypted key to the information receiving end; The transmission authentication module is used to authenticate the information receiving end through a preset identity authentication mechanism during the information transmission process; the key decryption module is used to decrypt the received encrypted key by the information receiving end using the built-in private key after the authentication is passed, so as to obtain the key used by the symmetric encryption algorithm; The information decryption module is used to decrypt the encrypted power grid information using the key pair used by the symmetric encryption algorithm to obtain the original power grid information.
[0017] Accordingly, the present invention discloses a power grid information encryption and authentication device, comprising: A memory for storing power grid information encryption and authentication programs; A processor is used to implement the steps of the power grid information encryption and authentication method as described in any one of the above items when executing the power grid information encryption and authentication program.
[0018] Accordingly, the present invention discloses a readable storage medium, on which a power grid information encryption and authentication program is stored. When the power grid information encryption and authentication program is executed by a processor, the steps of the power grid information encryption and authentication method as described in any one of the above items are implemented.
[0019] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention discloses a method, system, device and medium for encrypting and authenticating power grid information. Through a dual encryption mechanism, including using a symmetric encryption algorithm to encrypt power grid information, and using an asymmetric encryption algorithm to encrypt keys, the security of data during transmission is significantly enhanced, and data leakage and illegal access are effectively prevented. Among them, the introduction of asymmetric encryption technology makes the transmission of keys safer and avoids the risk of directly exposing keys. At the same time, combining the SSL / TLS protocol for data transmission further improves the security and efficiency of key management. The present invention adopts iris recognition technology and a dynamic authentication mechanism based on the CHAP protocol to achieve strict authentication of the identity of the information receiving end, effectively preventing access by illegal users and ensuring the legality and security of data transmission.
[0020] The present invention combines a variety of encryption algorithms and encoding methods, provides flexible configuration options, and can select appropriate encryption parameters and algorithms according to specific needs. At the same time, the decryption process is accurate and reliable, and can correctly restore the original power grid information.
[0021] The present invention is applicable to power grid information transmission scenarios of different scales and can be flexibly adjusted according to actual needs. At the same time, the present invention has good scalability and is easy to integrate with the existing power grid information system, providing strong support for power grid information security.
[0022] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0024] Figure 1 is a method flow chart of a specific embodiment of the present invention; Figure 2 It is a system structure diagram of a specific implementation mode of the present invention.
[0025] In the figure, 1. Information encryption module; 2. Key encryption module; 3. Data sending module; 4. Transmission authentication module; 5. Key decryption module; 6. Information decryption module. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0027] See also Figure 1 As shown, this embodiment provides a power grid information encryption and authentication method, including the following steps: S1: Using a predetermined symmetric encryption algorithm and a key, encrypt the power grid information to be transmitted to generate encrypted power grid information.
[0028] In a specific implementation, first, the power grid load data to be transmitted, such as voltage, current, power, etc., is sorted according to a specific data format. Then, the sorted power grid load data is converted into an initial string using UTF-8 encoding to ensure the readability of the data during the encryption process. At this time, a preset 256-bit key and AES encryption algorithm are selected as the basis for symmetric encryption. Finally, the encryptor is initialized using the AES algorithm and the preset key, and then the initial string is encrypted by the encryptor to generate encrypted power grid information.
[0029] S2: Use an asymmetric encryption algorithm and a public key of the information receiving end to encrypt the key used by the symmetric encryption algorithm to generate an encrypted key.
[0030] In a specific implementation, a secure connection is first established with the information receiving end, its RSA public key is obtained from it, and the OAEP mode is selected as the filling method of asymmetric encryption to improve security. Finally, the symmetric key previously used to encrypt the power grid information is encrypted using the RSA public key and the OAEP mode to generate an encrypted key.
[0031] S3: Send the encrypted power grid information and the encrypted key to the information receiving end.
[0032] In a specific implementation, first, the encrypted power grid information and the encrypted key are encapsulated according to a preset data packet format. Then, the encapsulated data packet is converted into JSON format for network transmission and parsing. Finally, an encrypted connection with the information receiving end is established through the SSL / TLS protocol to ensure the security of the data during transmission, and the JSON data packet is sent to the information receiving end.
[0033] As an example, the preset data packet structure may include a data header, an encrypted symmetric key, and encrypted data, wherein the data header records the version information of the data packet, the data packet type, the encrypted symmetric key, the length of the encrypted data, the data check value, the encryption algorithm type, and the initialization vector.
[0034] S4: During the information transmission process, the information receiving end is authenticated through a preset identity authentication mechanism.
[0035] In a specific implementation, before information is sent, iris recognition technology is used to authenticate the information receiving end to ensure that the receiving end is a legitimate recipient. During information transmission, the authentication credentials are dynamically changed based on the CHAP protocol, and the identity of the information receiving end is authenticated from time to time. If the authentication fails, the data transmission is immediately interrupted and the corresponding security response mechanism is triggered.
[0036] S5: After the authentication is passed, the information receiving end uses the built-in private key to decrypt the received encrypted key to obtain the key used by the symmetric encryption algorithm.
[0037] In a specific implementation, after receiving the data, the information receiving end loads the RSA private key matching the RSA public key from its built-in secure storage space. At this time, the encrypted power grid information, the encrypted key and the accompanying initialization vector are extracted from the received JSON data packet. Finally, the encrypted key is decrypted using the RSA private key and the OAEP padding decryption algorithm to recover the symmetric key used to encrypt the power grid information.
[0038] S6: Decrypt the encrypted power grid information using the key pair used by the symmetric encryption algorithm to obtain the original power grid information.
[0039] In a specific implementation, first, the AES algorithm, the accompanying initialization vector, and the decrypted symmetric key are used to configure the decryptor in conjunction with the CBC mode. Then, the encrypted power grid information is decrypted using the configured decryptor to generate a corresponding data block. Next, the data block is de-filled to generate an initial string. Finally, the initial string is decoded according to the UTF-8 encoding to generate the corresponding power grid load data. This can be achieved by calling methods such as .decode('utf-8').
[0040] In this step, if padding is used during encryption (such as PKCS7), you need to remove these padding bytes after decryption to restore the true size and content of the original data. PKCS7, the full name of which is Public-Key Cryptography Standards #7, is one of a series of public key encryption standards released by RSA Laboratories. The PKCS7 specification, formally known as RFC 2315 "PKCS #7: Cryptographic Message Syntax Version 1.5", defines a common message syntax for encapsulating data, providing digital signatures for data, encrypting data, and combinations of these operations. It supports multiple content types, including plain data, signed data, envelopedData (encrypted data, which refers to data encrypted to one or more specific recipients), signedAndEnvelopedData (data that is both signed and encrypted), digestedData (data with only a message digest), and encryptedData (data that is only encrypted).
[0041] As an example, in Python's cryptography library, the decryptor can be configured as follows: from cryptography.hazmat.primitives.ciphers import Cipher,algorithms, modes from cryptography.hazmat.backends import default_backend key = b'your_32_byte_key_here' iv = b'your_initialization_vector_here' cipher = Cipher(algorithms.AES(key), modes.CBC(iv), backend=default_backend()) decryptor = cipher.decryptor().
[0042] See also Figure 2 As shown, the present invention also discloses a power grid information encryption and authentication system, including: an information encryption module 1, a key encryption module 2, a data sending module 3, a transmission authentication module 4, a key decryption module 5 and an information decryption module 6.
[0043] The information encryption module 1 is used to encrypt the power grid information to be transmitted using a predetermined symmetric encryption algorithm and a key to generate encrypted power grid information.
[0044] The key encryption module 2 is used to encrypt the key used by the symmetric encryption algorithm using an asymmetric encryption algorithm and a public key of the information receiving end to generate an encrypted key.
[0045] The data sending module 3 is used to send the encrypted power grid information and the encrypted key to the information receiving end.
[0046] The transmission authentication module 4 is used to authenticate the information receiving end through a preset authentication mechanism during information transmission. The key decryption module 5 is used to decrypt the received encrypted key by the information receiving end using a built-in private key after authentication to obtain the key used by the symmetric encryption algorithm.
[0047] The information decryption module 6 is used to decrypt the encrypted power grid information using the key pair used by the symmetric encryption algorithm to obtain the original power grid information.
[0048] The specific implementation of the power grid information encryption and authentication system of this embodiment is basically the same as the specific implementation of the above-mentioned power grid information encryption and authentication method, and will not be repeated here.
[0049] The present invention also discloses a power grid information encryption and authentication device, comprising a processor and a memory; wherein the processor implements the steps of the power grid information encryption and authentication method as described in any one of the above items when executing the power grid information encryption and authentication program stored in the memory.
[0050] Furthermore, the power grid information encryption and authentication device in this embodiment may also include: The input interface is used to obtain the power grid information encryption and authentication program imported from the outside, and save the obtained power grid information encryption and authentication program to the memory, and can also be used to obtain various instructions and parameters transmitted by external terminal devices, and transmit them to the processor, so that the processor can use the above various instructions and parameters to carry out corresponding processing. In this embodiment, the input interface can specifically include but is not limited to a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, etc.
[0051] The output interface is used to output various data generated by the processor to the terminal device connected thereto, so that other terminal devices connected to the output interface can obtain various data generated by the processor. In this embodiment, the output interface may specifically include but is not limited to a USB interface, a serial interface, etc.
[0052] The communication unit is used to establish a remote communication connection between the power grid information encryption and authentication device and the external server so that the power grid information encryption and authentication device can mount the image file to the external server. In this embodiment, the communication unit may specifically include but is not limited to a remote communication unit based on wireless communication technology or wired communication technology.
[0053] The keyboard is used to obtain various parameter data or instructions input by the user by tapping the keycaps in real time.
[0054] The display is used to display the relevant information of the power grid information encryption and authentication process in real time.
[0055] The mouse can be used to assist users in inputting data and simplify user operations.
[0056] The present invention also discloses a readable storage medium, wherein the readable storage medium includes a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable hard disk, a CD-ROM or any other form of storage medium known in the technical field. The readable storage medium stores a power grid information encryption and authentication program, and when the power grid information encryption and authentication program is executed by a processor, the steps of the power grid information encryption and authentication method described in any one of the above items are implemented.
[0057] In summary, the present invention combines symmetric encryption algorithms and asymmetric encryption algorithms, authenticates the information receiving end through a preset identity authentication mechanism, and adopts efficient encryption technology and key management methods, thereby greatly improving the security, efficiency and reliability of power grid information transmission.
[0058] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. As for the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0059] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0060] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, 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 through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0061] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0062] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit.
[0063] Similarly, each processing unit in each embodiment of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units may be integrated into one functional module.
[0064] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0065] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0066] The above is a detailed introduction to the power grid information encryption and authentication method, system, device and readable storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A method for encrypting and authenticating power grid information, characterized in that: include: Using a predetermined symmetric encryption algorithm and a key, encrypting the power grid information to be transmitted to generate encrypted power grid information; Using an asymmetric encryption algorithm and a public key of the information receiving end to encrypt the key used by the symmetric encryption algorithm to generate an encrypted key; Sending the encrypted power grid information and the encrypted key to the information receiving end; During the information transmission process, the information receiving end is authenticated through a preset identity authentication mechanism; After the authentication is passed, the information receiving end uses the built-in private key to decrypt the received encrypted key to obtain the key used by the symmetric encryption algorithm; The encrypted power grid information is decrypted using the key pair used by the symmetric encryption algorithm to obtain the original power grid information.
2. The power grid information encryption and authentication method according to claim 1, characterized in that: The method of using a predetermined symmetric encryption algorithm and a key to encrypt the power grid information to be transmitted to generate encrypted power grid information includes: Use UTF-8 encoding to convert the power grid load data to be transmitted into an initial string; Initialize the encryptor using the preset 256-bit key and AES algorithm; The initial character string is encrypted by an encryptor to generate encrypted power grid information.
3. The power grid information encryption and authentication method according to claim 2, characterized in that: The method of using an asymmetric encryption algorithm and a public key of an information receiving end to encrypt a key used by the symmetric encryption algorithm to generate an encrypted key includes: Get the RSA public key of the information receiver; The key used by the symmetric encryption algorithm is encrypted using the RSA public key and OAEP mode of the information receiving end to generate an encrypted key.
4. The power grid information encryption and authentication method according to claim 3, characterized in that: The step of sending the encrypted power grid information and the encrypted key to the information receiving end includes: Encapsulate the encrypted power grid information and the encrypted key into a data packet in a preset format and convert it into a JSON data packet; A network connection is established with the information receiving end through the SSL / TLS protocol, and the JSON data packet is sent to the information receiving end.
5. The power grid information encryption and authentication method according to claim 4, characterized in that: During the information transmission process, the information receiving end is authenticated by a preset identity authentication mechanism, including: Before sending information, iris recognition technology is used to authenticate the data receiving end; During information transmission, the data receiving end is authenticated from time to time by dynamically changing the authentication credentials based on the CHAP protocol; If the authentication fails, the data transmission will be interrupted immediately.
6. The power grid information encryption and authentication method according to claim 5, characterized in that: After the authentication is passed, the information receiving end uses the built-in private key to decrypt the received encrypted key to obtain the key used by the symmetric encryption algorithm, including: The information receiving end loads a built-in RSA private key in its built-in secure storage space, wherein the RSA private key matches the RSA public key; Obtain a JSON data packet, and extract the encrypted power grid information, the encrypted key, and the accompanying initialization vector from the JSON data packet; The encrypted key is decrypted using the RSA private key and the OAEP padding decryption algorithm to obtain the key used by the symmetric encryption algorithm.
7. The power grid information encryption and authentication method according to claim 6, characterized in that: The method of decrypting the encrypted power grid information using the key pair used by the symmetric encryption algorithm to obtain the original power grid information includes: Use the AES algorithm, the associated initialization vector, and the key used by the symmetric encryption algorithm, and configure the decryptor in CBC mode; Decrypting the encrypted power grid information using a decryptor to generate corresponding data blocks; Remove padding from the data block to generate an initial string; The initial character string is decoded according to the UTF-8 encoding to generate the corresponding power grid load data.
8. A power grid information encryption and authentication system, characterized in that: include: An information encryption module, used to encrypt the power grid information to be transmitted using a predetermined symmetric encryption algorithm and a key to generate encrypted power grid information; A key encryption module, used to encrypt the key used by the symmetric encryption algorithm using an asymmetric encryption algorithm and a public key of the information receiving end to generate an encrypted key; A data sending module, used for sending the encrypted power grid information and the encrypted key to the information receiving end; The transmission authentication module is used to authenticate the information receiving end through a preset authentication mechanism during information transmission; A key decryption module is used to decrypt the encrypted key received by the information receiving end using the built-in private key after authentication to obtain the key used by the symmetric encryption algorithm; The information decryption module is used to decrypt the encrypted power grid information using the key pair used by the symmetric encryption algorithm to obtain the original power grid information.
9. A power grid information encryption and authentication device, characterized in that: include: A memory for storing power grid information encryption and authentication programs; A processor, used to implement the steps of the power grid information encryption and authentication method as described in any one of claims 1 to 7 when executing the power grid information encryption and authentication program.
10. A readable storage medium, characterized in that: The readable storage medium stores a power grid information encryption and authentication program, which, when executed by a processor, implements the steps of the power grid information encryption and authentication method according to any one of claims 1 to 7.
Citation Information
Cited By
Data encryption method and device, medium, electronic equipment and program product
CN119402291A
