CN112055001B - Electric energy metering data uploading method and system, electric energy metering data storage method and system, and terminal - Google Patents

Electric energy metering data uploading method and system, electric energy metering data storage method and system, and terminal Download PDF

Info

Publication number
CN112055001B
CN112055001B CN202010851465.3A CN202010851465A CN112055001B CN 112055001 B CN112055001 B CN 112055001B CN 202010851465 A CN202010851465 A CN 202010851465A CN 112055001 B CN112055001 B CN 112055001B
Authority
CN
China
Prior art keywords
data
splicing
electric energy
ciphertext
energy metering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010851465.3A
Other languages
Chinese (zh)
Other versions
CN112055001A (en
Inventor
高益
周敏
李臣径
韩东
高潘
台沅坤
石平
王凯
李明
李兆欣
隋东阳
张琦
周其朋
韩静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhucheng City Power Supply Company State Grid Shandong Electric Power Co
State Grid Corp of China SGCC
Original Assignee
Zhucheng City Power Supply Company State Grid Shandong Electric Power Co
State Grid Corp of China SGCC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhucheng City Power Supply Company State Grid Shandong Electric Power Co, State Grid Corp of China SGCC filed Critical Zhucheng City Power Supply Company State Grid Shandong Electric Power Co
Priority to CN202010851465.3A priority Critical patent/CN112055001B/en
Publication of CN112055001A publication Critical patent/CN112055001A/en
Application granted granted Critical
Publication of CN112055001B publication Critical patent/CN112055001B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/30Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The invention provides an uploading method and system, a storage method and system and a terminal of electric energy metering data. The uploading method comprises the following steps: acquiring electric energy metering ciphertext data; splitting the electric energy metering ciphertext data into first ciphertext data and second ciphertext data; generating a first random number and a second random number; splicing the first random number, the electric energy metering ciphertext data, the CPU serial number and the MAC address to form first spliced data; calculating a first digital abstract; splicing the first ciphertext data, the second ciphertext data, the first random number, the second random number and the first digital abstract into second spliced data; and uploading the ciphertext splicing data obtained by encrypting the second splicing data to the target power system server. The storage method corresponds to the uploading method. The uploading system is used in cooperation with the uploading method. The storage system is matched with the uploading system for use. The terminals are divided into two types, one type can execute the uploading method, and the other type can execute the storing method. The method and the device are used for ensuring the safety and the accuracy of uploading and storing the electric energy metering data.

Description

Electric energy metering data uploading method and system, electric energy metering data storage method and system, and terminal
Technical Field
The invention relates to the field of power systems, in particular to an uploading method and system, a storage method and system and a terminal of electric energy metering data.
Background
With the development of power systems, the number of power consumers is increasing. In order to improve the statistical work efficiency of the metering data, electric power companies have used intelligent electric energy metering terminals (such as intelligent electric meters) in more and more areas to automatically collect the electric energy metering data of electric power users, and collect and upload the data collected by the intelligent electric energy metering terminals periodically or based on received electric energy metering data collecting instructions.
During the uploading process of the electric energy metering data, a lot of unsafe factors are usually faced, such as interception, tampering and the like, which affect the personal interests of the power users, and further affect the trust of the power users to the power company. Therefore, in order to ensure the integrity and accuracy of the electric energy metering data of the power consumer, the importance of the safe uploading of the electric energy metering data of the power consumer is more and more prominent.
Therefore, the invention provides an uploading method and system, a storage method and system and a terminal of electric energy metering data, which are used for solving the problems.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides an uploading method and system, a storage method and system and a terminal of electric energy metering data, which are used for ensuring the safety and accuracy of uploading and storing the electric energy metering data.
In a first aspect, the present invention provides an uploading method of electric energy metering data, including the steps of:
encrypting the current electric energy metering data to be uploaded by adopting a first encryption algorithm to obtain electric energy metering ciphertext data;
according to a preset data splitting rule, splitting the electric energy metering ciphertext data into two ciphertext data to obtain first ciphertext data and second ciphertext data;
generating a first random number and a second random number by using a random number generator;
splicing the first random number, the electric energy metering ciphertext data, the CPU serial number and the MAC address according to a preset first splicing sequence to form first splicing data; the CPU serial number and the MAC address are a pre-stored CPU serial number and an MAC address of a target power system server;
calculating a digital abstract of the first splicing data by adopting an MD5 algorithm to obtain a first digital abstract;
splicing the first ciphertext data, the second ciphertext data, the first random number, the second random number and the first digital abstract into second splicing data according to a preset second splicing sequence;
encrypting the second splicing data by adopting an RSA algorithm to obtain ciphertext splicing data;
and uploading the ciphertext splicing data to a target power system server.
Further, the random number generator can generate random numbers between 0 and 99.
In a second aspect, the present invention further provides a method for storing electric energy metering data, which is used in cooperation with the method for uploading electric energy metering data, and the method for storing electric energy metering data is applied to a target power system server, and includes the steps of:
receiving the transmitted ciphertext splicing data;
decrypting the received ciphertext splicing data to decrypt second splicing data;
splitting the decrypted second spliced data to obtain first ciphertext data, second ciphertext data, a first random number, a second random number and a first digital abstract;
splicing the first ciphertext data and the second ciphertext data obtained by splitting according to the data splitting rule to obtain corresponding electric energy metering ciphertext data;
according to the first splicing sequence, splicing the split first random number, the spliced electric energy metering ciphertext data and a pre-stored CPU serial number and MAC address of a local machine of a target power system server to obtain spliced third splicing data;
calculating a digital abstract of the third spliced data by adopting an MD5 algorithm to obtain a second digital abstract;
verifying whether the second digital abstract is the same as the first digital abstract obtained by splitting:
if so, decrypting the spliced electric energy metering ciphertext data by adopting a decryption algorithm matched with the first encryption algorithm, decrypting corresponding electric energy metering data, and storing the decrypted electric energy metering data;
if not, alarm information is sent to the reserved mobile phone number.
In a third aspect, the present invention provides an electric energy metering data uploading system, including:
the first electric energy metering ciphertext data acquiring module is used for encrypting the current electric energy metering data to be uploaded by adopting a first encryption algorithm to obtain electric energy metering ciphertext data;
the electric energy metering ciphertext data splitting module is used for splitting the electric energy metering ciphertext data into two ciphertext data according to a preset data splitting rule to obtain first ciphertext data and second ciphertext data;
the random number generating module is used for generating a first random number and a second random number by adopting a random number generator;
the first splicing data acquisition module is used for splicing the first random number, the electric energy metering ciphertext data, the CPU serial number and the MAC address to form first splicing data according to a preset first splicing sequence; the CPU serial number and the MAC address are a pre-stored CPU serial number and an MAC address of a target power system server;
the first digital abstract calculating module is used for calculating the digital abstract of the first splicing data by adopting an MD5 algorithm to obtain a first digital abstract;
the second splicing data acquisition module is used for splicing the first ciphertext data, the second ciphertext data, the first random number, the second random number and the first digital abstract into second splicing data according to a preset second splicing sequence;
the ciphertext splicing data acquisition module is used for encrypting the second splicing data by adopting an RSA algorithm to obtain ciphertext splicing data;
and the data uploading module is used for uploading the ciphertext splicing data obtained by the ciphertext splicing data acquisition module to the target power system server.
Further, the random number generator can generate random numbers between 0 and 99.
In a fourth aspect, the present invention provides a storage system of electric energy metering data used in cooperation with the above uploading system of electric energy metering data, where the storage system is applied to a target power system server, and includes:
the data receiving module is used for receiving ciphertext splicing data transmitted by an uploading system of the electric energy metering data;
the ciphertext splicing data decryption module is used for decrypting the received ciphertext splicing data and decrypting second splicing data;
the first splitting module is used for splitting the second spliced data decrypted by the ciphertext splicing data decrypting module to obtain first ciphertext data, second ciphertext data, a first random number, a second random number and a first digital abstract;
the second electric energy metering ciphertext data acquisition module is used for splicing the first ciphertext data and the second ciphertext data obtained by splitting in the first splitting module according to a data splitting rule which is the same as the data splitting rule in the uploading system of the electric energy metering data to obtain corresponding electric energy metering ciphertext data;
the third splicing data acquisition module is used for splicing the first random number obtained by splitting in the first splitting module, the electric energy metering ciphertext data obtained by splicing in the second electric energy metering ciphertext data acquisition module and a pre-stored CPU serial number and MAC address of a local target power system server according to the same splicing sequence as the first splicing sequence in the uploading system of the electric energy metering data to obtain third splicing data formed by splicing;
the second digital abstract calculating module is used for calculating the digital abstract of the third spliced data by adopting an MD5 algorithm to obtain a second digital abstract;
the digital abstract verifying module is used for verifying whether the second digital abstract is the same as the first digital abstract obtained by splitting;
the decryption and storage module is used for decrypting the spliced electric energy metering ciphertext data by adopting a decryption algorithm matched with the first encryption algorithm when the verification result of the digital abstract verification module is that the second digital abstract is the same as the split first digital abstract, decrypting corresponding electric energy metering data and storing the decrypted electric energy metering data;
the alarm module is used for sending alarm information to the reserved mobile phone number when the verification result of the digital abstract verification module is that the second digital abstract is different from the first digital abstract obtained by splitting;
and the storage module is used for storing the data of the system.
In a fifth aspect, the present invention provides a terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to execute the method for uploading electric energy metering data as described above.
In a sixth aspect, the present invention provides another terminal, including:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of storing electric energy metering data as described above.
The invention has the beneficial effects that:
(1) the invention provides an uploading method of electric energy metering data, which comprises the steps of firstly adopting a first encryption algorithm to encrypt the electric energy metering data to be uploaded at present to obtain electric energy metering ciphertext data, splitting the electric energy metering ciphertext data according to a preset data splitting rule to obtain first ciphertext data and second ciphertext data, adopting a random number generator to generate a first random number and a second random number, splicing the first random number, the electric energy metering ciphertext data, a CPU serial number and an MAC address according to a preset first splicing sequence to form first spliced data, adopting an MD5 algorithm to calculate a digital abstract of the first spliced data to obtain a first digital abstract, splicing the first ciphertext data, the second ciphertext data, the first random number, the second random number and the first digital abstract into second ciphertext spliced data according to a preset second splicing sequence, then adopting an RSA algorithm to encrypt the second spliced data to obtain the spliced data, and then, uploading the ciphertext splicing data to a target power system server, so that the following steps are shown: on one hand, the ciphertext splicing data are uploaded to the target power system server, the ciphertext splicing data are obtained by encrypting the second splicing data, complete electric energy metering ciphertext data (the electric energy metering ciphertext data exist in the form of the first ciphertext data and the second ciphertext data) do not exist in the second splicing data, the CPU serial number and the MAC address of the target power system server are increased, the complexity of the data uploaded to the target power system server is increased to a certain extent, and the safety and the accuracy of the electric energy metering data uploaded to the target power system server are improved to a certain extent; on the other hand, the first digital summary can be used for subsequently verifying the integrity of the electric energy metering ciphertext data, which is beneficial to verifying the integrity of the electric energy metering data uploaded to the target electric power system server to a certain extent.
(2) The storage method of the electric energy metering data provided by the invention is matched with the uploading method of the electric energy metering data for use, the uploading system of the electric energy metering data provided by the invention corresponds to the uploading method of the electric energy metering data, the storage system of the electric energy metering data provided by the invention is matched with the uploading system of the electric energy metering data for use, in addition, the two terminals provided by the invention can execute the uploading method of the electric energy metering data and the storing method of the electric energy metering data, therefore, the storage method of the electric energy metering data, the uploading system of the provided electric energy metering data, the storage system of the provided electric energy metering data and the two provided terminals provided by the invention all have all the advantages of the uploading method of the electric energy metering data, and are not described in detail herein.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an uploading method of an embodiment of the present invention.
FIG. 2 is a schematic flow chart diagram of a storage method of one embodiment of the present invention.
Fig. 3 is a schematic block diagram of an upload system of one embodiment of the present invention.
FIG. 4 is a schematic block diagram of a storage system of one embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following explains key terms appearing in the present invention.
Fig. 1 is a schematic flow chart of an uploading method of an embodiment of the present invention.
As shown in fig. 1, the uploading method 100 includes:
and 110, encrypting the current electric energy metering data to be uploaded by adopting a first encryption algorithm to obtain electric energy metering ciphertext data.
The first encryption algorithm may be implemented by any symmetric encryption algorithm in the prior art. In this embodiment, an AES encryption algorithm is selected as the first encryption algorithm.
And 120, splitting the electric energy metering ciphertext data into two ciphertext data according to a preset data splitting rule to obtain first ciphertext data and second ciphertext data.
The preset data splitting rule may be set by a person skilled in the art according to actual conditions, for example, the preset data splitting rule may be set to split the electric energy metering ciphertext data into two more characters (excluding spaces) than the first ciphertext data. For example, if the number of characters without spaces of the electric energy measurement ciphertext data a is m + m +2, the number of characters without spaces of the first ciphertext data and the second ciphertext data into which the electric energy measurement ciphertext data a is split is sequentially as follows: m +2, m. Wherein m is an integer greater than zero. Specifically, when the electric energy measurement ciphertext data a is split, the electric energy measurement ciphertext data a is split between the (m + 2) th non-empty character and the (m + 3) th character (the character may be a space or not), the front part is first ciphertext data, and the rear part is second ciphertext data.
Step 130, a random number generator is used to generate a first random number and a second random number.
The random number generator can generate random numbers between 0 and 99.
And step 140, splicing the first random number, the electric energy metering ciphertext data, the CPU serial number and the MAC address to form first spliced data according to a preset first splicing sequence.
The CPU serial number and the MAC address are the CPU serial number and the MAC address of a target power system server which are stored in advance.
The preset first splicing sequence may be preset by a person skilled in the art according to an actual situation, for example, the preset first splicing sequence may be set to be a sequence splicing of the first random number, the electric energy metering ciphertext data, the CPU serial number, and the MAC address, or may be set to be another splicing sequence adopted by the first random number, the electric energy metering ciphertext data, the CPU serial number, and the MAC address.
And 150, calculating the digital abstract of the first splicing data by adopting an MD5 algorithm to obtain a first digital abstract.
And step 160, splicing the first ciphertext data, the second ciphertext data, the first random number, the second random number and the first digital abstract into second spliced data according to a preset second splicing sequence.
The preset second concatenation sequence may be preset by a person skilled in the art according to an actual situation, for example, the first ciphertext data, the second ciphertext data, the first random number, the second random number, and the first digital digest may be set to be concatenated in sequence, or the first ciphertext data, the second ciphertext data, the first random number, the second random number, and the first digital digest may be set to adopt another concatenation sequence.
And step 170, encrypting the second splicing data by adopting an RSA algorithm to obtain ciphertext splicing data.
And the RSA algorithm is adopted to encrypt the second splicing data, so that the safety of uploading the electric energy metering data of the power consumer is further improved.
And 180, uploading the ciphertext splicing data to a target power system server.
The target power system server is a server used by a power company for storing electric energy metering data of power consumers. And the first digital abstract is used for verifying the integrity of the first ciphertext data and the second ciphertext data.
The cipher text splicing data are uploaded to the target power system server, the cipher text splicing data are obtained by encrypting the second splicing data, complete electric energy metering cipher text data (the electric energy metering cipher text data exist in the form of the first cipher text data and the second cipher text data) do not exist in the second splicing data, the CPU serial number and the MAC address of the target power system server are increased, the complexity of the data uploaded to the target power system server is increased to a certain extent, and the safety of the electric energy metering data uploaded to the target power system server is improved to a certain extent.
Fig. 2 is a schematic flow chart of a method for storing electric energy metering data according to an embodiment of the present invention.
As shown in fig. 2, the storage method 200 is used in conjunction with the uploading method 100, and may be applied to a target power system server, specifically including:
and step 210, receiving the transmitted ciphertext splicing data.
The ciphertext concatenation data in this step is from the upload method 100.
And step 220, decrypting the received ciphertext splicing data to decrypt second splicing data.
In this step 220, the received ciphertext concatenation data is decrypted by using the RSA decryption algorithm used in cooperation with the RSA algorithm described in the uploading method 100.
And step 230, splitting the decrypted second splicing data to obtain first ciphertext data, second ciphertext data, a first random number, a second random number and a first digital abstract.
In this step 230, the decrypted second splicing data is split according to the same splicing sequence as the second splicing sequence described in the uploading method 100.
Step 240, according to a data splitting rule identical to the data splitting rule in the uploading method 100, the first ciphertext data and the second ciphertext data obtained by splitting are spliced to obtain corresponding electric energy metering ciphertext data.
Step 250, according to the same splicing sequence as the first splicing sequence in the uploading method 100, splicing the split first random number, the spliced electric energy metering ciphertext data, and a pre-stored CPU serial number and MAC address of the local target power system server to obtain spliced third splicing data.
And step 260, calculating the digital abstract of the third spliced data by adopting an MD5 algorithm to obtain a second digital abstract.
The MD5 algorithm used in this step 260 is the same as the MD5 algorithm used in the upload method 100.
Step 270, verifying whether the second digital abstract is the same as the first digital abstract obtained by splitting:
if so, decrypting the spliced electric energy metering ciphertext data by adopting a decryption algorithm matched with the first encryption algorithm, decrypting corresponding electric energy metering data, and storing the decrypted electric energy metering data;
if not, alarm information is sent to the reserved mobile phone number.
The mobile phone number is a reserved mobile phone number of a related electric power worker. When the portable electric power meter is used, when the second digital abstract is verified to be different from the first digital abstract obtained through splitting, relevant alarm information can be timely obtained by relevant electric power workers through mobile phones of the relevant electric power workers, and therefore the relevant electric power workers can timely make treatment.
Fig. 3 is an embodiment of an uploading system of electric energy metering data according to the present invention.
As shown in fig. 3, the uploading system 300 includes:
the first electric energy metering ciphertext data acquiring module 301 is configured to encrypt the current electric energy metering data to be uploaded by using a first encryption algorithm to obtain electric energy metering ciphertext data;
the electric energy metering ciphertext data splitting module 302 is configured to split the electric energy metering ciphertext data into two ciphertext data according to a preset data splitting rule, so as to obtain a first ciphertext data and a second ciphertext data;
a random number generation module 303, configured to generate a first random number and a second random number by using a random number generator;
the first splicing data acquisition module 304 is configured to splice the first random number, the electric energy metering ciphertext data, the CPU serial number, and the MAC address according to a preset first splicing order to form first splicing data; the CPU serial number and the MAC address are a pre-stored CPU serial number and an MAC address of a target power system server;
the first digital summary calculating module 305 is configured to calculate a digital summary of the first splicing data by using an MD5 algorithm to obtain a first digital summary;
the second concatenation data obtaining module 306 is configured to concatenate the first ciphertext data, the second ciphertext data, the first random number, the second random number, and the first digital digest into second concatenation data according to a preset second concatenation order;
a ciphertext splicing data obtaining module 307, configured to encrypt the second splicing data by using an RSA algorithm to obtain ciphertext splicing data;
the number uploading module 308 is configured to upload the ciphertext concatenation data obtained by the ciphertext concatenation data obtaining module 307 to the target power system server.
Optionally, as an embodiment of the invention, the random number generator can generate random numbers between 0 and 99.
Fig. 4 is an embodiment of a storage system for electric energy metering data according to the present invention.
As shown in fig. 4, the storage system 400 is used with the uploading system 300, and the storage system 400 is applied to a target power system server, and includes:
the data receiving module 401 is configured to receive ciphertext splicing data transmitted by an uploading system of the electric energy metering data;
a ciphertext concatenation data decryption module 402, configured to decrypt the received ciphertext concatenation data to decrypt second concatenation data;
the first splitting module 403 is configured to split the second concatenated data decrypted by the ciphertext concatenated data decrypting module 402 to obtain first ciphertext data, second ciphertext data, a first random number, a second random number, and a first digital digest;
a second electric energy metering ciphertext data obtaining module 404, configured to splice the first ciphertext data and the second ciphertext data obtained by splitting in the first splitting module 403 according to a data splitting rule that is the same as the data splitting rule described in the uploading system 300, to obtain corresponding electric energy metering ciphertext data;
a third splicing data obtaining module 405, configured to splice, according to a splicing sequence that is the same as the first splicing sequence in the uploading system 300, the first random number obtained by splitting in the first splitting module 403, the electric energy measurement ciphertext data obtained by splicing in the second electric energy measurement ciphertext data obtaining module 404, and a CPU serial number and an MAC address of a target power system server local machine that are stored in advance, so as to obtain third splicing data formed by splicing;
a second digital digest calculation module 406, configured to calculate a digital digest of the third splicing data by using an MD5 algorithm, so as to obtain a second digital digest;
a digital digest verification module 407, configured to verify whether the second digital digest is the same as the first digital digest obtained by splitting;
the decryption and storage module 408 is configured to, when the verification result of the digital digest verification module 407 is that the second digital digest is the same as the split first digital digest, decrypt the spliced electric energy metering ciphertext data by using a decryption algorithm that is used in cooperation with the first encryption algorithm, decrypt corresponding electric energy metering data, and store the decrypted electric energy metering data;
an alarm module 409, configured to send alarm information to the reserved mobile phone number when the verification result of the digital digest verification module 407 is that the second digital digest is different from the split first digital digest;
and the storage module 410 is used for data storage of the system.
Fig. 5 is a schematic structural diagram of a terminal 500 according to an embodiment of the present invention.
Referring to fig. 5, the terminal 500 includes:
a processor 510;
a memory 520 for storing instructions for execution by processor 510;
wherein the processor 510 is configured to perform the upload method 100 as described in the above aspects.
The embodiment of the present invention further provides another terminal, which may be a power system server, including:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the storage method as described in the above aspects.
The same and similar parts in the various embodiments in this specification may be referred to each other.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. An uploading method of electric energy metering data is characterized by comprising the following steps:
encrypting the current electric energy metering data to be uploaded by adopting a first encryption algorithm to obtain electric energy metering ciphertext data;
according to a preset data splitting rule, splitting the electric energy metering ciphertext data into two ciphertext data to obtain first ciphertext data and second ciphertext data;
generating a first random number and a second random number by using a random number generator;
splicing the first random number, the electric energy metering ciphertext data, the CPU serial number and the MAC address according to a preset first splicing sequence to form first splicing data; the CPU serial number and the MAC address are a pre-stored CPU serial number and an MAC address of a target power system server;
calculating a digital abstract of the first splicing data by adopting an MD5 algorithm to obtain a first digital abstract;
splicing the first ciphertext data, the second ciphertext data, the first random number, the second random number and the first digital abstract into second splicing data according to a preset second splicing sequence;
encrypting the second splicing data by adopting an RSA algorithm to obtain ciphertext splicing data;
and uploading the ciphertext splicing data to a target power system server.
2. The method for uploading the electric energy metering data as claimed in claim 1, wherein the random number generator is capable of generating random numbers between 0 and 99.
3. A method for storing electric energy metering data used in cooperation with the method for uploading electric energy metering data as claimed in claim 1 or 2, wherein the method for storing electric energy metering data is applied to a target power system server, and comprises the steps of:
receiving the transmitted ciphertext splicing data;
decrypting the received ciphertext splicing data to decrypt second splicing data;
splitting the decrypted second spliced data to obtain first ciphertext data, second ciphertext data, a first random number, a second random number and a first digital abstract;
splicing the split first ciphertext data and the split second ciphertext data according to a data splitting rule which is the same as the data splitting rule in claim 1 to obtain corresponding electric energy metering ciphertext data;
splicing the split first random number, the spliced electric energy metering ciphertext data and a pre-stored CPU serial number and MAC address of a local target power system server according to a splicing sequence which is the same as the first splicing sequence in claim 1 to obtain spliced third splicing data;
calculating a digital abstract of the third spliced data by adopting an MD5 algorithm to obtain a second digital abstract;
verifying whether the second digital abstract is the same as the first digital abstract obtained by splitting:
if so, decrypting the spliced electric energy metering ciphertext data by adopting a decryption algorithm matched with the first encryption algorithm, decrypting corresponding electric energy metering data, and storing the decrypted electric energy metering data;
if not, alarm information is sent to the reserved mobile phone number.
4. An electric energy metering data uploading system, comprising:
the first electric energy metering ciphertext data acquiring module is used for encrypting the current electric energy metering data to be uploaded by adopting a first encryption algorithm to obtain electric energy metering ciphertext data;
the electric energy metering ciphertext data splitting module is used for splitting the electric energy metering ciphertext data into two ciphertext data according to a preset data splitting rule to obtain first ciphertext data and second ciphertext data;
the random number generating module is used for generating a first random number and a second random number by adopting a random number generator;
the first splicing data acquisition module is used for splicing the first random number, the electric energy metering ciphertext data, the CPU serial number and the MAC address to form first splicing data according to a preset first splicing sequence; the CPU serial number and the MAC address are a pre-stored CPU serial number and an MAC address of a target power system server;
the first digital abstract calculating module is used for calculating the digital abstract of the first splicing data by adopting an MD5 algorithm to obtain a first digital abstract;
the second splicing data acquisition module is used for splicing the first ciphertext data, the second ciphertext data, the first random number, the second random number and the first digital abstract into second splicing data according to a preset second splicing sequence;
the ciphertext splicing data acquisition module is used for encrypting the second splicing data by adopting an RSA algorithm to obtain ciphertext splicing data;
and the data uploading module is used for uploading the ciphertext splicing data obtained by the ciphertext splicing data acquisition module to the target power system server.
5. The system for uploading the electric energy metering data as claimed in claim 4, wherein the random number generator is capable of generating random numbers between 0 and 99.
6. A storage system for electric energy metering data used in cooperation with the uploading system of electric energy metering data as set forth in claim 4 or 5, wherein the storage system is applied to a target power system server, and comprises:
the data receiving module is used for receiving ciphertext splicing data transmitted by an uploading system of the electric energy metering data;
the ciphertext splicing data decryption module is used for decrypting the received ciphertext splicing data and decrypting second splicing data;
the first splitting module is used for splitting the second spliced data decrypted by the ciphertext splicing data decrypting module to obtain first ciphertext data, second ciphertext data, a first random number, a second random number and a first digital abstract;
the second electric energy metering ciphertext data acquiring module is used for splicing the first ciphertext data and the second ciphertext data obtained by splitting in the first splitting module according to the data splitting rule in the claim 4 to obtain corresponding electric energy metering ciphertext data;
a third splicing data acquisition module, configured to splice, according to the first splicing sequence recited in claim 4, the first random number obtained by splitting in the first splitting module, the electric energy measurement ciphertext data obtained by splicing in the second electric energy measurement ciphertext data acquisition module, and a CPU serial number and an MAC address of a target power system server local machine that are stored in advance, to obtain third splicing data formed by splicing;
the second digital abstract calculating module is used for calculating the digital abstract of the third spliced data by adopting an MD5 algorithm to obtain a second digital abstract;
the digital abstract verifying module is used for verifying whether the second digital abstract is the same as the first digital abstract obtained by splitting;
the decryption and storage module is used for decrypting the spliced electric energy metering ciphertext data by adopting a decryption algorithm matched with the first encryption algorithm when the verification result of the digital abstract verification module is that the second digital abstract is the same as the split first digital abstract, decrypting corresponding electric energy metering data and storing the decrypted electric energy metering data;
the alarm module is used for sending alarm information to the reserved mobile phone number when the verification result of the digital abstract verification module is that the second digital abstract is different from the first digital abstract obtained by splitting;
and the storage module is used for storing the data of the system.
7. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-2.
8. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of claim 3.
CN202010851465.3A 2020-08-21 2020-08-21 Electric energy metering data uploading method and system, electric energy metering data storage method and system, and terminal Active CN112055001B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010851465.3A CN112055001B (en) 2020-08-21 2020-08-21 Electric energy metering data uploading method and system, electric energy metering data storage method and system, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010851465.3A CN112055001B (en) 2020-08-21 2020-08-21 Electric energy metering data uploading method and system, electric energy metering data storage method and system, and terminal

Publications (2)

Publication Number Publication Date
CN112055001A CN112055001A (en) 2020-12-08
CN112055001B true CN112055001B (en) 2022-04-15

Family

ID=73599494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010851465.3A Active CN112055001B (en) 2020-08-21 2020-08-21 Electric energy metering data uploading method and system, electric energy metering data storage method and system, and terminal

Country Status (1)

Country Link
CN (1) CN112055001B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112669217A (en) * 2021-01-15 2021-04-16 张立旭 Cross-memory storage data splicing method and system
CN112861150A (en) * 2021-02-05 2021-05-28 国网山东省电力公司日照供电公司 Regional spare power automatic switching monitoring method, system, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479412A (en) * 2010-11-26 2012-05-30 航天信息股份有限公司 Processing method and system of network invoicing data as well as tax control device and handling server
CN106204038A (en) * 2016-06-24 2016-12-07 广州正峰电子科技有限公司 The method and device that a kind of password string generates
CN108683491A (en) * 2018-03-19 2018-10-19 中山大学 A kind of information concealing method based on encryption and spatial term
CN109547215A (en) * 2018-12-28 2019-03-29 鞍钢集团自动化有限公司 A kind of document information guard method based on mobile terminal fingerprint
CN111127254A (en) * 2020-03-27 2020-05-08 国网山东省电力公司青州市供电公司 Marketing and distribution through data management system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150332331A1 (en) * 2014-05-13 2015-11-19 Pubmatic, Inc. Intelligent ad auction and sla compliance techniques

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479412A (en) * 2010-11-26 2012-05-30 航天信息股份有限公司 Processing method and system of network invoicing data as well as tax control device and handling server
CN106204038A (en) * 2016-06-24 2016-12-07 广州正峰电子科技有限公司 The method and device that a kind of password string generates
CN108683491A (en) * 2018-03-19 2018-10-19 中山大学 A kind of information concealing method based on encryption and spatial term
CN109547215A (en) * 2018-12-28 2019-03-29 鞍钢集团自动化有限公司 A kind of document information guard method based on mobile terminal fingerprint
CN111127254A (en) * 2020-03-27 2020-05-08 国网山东省电力公司青州市供电公司 Marketing and distribution through data management system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于AES和RSA算法的数据加密方案;陈君波;《公安海警学院学报》;20120215;全文 *

Also Published As

Publication number Publication date
CN112055001A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN103716167B (en) Method and device for safely collecting and distributing transmission keys
CN101753312B (en) Security certification method and security certification device for power grid equipment and negative control terminal
CN105610773B (en) A kind of communication encryption method of electric energy meter remote meter reading
CN110100422B (en) Data writing method and device based on block chain intelligent contract and storage medium
CN111127254B (en) Marketing and distribution through data management system
CN112055001B (en) Electric energy metering data uploading method and system, electric energy metering data storage method and system, and terminal
CN101789865A (en) Dedicated server used for encryption and encryption method
CN106576043A (en) Virally distributable trusted messaging
TW201322718A (en) Access control system and access control method thereof
KR101344074B1 (en) Smart grid data transaction scheme for privacy
CN106605419A (en) Method and system for secure SMS communications
CN108960552A (en) A kind of charging method and relevant device based on Spot Price
CN107249002B (en) Method, system and device for improving safety of intelligent electric energy meter
CN110299993B (en) Remote safe meter reading method based on improved IBOOE algorithm
CN113918982B (en) Data processing method and system based on identification information
CN104579659A (en) Device for safety information interaction
CA2827112C (en) Using a single certificate request to generate credentials with multiple ecqv certificates
CN103139737B (en) Cryptographic key negotiation method and device, note secondary-confirmation method, system and equipment
CN110278077B (en) Method, device, equipment and storage medium for acquiring data information of electric energy meter
Choi et al. An efficient message authentication for non-repudiation of the smart metering service
CN102665204B (en) A kind of positioning service safety protecting method and system
CN111988133B (en) System SM4 encryption and decryption verification method, device, equipment and storage medium
US9775043B2 (en) Network locking method and system for wireless terminal
CN101917709A (en) Short message service hardware encryption transmission system based on chaos algorithm
CN109698815A (en) Embedded chip card, card application server and application data transmission system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant