Safety verification method and system for power industry

By using applications and servers in the power industry to generate and verify hybrid passwords, the problem of power data access security is solved, and the security verification and access control of power data is realized, ensuring the privacy and integrity of the data.

CN119094172APending Publication Date: 2024-12-06WUHAN ROUTON ELECTRONIC CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411120226.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the power industry, the access and transmission of power data lacks security and poses a risk of private information leakage.

Method used

The hybrid password is generated and verified on the power terminal through application A and application B. The server uses the security of cryptography to generate a short and effective random code based on encryption, and updates according to the update cycle to ensure the security of access permissions. The specific steps include the application A generating a hash code S, the server generating a random code R, and the application A and B generating a secret key based on these codes, and comparing it to verify access permissions.

Benefits of technology

It effectively ensures the security of access to power data, prevents unauthorized access, and ensures the privacy and integrity of power data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094172A_ABST
    Figure CN119094172A_ABST
Patent Text Reader

Abstract

The invention provides a security verification method and system for the power industry, and the method comprises the steps: an application A generates a hash code S, a server generates a random code R, and carries out the updating according to an updating period; the application program A requests a server to obtain a random code R at a first moment t1, and generates a hybrid password S2 according to the hash code S and the random code R; the application program B obtains the mixed password S2 and generates a secret key X; the application program A requests the server to acquire a current random code R at a second moment t2, and generates a secret key Y; whether the secret key Y is consistent with the secret key X or not is compared, verification is carried out, and after verification is passed, the application program A, the application program B and the server can access and communicate with one another. Through verification among the application program A, the application program B and the server, the access security is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security, and more specifically, to a security verification method and system for the electric power industry. Background Art

[0002] In the power industry, the power data of each user is collected in the power equipment of the power management department. The power data of each user is very important data and involves private information. If it is directly accessed by other devices, it lacks security.

[0003] Therefore, in order to ensure the security of power data, a secure power data access and transmission mechanism needs to be proposed. Summary of the invention

[0004] The present invention aims at solving the technical problems existing in the prior art and provides a safety verification method and system for the electric power industry.

[0005] According to a first aspect of the present invention, there is provided a safety verification method for the electric power industry, comprising:

[0006] Application A generates a seed string, performs hash calculation on the seed string, and generates a hash code S;

[0007] The server generates a random code R with a short validity period based on cryptography security and updates it according to the update cycle;

[0008] Application A requests the server to obtain a random code R at the first time t1, and generates a mixed password S2 based on the hash code S and the random code R;

[0009] Application B obtains the mixed password S2, calculates the mixed password S2 based on a specific algorithm to obtain a secret key X, and informs application A of the secret key X;

[0010] At the second time t2, application A requests the server to obtain the current random code R, generates a mixed password S2 based on the hash code S and the current random code R, and generates a secret key Y based on the same specific algorithm as application B;

[0011] Compare secret key Y with secret key X to see if they are consistent. If they are consistent, the verification is successful and application A can access the server. Otherwise, application A is denied access to the server.

[0012] Wherein, the application A and the application B are both installed on the power terminal.

[0013] Based on the above technical solution, the present invention can also make the following improvements.

[0014] Optionally, the application A generates a seed string, performs hash calculation on the seed string, and generates a hash code S, including:

[0015] Generate a seed string based on the timestamp when application A is executed;

[0016] Based on the SHA-256 security algorithm, the seed string is hashed to obtain a 32-byte hash code S.

[0017] Optionally, the server securely generates a random code R with a short validity period based on cryptography, including:

[0018] In the first update cycle of the random code, receiving the voltage data of the first sampling cycle uploaded by the power terminal;

[0019] The voltage data of the first sampling period is subjected to spectrum transformation to obtain the spectrum characteristics of the voltage waveform, and the spectrum characteristics are used as the random code R in the first update period on the server, wherein the update period of the random code R on the server is the same as the sampling period of the voltage data.

[0020] Optionally, performing spectrum transformation on the voltage data of the first sampling period to obtain spectrum characteristics of the voltage waveform, and using the spectrum characteristics as the random code R in the first update period on the server, includes:

[0021] The voltage data of the first sampling period is subjected to Fourier transform to obtain a voltage waveform spectrum, and a plurality of frequencies arranged at the end of the voltage waveform spectrum are taken to form a random code R within the first update period.

[0022] Optionally, the server securely generates a random code R with a short validity period based on cryptography, and updates it according to an update cycle, including:

[0023] The random code R of the previous update cycle is obtained, and the random code R of the previous update cycle is used as a secret key to encrypt the received voltage data of the current sampling cycle to generate the random code R of the current update cycle.

[0024] Optionally, the application A and the application B are installed on the same power terminal, or the application A and the application B are installed on different power terminals.

[0025] Optionally, when the application A and the application B are installed on different power terminals, the application A displays the generated hybrid password S2 in the form of text or a QR code, and the application B obtains the hybrid password S2 generated by the application A by scanning the code.

[0026] According to a second aspect of the present invention, there is provided a security verification system for the power industry, comprising a power terminal and a server, wherein the power terminal is installed with an application A and an application B;

[0027] Application A, used to generate a seed string, perform hash calculation on the seed string, and generate a hash code S;

[0028] The server is used to generate a random code R with a short validity period based on cryptography and update it according to the update cycle;

[0029] Application A is used to request a random code R from the server at a first time t1, and generate a mixed password S2 according to the hash code S and the random code R;

[0030] Application B is used to obtain the mixed password S2, calculate the mixed password S2 based on a specific algorithm to obtain a secret key X, and inform application A of the secret key X;

[0031] Application A is used to request the server to obtain the current random code R at the second time t2, generate a mixed password S2 according to the hash code S and the current random code R, and generate a secret key Y according to the same specific algorithm as application B; and is used to compare whether the secret key Y is consistent with the secret key X. If they are consistent, the verification is successful, otherwise, the verification fails. When the verification passes, application A can access the server, and when the verification fails, application A is denied access to the server.

[0032] Optionally, the server is used to securely generate a random code R with a short validity period based on cryptography, including:

[0033] In the first update cycle of the random code, receiving the voltage data of the first sampling cycle uploaded by the power terminal;

[0034] The voltage data of the first sampling period is subjected to spectrum transformation to obtain the spectrum characteristics of the voltage waveform, and the spectrum characteristics are used as the random code R in the first update period on the server, wherein the update period of the random code R on the server is the same as the sampling period of the voltage data.

[0035] Optionally, the server is used to securely generate a random code R with a short validity period based on cryptography, and update the random code R according to an update cycle, including:

[0036] The random code R of the previous update cycle is obtained, and the random code R of the previous update cycle is used as a secret key to encrypt the received voltage data of the current sampling cycle to generate the random code R of the current update cycle.

[0037] The present invention provides a security verification method and system for the electric power industry. Application A generates a hash code S, and a server generates a random code R, which is updated according to an update cycle; Application A requests the server to obtain the random code R at a first moment t1, and generates a mixed password S2 according to the hash code S and the random code R; Application B obtains the mixed password S2 and generates a secret key X; Application A requests the server to obtain the current random code R at a second moment t2, and generates a secret key Y; Compare whether the secret key Y is consistent with the secret key X, and perform verification. After the verification is passed, Application A, Application B and the server can access and communicate with each other. The present invention ensures access security through verification between Application A, Application B and the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A flow chart of a safety verification method for the electric power industry provided by the present invention;

[0039] Figure 2 A schematic diagram of the structure of a safety verification system for the electric power industry provided by the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be arbitrarily combined with each other to form a feasible technical solution. This combination is not subject to the constraints of the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in this field to achieve. When the combination of technical solutions is contradictory or cannot be achieved, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0041] Figure 1 A flow chart of a safety verification method for the power industry provided by the present invention, such as Figure 1 As shown, the method includes:

[0042] Step S1, application A generates a seed string, performs hash calculation on the seed string, and generates a hash code S.

[0043] It is understandable that the present invention is mainly used in the power industry. Application A and application B are installed on the power terminal. Since application A and application B store power data, there is a certain security risk in directly accessing each other. Therefore, the present invention proposes a security verification method.

[0044] First, application A generates an initial string. The timestamp of the program execution, such as "2023-04-17 14:19:35", can be taken as the "seed string". The "seed string" is hashed to calculate the SHA-256 value to obtain a 32-byte hash code S. The hash code S can also be considered as a password.

[0045] Step S2: The server generates a random code R with a short validity period based on cryptography security, and updates it according to an update cycle.

[0046] It is understandable that in the process of verifying application A and application B, the server is also involved. The server program uses a cryptographically secure random number generator based on its own programming environment to generate a random code R with a short validity period, which is updated after a period of time.

[0047] The server securely generates a random code R with a short validity period based on cryptography, including: receiving voltage data of the first sampling period uploaded by the power terminal in the first update period of the random code; performing spectrum transformation on the voltage data of the first sampling period to obtain spectrum characteristics of the voltage waveform, and using the spectrum characteristics as the random code R in the first update period on the server, wherein the update period of the random code R on the server is the same as the sampling period of the voltage data.

[0048] It is understandable that the server generates a random code R based on the voltage data received from the power terminal, and updates the random code R in real time according to the update cycle. In the first update cycle of the random code R, the frequency spectrum characteristics of the voltage data of the first sampling cycle uploaded by the power terminal are used as the random code R in the first update cycle. The update cycle of the random code R on the server can be the same as the collection cycle of the voltage data.

[0049] The voltage data of the first sampling period is subjected to Fourier transform to obtain a voltage waveform spectrum, and a plurality of frequencies arranged at the end of the voltage waveform spectrum (corresponding to the noise in the voltage data) are taken to form a random code R in the first update period.

[0050] For the second update cycle and subsequent update cycles, the random code of the current update cycle is calculated based on the random code of the previous update cycle and the voltage data of the current sampling cycle. Specifically, the random code R of the previous update cycle is obtained, and the random code R of the previous update cycle is used as a secret key to encrypt the received voltage data of the current sampling cycle to generate the random code R of the current update cycle.

[0051] Step S3: Application A requests the server to obtain a random code R at the first time t1, and generates a mixed password S2 according to the hash code S and the random code R.

[0052] It is understandable that at the first moment t1, the terminal application A requests the server to obtain a random code R with a short validity period, and the password S + random code R obtains the mixed password S2. Application A can send the mixed password S2 to application B to inform application B of the mixed password S2. Alternatively, application A displays the mixed password in the form of text or QR code, and application B obtains the mixed password S2 by scanning the code.

[0053] In step S4, application B obtains the mixed password S2, calculates the mixed password S2 based on a specific algorithm to obtain a secret key X, and informs application A of the secret key X.

[0054] It is understandable that after obtaining the mixed password S2, application B uses a specific algorithm to generate a secret key X by operating S2, and informs program A of the secret key X.

[0055] Step S5, application A requests the server to obtain the current random code R at the second time t2, generates a mixed password S2 according to the hash code S and the current random code R, and generates a secret key Y according to the same specific algorithm as application B.

[0056] It is understandable that when application B informs application A of the secret key X, this time is recorded as the second moment t2. At the second moment t2, application A again requests the server to obtain the current random code R, and the hash code S and the current random code R generate a mixed password S2, and generates the secret key Y according to the same specific algorithm as application B.

[0057] Step S6, compare secret key Y with secret key X to see if they are consistent. If they are consistent, the verification is successful and application A can access the server. Otherwise, application A is denied access to the server.

[0058] It can be understood that the secret key Y generated on application A is compared with the secret key X generated on application B. If Y is consistent with X, the verification is passed and application A can access application B and the server. If Y is inconsistent with X, application A is not allowed to access application B or the server.

[0059] Among them, since the random code R on the server is updated in real time according to the update cycle, when the random code R obtained by application A from the server at the first moment t1 is different from the random code R obtained from the server at the second moment t2, then the secret key Y and the secret key X must be inconsistent, then the access permission of application A is invalid, ensuring the security of data access.

[0060] Figure 2 A structural diagram of a security verification system for the power industry provided by an embodiment of the present invention, the system includes a power terminal 21 and a server 22, and the power terminal 21 has an application A and an application B installed thereon;

[0061] Application A, used to generate a seed string, perform hash calculation on the seed string, and generate a hash code S;

[0062] The server 22 is used to generate a random code R with a short validity period based on cryptography security and update it according to an update cycle;

[0063] Application A is used to request a random code R from the server 22 at a first time t1, and generate a mixed password S2 according to the hash code S and the random code R;

[0064] Application B is used to obtain the mixed password S2, calculate the mixed password S2 based on a specific algorithm to obtain a secret key X, and inform application A of the secret key X;

[0065] Application A is used to request the current random code R from the server 22 at the second moment t2, generate a mixed password S2 according to the hash code S and the current random code R, and generate a secret key Y according to the same specific algorithm as that of application B; and is used to compare whether the secret key Y is consistent with the secret key X. If they are consistent, the verification is successful, otherwise, the verification fails. When the verification passes, application A can access the server 22, and when the verification fails, application A is denied access to the server 22.

[0066] The server 22 is used to securely generate a random code R with a short validity period based on cryptography, including:

[0067] In the first update cycle of the random code, receiving the voltage data of the first sampling cycle uploaded by the power terminal 21;

[0068] The voltage data of the first sampling period is subjected to spectrum transformation to obtain the spectrum characteristics of the voltage waveform, and the spectrum characteristics are used as the random code R in the first update period on the server 22, wherein the update period of the random code R on the server 22 is the same as the sampling period of the voltage data.

[0069] The server 22 is used to generate a random code R with a short validity period based on cryptography and update it according to an update cycle, including:

[0070] The random code R of the previous update cycle is obtained, and the random code R of the previous update cycle is used as a secret key to encrypt the received voltage data of the current sampling cycle to generate the random code R of the current update cycle.

[0071] It can be understood that the safety verification system for the electric power industry provided by the present invention corresponds to the safety verification method for the electric power industry provided by the aforementioned embodiments. The relevant technical features of the safety verification system for the electric power industry can refer to the relevant technical features of the safety verification method for the electric power industry, which will not be repeated here.

[0072] The embodiment of the present invention provides a security verification method and system for the power industry. Application A generates a hash code S, and the server generates a random code R, which is updated according to the update cycle; Application A requests the server to obtain the random code R at the first time t1, and generates a mixed password S2 according to the hash code S and the random code R; Application B obtains the mixed password S2 and generates a secret key X; Application A requests the server to obtain the current random code R at the second time t2, and generates a secret key Y; Compare whether the secret key Y is consistent with the secret key X, and verify it. After the verification is passed, the application A, the application B and the server can access and communicate with each other. The present invention ensures access security through verification between the three parties of application A, application B and the server.

[0073] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0074] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0075] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0076] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0077] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0078] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0079] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A safety verification method for the power industry, It is characterized in that include: Application A generates a seed string, performs hash calculation on the seed string, and generates a hash code S; The server generates a random code R with a short validity period based on cryptography security and updates it according to the update cycle; Application A requests the server to obtain a random code R at the first time t1, and generates a mixed password S2 based on the hash code S and the random code R; Application B obtains the mixed password S2, calculates the mixed password S2 based on a specific algorithm to obtain a secret key X, and informs application A of the secret key X; At the second time t2, application A requests the server to obtain the current random code R, generates a mixed password S2 based on the hash code S and the current random code R, and generates a secret key Y based on the same specific algorithm as application B; Compare secret key Y with secret key X to see if they are consistent. If they are consistent, the verification is successful and application A can access the server. Otherwise, application A is denied access to the server. Wherein, the application A and the application B are both installed on the power terminal.

2. The safety verification method for the electric power industry according to claim 1, It is characterized in that The application A generates a seed string, performs a hash calculation on the seed string, and generates a hash code S, including: Generate a seed string based on the timestamp when application A is executed; Based on the SHA-256 security algorithm, the seed string is hashed to obtain a 32-byte hash code S.

3. The safety verification method for the electric power industry according to claim 1, It is characterized in that The server securely generates a random code R with a short validity period based on cryptography, including: In the first update cycle of the random code, receiving the voltage data of the first sampling cycle uploaded by the power terminal; The voltage data of the first sampling period is subjected to spectrum transformation to obtain the spectrum characteristics of the voltage waveform, and the spectrum characteristics are used as the random code R in the first update period on the server, wherein the update period of the random code R on the server is the same as the sampling period of the voltage data.

4. The safety verification method for the electric power industry according to claim 3, It is characterized in that The spectrum transformation is performed on the voltage data of the first sampling period to obtain the spectrum characteristics of the voltage waveform, and the spectrum characteristics are used as the random code R in the first update period on the server, including: The voltage data of the first sampling period is subjected to Fourier transform to obtain a voltage waveform spectrum, and a plurality of frequencies arranged at the end of the voltage waveform spectrum are taken to form a random code R in the first update period.

5. The safety verification method for the electric power industry according to claim 3, It is characterized in that The server securely generates a random code R with a short validity period based on cryptography, and updates it according to an update cycle, including: The random code R of the previous update cycle is obtained, and the random code R of the previous update cycle is used as a secret key to encrypt the received voltage data of the current sampling cycle to generate the random code R of the current update cycle.

6. The safety verification method for the electric power industry according to claim 1, It is characterized in that The application A and the application B are installed on the same power terminal, or the application A and the application B are installed on different power terminals.

7. The safety verification method for the electric power industry according to claim 6, It is characterized in that When the application A and the application B are installed on different power terminals, the application A displays the generated hybrid password S2 in the form of text or a QR code, and the application B obtains the hybrid password S2 generated by the application A by scanning the code.

8. A safety verification system for the power industry, It is characterized in that It includes a power terminal and a server, wherein the power terminal has application A and application B installed thereon; Application A, used to generate a seed string, perform hash calculation on the seed string, and generate a hash code S; The server is used to generate a random code R with a short validity period based on cryptography and update it according to the update cycle; Application A is used to request a random code R from the server at a first time t1, and generate a mixed password S2 according to the hash code S and the random code R; Application B is used to obtain the mixed password S2, calculate the mixed password S2 based on a specific algorithm to obtain a secret key X, and inform application A of the secret key X; Application A is used to request the server to obtain the current random code R at the second time t2, generate a mixed password S2 according to the hash code S and the current random code R, and generate a secret key Y according to the same specific algorithm as application B; and is used to compare whether the secret key Y is consistent with the secret key X. If they are consistent, the verification is successful, otherwise, the verification fails. When the verification passes, application A can access the server, and when the verification fails, application A is denied access to the server.

9. The safety verification system for the electric power industry according to claim 8, It is characterized in that The server is used to securely generate a random code R with a short validity period based on cryptography, comprising: In the first update cycle of the random code, receiving the voltage data of the first sampling cycle uploaded by the power terminal; The voltage data of the first sampling period is subjected to spectrum transformation to obtain the spectrum characteristics of the voltage waveform, and the spectrum characteristics are used as the random code R in the first update period on the server, wherein the update period of the random code R on the server is the same as the sampling period of the voltage data.

10. The safety verification system for the electric power industry according to claim 9, It is characterized in that The server is used to securely generate a random code R with a short validity period based on cryptography and update it according to an update cycle, including: The random code R of the previous update cycle is obtained, and the random code R of the previous update cycle is used as a secret key to encrypt the received voltage data of the current sampling cycle to generate the random code R of the current update cycle.

Citation Information

Cited By

  • Intelligent key management system and method for transformer substation

    CN119541092A