A method and system for encrypted data transmission in a smart grid platform

By configuring serial numbers for smart meters and building a key generation model, the lack of innovation in data encryption transmission in smart grid platforms has been addressed, achieving efficient and secure data transmission and reducing operating costs.

CN121012703BActive Publication Date: 2026-03-13JIANGSU ELECTRIC POWER INFORMATION TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-28
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing data encryption transmission technologies lack innovation in smart grid platforms, leading to excessive consumption of computing resources and increased operating costs.

Method used

Configure serial numbers for smart meters, build a key generation model, generate exclusive keys based on serial numbers and introduce a time dimension for periodic updates, encrypt meter data using exclusive keys and perform integrity verification.

Benefits of technology

It improves the security and effectiveness of encrypted data transmission, ensures the accuracy of power data, and reduces the consumption of computing resources and operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121012703B_ABST
    Figure CN121012703B_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for encrypted data transmission in a smart grid platform, relating to the field of encrypted data transmission technology. The method includes the following steps: installing smart meters in residential buildings; installing encrypted transmission devices within the smart meters; configuring a serial number for each smart meter; constructing a key generation model; generating a unique key based on the serial number; and periodically updating the unique key using a time dimension; encrypting the meter data in the smart meters using the unique key to obtain secure transmission data; and sending the secure transmission data to the smart grid platform via encrypted transmission, while simultaneously verifying the integrity of the secure transmission data. This invention addresses the shortcomings of existing encrypted data transmission technologies applied to smart grid platforms, which lack innovation and require excessive computing resources, leading to higher operating costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data encryption transmission technology, specifically to a data encryption transmission method and system for a smart grid platform. Background Technology

[0002] Data encryption transmission technology refers to the security technology that uses cryptographic algorithms and key management mechanisms to convert plaintext data into unreadable ciphertext, ensuring that it is protected from eavesdropping, tampering, or forgery during network transmission. Its core objective is to ensure the confidentiality, integrity, and identity authentication of data, and it is the cornerstone of modern information security.

[0003] Smart grid platforms need to integrate electricity consumption data from all households within a power area, requiring the establishment of data transmission channels with smart meters. However, the security of electricity data transmitted to the smart grid platform must be ensured. If the electricity data is tampered with or the transmission signal is interfered with, leading to data corruption within the smart grid platform, it will cause errors, which is highly detrimental to data management. Therefore, encrypted transmission of electricity data is necessary. However, existing data encryption technologies applied to smart grid platforms typically combine multiple existing encryption techniques, a method that lacks innovation and relies on multiple encryption methods. Encryption consumes more computing resources and requires more time. For example, patent application CN109104279A discloses "a method, system and terminal device for encrypting power data". This solution uses two existing data encryption technologies to encrypt and transmit power data. When transmitting power data, if it is necessary to transmit power data from smart meters to the smart grid platform, stronger computing power needs to be configured for smart meters, which increases operating costs. Moreover, it is not innovative enough. When existing data encryption transmission technologies are applied to smart grid platforms, they still have the problems of insufficient innovation and the need to consume more computing resources, resulting in higher operating costs. Summary of the Invention

[0004] This invention aims to at least partially address one of the technical problems in the prior art. It involves installing smart meters in residential buildings, embedding encrypted transmission devices within these meters, configuring a serial number for each smart meter, constructing a key generation model, generating a unique key based on the serial number, and periodically updating the unique key using a time dimension. The unique key is then used to perform initial encryption calculations on the meter data in the smart meter to obtain initial ciphertext. Verification encryption calculations are then performed on the initial ciphertext to obtain secure transmission data. This secure transmission data is then sent to the smart grid platform via encrypted transmission, and its integrity is verified. Finally, the secure transmission data is processed based on the verification results. This addresses the shortcomings of existing data encryption transmission technologies applied to smart grid platforms, such as insufficient innovation and the need for excessive computing resources, leading to higher operating costs.

[0005] To achieve the above objectives, in a first aspect, this application provides a method for encrypted data transmission in a smart grid platform, comprising the following steps:

[0006] Install smart meters in housing, install encrypted transmission devices in smart meters, and assign a serial number to each smart meter;

[0007] A key generation model is constructed to generate a unique key based on the serial number, while introducing a time dimension to periodically update the unique key;

[0008] Secure data transmission is achieved by encrypting the meter data in the smart meter using a dedicated key.

[0009] Securely transmitted data is sent to the smart grid platform via encrypted transmission, and the integrity of the securely transmitted data is verified at the same time.

[0010] Furthermore, installing smart meters in residential buildings, installing encrypted transmission devices within the smart meters, and configuring a serial number for each smart meter includes the following sub-steps:

[0011] Install smart meters in housing and install encrypted transmission devices in the smart meters;

[0012] Each smart meter is configured with a serial number, which is randomly generated and consists of uppercase and lowercase letters and numbers as the first digit. Each serial number is unique.

[0013] Furthermore, a key generation model is constructed to generate a unique key based on the sequence number, while periodically updating the unique key using a time dimension, including the following sub-steps:

[0014] The default private key is updated once every hour to obtain the current time, which consists of year, month, day and hour, and is in continuous number format without any text or punctuation.

[0015] Extract the uppercase and lowercase letters from the serial number in left-to-right order to obtain the letter sequence, and extract the numbers from the serial number in left-to-right order to obtain the number sequence.

[0016] Convert the uppercase and lowercase letters in the letter sequence into decimal numbers according to ASCII encoding to obtain the letter conversion sequence. Place the letter conversion sequence in front of the number sequence to form a new number string, which is named the initial key string.

[0017] Add the initial key string to the current time to obtain the unique key.

[0018] Furthermore, encrypting the meter data in the smart meter using a dedicated key to obtain secure data transmission includes the following sub-steps:

[0019] The initial encryption calculation in the data encryption of the smart meter is performed using a dedicated key to obtain the initial ciphertext.

[0020] Verification encryption calculations are performed on the initial ciphertext during data encryption to obtain securely transmitted data.

[0021] Furthermore, the initial encryption calculation for data encryption of the meter data in the smart meter using a dedicated key, to obtain the initial ciphertext, includes the following sub-steps:

[0022] Obtain the meter data, convert the meter data into UTF-8 encoding in hexadecimal format, and name it the data encoding; convert the exclusive key from decimal to hexadecimal and name it the key encoding.

[0023] The numbers in the data encoding and the numbers in the key encoding are numbered from left to right, and are respectively represented by the symbols DE. n and KE m It is represented as follows, where n and m are both positive integers, and n is the index of DE and m is the index of KE;

[0024] Starting with n and m=1, DE n Marked as G n Analyze KE m Is it 0 and G? n Is it KE? m Multiples of KE m Not equal to 0 and G n Is it KE? m If it is a multiple of G, then calculate G. n / KE m , will Gn Update to the calculation result; otherwise, calculate G. n +KE m , will G n Update to the calculation result, add m+1 and repeat the judgment and update G. n This continues until the maximum value of m is reached;

[0025] When the maximum value of m is reached, m is reset to 1 and n+1 is incremented, then G is updated again. n This continues until the maximum value of n is reached;

[0026] The final updated G n Marked as Q n Solve Q n All factors are named encoding factors, for any Q n Analyze the coding factors to find F n The largest factor of a hexadecimal number f that is less than or equal to f is denoted as F. n Calculate Q n / F n P was obtained n ;

[0027] F n Placed in P n The preceding part forms a new number, labeled H. n Arrange H in ascending order of n n Combine them to obtain the initial ciphertext.

[0028] Furthermore, the verification encryption calculation in the data encryption process of the initial ciphertext to obtain secure transmission data includes the following sub-steps:

[0029] Starting with n=1, calculate H n+1 -H n H n+1 +H n H n -H n+1 H n ×H n+1 H n / H n+1 and H n+1 / H n The calculation result is marked as L(n,i), where i is a positive integer and (n,i) is the index of L, corresponding to L(n,1) to L(n,6) from left to right;

[0030] Set verification number rules, wherein the verification number must be a single digit and a positive integer;

[0031] L(n,i) that conform to the verification number rules are classified as compliant numbers, and H in the initial state ciphertext is...n With H n+1 Randomly insert a corresponding compliant number between them;

[0032] Analyze n+2 again until H is reached. n+1 Until it no longer exists, the initial state ciphertext after the compliant number will be named the intermediate state ciphertext;

[0033] A sequence number is added before the medium-state ciphertext, separated by the symbol ".". At the same time, a timestamp of the current time is added after the medium-state ciphertext, separated by the symbol ".". Finally, securely transmitted data is obtained.

[0034] Furthermore, the secure transmission data is sent to the smart grid platform via encrypted transmission, and the integrity verification of the secure transmission data includes the following sub-steps:

[0035] Securely transmitted data is sent to the smart grid platform via encrypted transmission, and the integrity of the securely transmitted data is verified at the same time.

[0036] The data is processed based on the test results.

[0037] Furthermore, the secure transmission data is sent to the smart grid platform via encrypted transmission, and the integrity verification of the secure transmission data includes the following sub-steps:

[0038] Securely transmitted data is sent to the smart grid platform via encrypted transmission. The ciphertext between the two symbols "." is obtained and named the code to be verified.

[0039] Number the digits in the code to be verified in left-to-right order, using the symbol C. j This indicates that j is a positive integer and j is the index of C;

[0040] Starting with j=1, calculate C j+2 -C j C j+2 +C j C j -C j+2 C j ×C j+2 C j / C j+2 And C j+2 / C j Name the calculation result as the verification reference number;

[0041] Query C j+1 If it is a verification reference number, output a verification pass signal; otherwise, output a verification failure signal.

[0042] Add j+3 and recalculate and verify until C is reached.j+2 If all output verification signals pass, output a normal data signal; otherwise, output an abnormal data signal.

[0043] Furthermore, processing the securely transmitted data based on the verification results includes the following sub-steps:

[0044] If the output data is normal, the secure transmission data is stored; if the output data is abnormal, the secure transmission data of the smart meter corresponding to the serial number is retrieved again.

[0045] When a user with access privileges accesses securely transmitted data, the serial number before the left-hand "." is obtained to query the smart meter to which the securely transmitted data belongs, and the timestamp after the right-hand "." is obtained.

[0046] Enter timestamps and serial numbers into the key generation model to analyze the exclusive key for secure data transmission;

[0047] Securely transmitted data can be decrypted by executing a reverse program that encrypts data using a proprietary key.

[0048] Secondly, this application provides a smart grid platform data encryption transmission system, including a meter configuration module, a key generation module, a data encryption transmission module, and a data verification and storage module; the meter configuration module, the key generation module, and the data verification and storage module are respectively data connected to the data encryption transmission module;

[0049] The meter configuration module is used to install smart meters in housing, install encrypted transmission devices in smart meters, and configure serial numbers for each smart meter;

[0050] The key generation module is used to construct a key generation model, generate a unique key based on the serial number, and periodically update the unique key by introducing a time dimension.

[0051] The data encryption transmission module is used to encrypt the meter data in the smart meter using a dedicated key to obtain secure data transmission.

[0052] The data verification and storage module is used to send securely transmitted data to the smart grid platform via encrypted transmission, and at the same time to verify the integrity of the securely transmitted data.

[0053] The beneficial effects of this invention are as follows: By installing smart meters in housing and an encrypted transmission device in the smart meters, a serial number is configured for each smart meter, a key generation model is constructed, a unique key is generated based on the serial number, and a time dimension is introduced to periodically update the unique key. Then, the unique key is used to perform initial encryption calculations on the meter data in the smart meters to obtain the initial ciphertext. The advantage is that a completely new and complex encryption method is adopted. The key generation and data encryption are different from existing technologies, which improves the security and effectiveness of data encryption transmission technology applied in the smart grid platform.

[0054] This invention obtains secure transmission data by performing verification encryption calculations on the initial state ciphertext during data encryption. This secure transmission data is then sent to the smart grid platform via encrypted transmission. Simultaneously, the integrity of the secure transmission data is verified. Finally, the secure transmission data is processed based on the verification results. The advantage lies in the fact that the secure transmission data obtained through verification encryption calculations possesses an integrity self-checking function. It can verify whether the secure transmission data has been tampered with or contains errors, ensuring that the power data received by the smart grid platform is accurate and error-free. This further improves the security and effectiveness of data encryption transmission technology applied to the smart grid platform. Attached Figure Description

[0055] Figure 1 This is a schematic diagram of the system of the present invention;

[0056] Figure 2 This is a flowchart illustrating the encrypted transmission steps of the present invention;

[0057] Figure 3 This is a flowchart illustrating the steps of the method of the present invention;

[0058] Figure 4 This is a schematic diagram of the electronic device of the present invention. Detailed Implementation

[0059] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0060] Example 1, please refer to Figure 1 As shown, this application provides a smart grid platform data encryption transmission system, including a meter configuration module, a key generation module, a data encryption transmission module, and a data verification and storage module; the meter configuration module, the key generation module, and the data verification and storage module are respectively data connected to the data encryption transmission module;

[0061] In real-life data encryption, we cannot blindly adopt existing encryption technologies. Existing encryption technologies vary in strength, but as society progresses, some technologies will inevitably be phased out, or certain encryption technologies will become crackable. This is why we need to continuously innovate encryption technologies. It is also to prevent most security protection systems from needing to be reconfigured after a certain encryption technology is cracked. The diversity of encryption technologies is not only to prevent our own data from being compromised, but also to increase the cost for crackers, making it impossible for them to achieve large-scale network intrusion by cracking a single technology.

[0062] Please see Figure 2 As shown, the meter configuration module is used to install smart meters in housing, install encrypted transmission devices in smart meters, and configure serial numbers for each smart meter;

[0063] The meter configuration module is configured with meter configuration policies, which include:

[0064] Install smart meters in housing and install encrypted transmission devices in the smart meters;

[0065] Each smart meter is configured with a serial number. A unique serial number is randomly generated, and the serial number consists of uppercase and lowercase letters and numbers as the first digit. Each serial number is unique.

[0066] In practical applications, Figure 2 This is a flowchart of the encrypted transmission steps in this embodiment. It can be installed using existing smart meters. The encrypted transmission device is used to obtain the power data of the smart meter and transmit it to the smart grid platform in encrypted form. Each smart meter has a unique serial number. The smart grid platform stores the household corresponding to the serial number. For example, the serial number of a household's smart meter is v6ds561DS15T83f4.

[0067] The key generation module is used to build a key generation model, generate a unique key based on the serial number, and introduce a time dimension to periodically update the unique key;

[0068] The key generation module is configured with key generation strategies, which include:

[0069] The default private key is updated once every hour to obtain the current time, which consists of year, month, day and hour, and is in continuous number format without any text or punctuation.

[0070] Extract the uppercase and lowercase letters from the serial number in left-to-right order to obtain the letter sequence, and extract the numbers from the serial number in left-to-right order to obtain the number sequence.

[0071] Convert the uppercase and lowercase letters in the letter sequence into decimal numbers according to ASCII encoding to obtain the letter conversion sequence. Place the letter conversion sequence in front of the number sequence to form a new number string, which is named the initial key string.

[0072] Add the initial key string to the current time to obtain the unique key;

[0073] In practical applications, assuming the current time is obtained at 13:36 on April 26, 2025, the current time is 202542613. Taking the above sequence number as an example, the extracted letter sequence is vdsDSTf, and the number sequence is 656115834. The converted letter sequence is 118100115688384102. The initial key string is obtained by combining the letter sequence and the number sequence as 118100115688384102656115834. The exclusive key is obtained by adding them together as 118100115688384102858658447.

[0074] The data encryption transmission module is used to encrypt the meter data in the smart meter using a dedicated key to obtain secure data transmission; the data encryption transmission module includes an initial encryption unit and a verification encryption unit.

[0075] The initial encryption unit is used to perform initial encryption calculations on the meter data in the smart meter using a dedicated key to obtain the initial ciphertext.

[0076] The initial encryption unit block is configured with an initial encryption policy, which includes:

[0077] Obtain the meter data, convert the meter data into UTF-8 encoding in hexadecimal format, and name it the data encoding; convert the exclusive key from decimal to hexadecimal and name it the key encoding.

[0078] The numbers in the data encoding and the numbers in the key encoding are numbered from left to right, and are respectively represented by the symbols DE. n and KE m It is represented as follows, where n and m are both positive integers, and n is the index of DE and m is the index of KE;

[0079] In practical applications, assuming the meter data is "268 kWh in April" (excluding quotation marks), the converted data code is 34e69c88e4bbbde794a8e794b5323638e5baa6. Converting the decimal 118100115688384102858658447 to hexadecimal yields the key code 61b0ac199a0b391e56928f. The DE key is then obtained through this code. n and KE mWhere 1≤n≤38, 1≤m≤22;

[0080] Starting with n and m=1, DE n Marked as G n Analyze KE m Is it 0 and G? n Is it KE? m Multiples of KE m Not equal to 0 and G n Is it KE? m If it is a multiple of G, then calculate G. n / KE m , will G n Update to the calculation result; otherwise, calculate G. n +KE m , will G n Update to the calculation result, add m+1 and repeat the judgment and update G. n This continues until the maximum value of m is reached;

[0081] When the maximum value of m is reached, m is reset to 1 and n+1 is incremented, then G is updated again. n This continues until the maximum value of n is reached;

[0082] In practical applications, taking n=m=1 as an example, DE1 is 3, meaning G1 is 3. KE1 is 6. G1 is not a multiple of KE1, so we calculate G1+KE1=3+6=9, updating G1 to 9. We then add 1 to m, making m=2. KE2 is 1, and 9 is a multiple of 1, meaning G1 is a multiple of KE2. We calculate G1 / KE1=9 / 1=9, updating G1 to 9, and so on, until we reach the maximum value of m. When performing calculations on hexadecimal numbers, we first convert them to decimal numbers for calculation, and then convert them back to hexadecimal numbers. For example, when m=3, KE3 is b, which is actually equal to 11 in decimal. We determine that 9 is not a multiple of 11, so we calculate 9+11 to get the new G. n The decimal value is 20, which is 14 in hexadecimal. Following this logic, after 22 steps of calculation, the decimal value of G1 is 48, which corresponds to 30 in hexadecimal. At this point, m = 22. We reset m to 1 and recalculate G using n+1. n At this point, n=2, i.e., G2 is calculated. Since the calculation process is the same, this embodiment does not perform calculations for each G2. n The calculation process will be explained in detail, and G1 to G2 will be calculated similarly. 38The values ​​are, in order: 30, 17, 5C, 90, 10, 3, 24, 24, 5C, 17, 2A, 2A, 2A, 1C, 5C, 9C, 10, 17, 4E, 24, 5C, 9C, 10, 17, 2A, 24, 30, 26, 30, 90, 30, 24, 5C, 24, 2A, 4E, 4E, and 90, i.e., Q1 to Q. 38 ;

[0083] The final updated G n Marked as Q n Solve Q n All factors are named encoding factors, for any Q n Analyze the coding factors to find F n The largest factor of a hexadecimal number f that is less than or equal to f is denoted as F. n Calculate Q n / F n P was obtained n ;

[0084] F n Placed in P n The preceding part forms a new number, labeled H. n Arrange H in ascending order of n n Combine them to obtain the initial ciphertext;

[0085] In specific implementation, taking Q1 as an example, Q1 is 30, and its factors include 1, 2, 3, 4, 6, 8, c, 10, 18, and 30. Among them, 1, 2, 3, 4, 6, 8, and c are all less than f, and the maximum value is c. Therefore, F1 is c. Calculating Q1 / F1 = P1 = 30 / c = 4, we get H1 as c4. Similarly, we calculate all H1 values. n We obtain H1 to H 38 The sequence is c4, 123, 417, cc, 82, 31, c3, c3, 417, 123, e3, e3, e3, e2, 417, dc, 82, 123, d6, c3, 417, dc, 82, 123, e3, c3, c4, 213, c4, cc, c4, c3, 417, c3, e3, d6, d6, and cc. Combining these, we get the initial ciphertext c4123417cc8231c3c3417123e3e3e3e2417dc82123d6c3417dc82123e3c3c4213c4ccc4c3417c3e3d6d6cc. When decrypting using the initial ciphertext, assuming DE1 is solved using H1, we first assume DE1 is x, and substitute x into G. n Solve Q n And by Q n Solve for H nIf the solved H1 is equal to the H1 corresponding to the decryption, the solution is successful. The value of x increases sequentially from 0 to f, and the solution is obtained accordingly. In rare cases, more than one value of x may satisfy the solution condition. In this case, it is only necessary to restore the solved data encoding to power data and check whether the power data is garbled. The power data without garbled characters can be taken as the final decryption result. To facilitate the differentiation of different H1 values... n H can be n The number is uniformly limited to three digits, that is, the two-digit H. n Adding a 0 to the first digit of the ciphertext results in the actual initial ciphertext: 0c41234170cc0820310c30c34171230e30e30e30e24170dc0821230d60c34170dc0821230e30c30c42130c40cc0c40c34170c30e30d60d60cc. This allows each three digits to be treated as an H. n Decrypt;

[0086] The verification encryption unit is used to perform verification encryption calculations on the initial ciphertext during data encryption to obtain securely transmitted data.

[0087] The verification encryption unit is configured with a verification encryption policy, which includes:

[0088] Starting with n=1, calculate H n+1 -H n H n+1 +H n H n -H n+1 H n ×H n+1 H n / H n+1 and H n+1 / H n The calculation result is marked as L(n,i), where i is a positive integer and (n,i) is the index of L, corresponding to L(n,1) to L(n,6) from left to right;

[0089] Set the verification number rules, which require the verification number to be a single digit and a positive integer;

[0090] L(n,i) that conform to the verification number rules are classified as compliant numbers, and H in the initial state ciphertext is... n With H n+1 Randomly insert a corresponding compliant number between them;

[0091] Analyze n+2 again until H is reached. n+1 Until it no longer exists, the initial state ciphertext after the compliant number will be named the intermediate state ciphertext;

[0092] A sequence number is added before the medium-state ciphertext, separated by the symbol ".". At the same time, a timestamp of the current time is added after the medium-state ciphertext, separated by the symbol ".". Finally, securely transmitted data is obtained.

[0093] In practical applications, taking n=1 as an example, H n+1 and H n Given c and 0 respectively, L(1,1) to L(1,6) are calculated to have c, c, -c, 0, 0 and no solution respectively. Among them, c, c, 0 and 0 are single digits and positive integers. Therefore, c and 0 are considered valid numbers. A c or 0 is randomly placed between H1 and H2. Then, n+2 is analyzed again, and the final ciphertext is 0cc431253451770c0c00822034100c330c934417712530ee300eb30ee330e72451770d3c00823121300d660cf3451770d3c00821121300e330cf30cc4621230cc440c0c0 The data 0c440cf3441770c4300e300d760dd660c0c, after further processing, yields the secure transmission data v6ds561DS15T83f4.0cc431253451770c0c00822034100c330c934417712530ee300eb30ee330e72451770d3c00823121300d660cf3451770d3c00821121300e330cf30cc4621230cc440c0c00c440cf3441770c4300e300d760dd660c0c.1745645788.

[0094] The data verification and storage module is used to send securely transmitted data to the smart grid platform via encrypted transmission, and at the same time to verify the integrity of the securely transmitted data; the data verification and storage module includes an integrity verification unit and a verification processing unit;

[0095] The integrity verification unit is used to send secure transmission data to the smart grid platform via encrypted transmission, and at the same time perform integrity verification on the secure transmission data;

[0096] The integrity verification unit is configured with an integrity verification strategy, which includes:

[0097] Securely transmitted data is sent to the smart grid platform via encrypted transmission. The ciphertext between the two symbols "." is obtained and named the code to be verified.

[0098] Number the digits in the code to be verified in left-to-right order, using the symbol C. j This indicates that j is a positive integer and j is the index of C;

[0099] Starting with j=1, calculate C j+2 -C j C j+2 +C j C j -C j+2 C j ×C j+2 C j / C j+2 And C j+2 / C j Name the calculation result as the verification reference number;

[0100] Query C j+1 If it is a verification reference number, output a verification pass signal; otherwise, output a verification failure signal.

[0101] Add j+3 and recalculate and verify until C is reached. j+2 If all output verification signals pass, output a normal data signal; otherwise, output an abnormal data signal.

[0102] In practical applications, the code to be verified is obtained as 0cc431253451770c0c00822034100c330c934417712530ee300eb30ee330e72451770d3c00823121300d660cf3451770d3c00821121300e330cf30cc4621230cc440c0c00c440cf3441770c4300e300d760dd660c0c, which is then numbered as C. j 1≤j≤171, taking j=1 as an example, at this time C j+2 and C j Calculate C given c and 0. j+2 -C j C j+2 +C j C j -C j+2 C j ×C j+2 C j / C j+2 And C j+2 / C j The obtained verification reference numbers include c, c, -c, 0, 0, and no solution. C2 is c, which belongs to the verification reference number. Therefore, a verification pass signal is output. j+3 is then added and recalculated and verified until C is obtained.j+2 Until it no longer exists, all verification passes signals are finally output, so the output data is normal.

[0103] The inspection and processing unit is used to process securely transmitted data based on the inspection results;

[0104] The inspection processing unit is configured with an inspection processing strategy, which includes:

[0105] If the output data is normal, the secure transmission data is stored; if the output data is abnormal, the secure transmission data of the smart meter corresponding to the serial number is retrieved again.

[0106] When a user with access privileges accesses securely transmitted data, the serial number before the left-hand "." is obtained to query the smart meter to which the securely transmitted data belongs, and the timestamp after the right-hand "." is obtained.

[0107] Enter timestamps and serial numbers into the key generation model to analyze the exclusive key for secure data transmission;

[0108] Securely transmitted data can be decrypted by executing a reverse program that encrypts data using a proprietary key.

[0109] In practical applications, a normal data signal is output, and the securely transmitted data is stored. During storage, the intermediate-state ciphertext in the securely transmitted data is restored to the initial-state ciphertext before storage. Specifically, for v6ds561DS15T83f4.0c41234170cc0820310c30c34171230e30e30e30e24170dc0821230d60c34170dc0821230e30c To restore the intermediate-state ciphertext to the initial-state ciphertext, simply remove the corresponding numbers. This will not be explained in detail in this embodiment. Entering the timestamp and serial number into the key generation model is actually entering the time corresponding to the timestamp into the key generation model. The time corresponding to the timestamp 1745645788 is 2025-04-26 13:36:28. That is, entering 202542613 and serial number v6ds561DS15T83f4 into the key generation model generates a unique key and decrypts the initial-state ciphertext in the secure transmission data. The decryption process is the reverse of the encryption process. This will not be explained in detail in this embodiment.

[0110] Example 2, please refer to Figure 3 As shown, this application provides a method for encrypted data transmission in a smart grid platform, comprising the following steps:

[0111] Step S1 involves installing smart meters in the housing, installing encrypted transmission devices within the smart meters, and configuring a serial number for each smart meter. Step S1 includes the following sub-steps:

[0112] Step S101: Install a smart meter in the housing and install an encrypted transmission device in the smart meter;

[0113] Step S102: Configure a serial number for each smart meter by randomly generating a unique serial number. The serial number consists of uppercase and lowercase letters and numbers in the first digit, and each serial number is unique.

[0114] Step S2 involves constructing a key generation model, generating a unique key based on the sequence number, and periodically updating the unique key using a time dimension. Step S2 includes the following sub-steps:

[0115] Step S201: The default exclusive key is updated once every hour to obtain the current time. The current time consists of year, month, day and hour, and is in continuous number format without any text or punctuation.

[0116] Step S202: Extract the uppercase and lowercase letters from the serial number in order from left to right to obtain the letter sequence; extract the numbers from the serial number in order from left to right to obtain the number sequence.

[0117] Step S203: Convert the uppercase and lowercase letters in the letter sequence into decimal numbers according to ASCII encoding to obtain the letter conversion sequence. Place the letter conversion sequence in front of the number sequence to form a new number string, which is named the initial key string.

[0118] Step S204: Add the initial key string to the current time to obtain the unique key;

[0119] Step S3 involves encrypting the meter data in the smart meter using a dedicated key to obtain securely transmitted data. Step S3 includes the following sub-steps:

[0120] Step S301: Perform initial encryption calculations on the meter data in the smart meter using a dedicated key to obtain the initial ciphertext;

[0121] Step S301 includes the following sub-steps:

[0122] Step S301.1: Obtain the meter data, convert the meter data into UTF-8 encoding in hexadecimal format, name it data encoding, and convert the exclusive key from decimal to hexadecimal, name it key encoding;

[0123] Step S301.2: Number the numbers in the data encoding and the key encoding from left to right, respectively, using the symbol DE. nand KE m It is represented as follows, where n and m are both positive integers, and n is the index of DE and m is the index of KE;

[0124] Step S301.3, starting with n and m=1, set DE n Marked as G n Analyze KE m Is it 0 and G? n Is it KE? m Multiples of KE m Not equal to 0 and G n Is it KE? m If it is a multiple of G, then calculate G. n / KE m , will G n Update to the calculation result; otherwise, calculate G. n +KE m , will G n Update to the calculation result, add m+1 and repeat the judgment and update G. n This continues until the maximum value of m is reached;

[0125] Step S301.4: When the maximum value of m is reached, reset m to 1 and increment n by 1, then update G again. n This continues until the maximum value of n is reached;

[0126] Step S301.5, the final updated G n Marked as Q n Solve Q n All factors are named encoding factors, for any Q n Analyze the coding factors to find F n The largest factor of a hexadecimal number f that is less than or equal to f is denoted as F. n Calculate Q n / F n P was obtained n ;

[0127] Step S301.6, F n Placed in P n The preceding part forms a new number, labeled H. n Arrange H in ascending order of n n Combine them to obtain the initial ciphertext;

[0128] Step S302: Perform verification encryption calculations on the initial ciphertext during data encryption to obtain secure transmission data;

[0129] Step S302 includes the following sub-steps:

[0130] Step S302.1, starting with n=1, calculate Hn+1 -H n H n+1 +H n H n -H n+1 H n ×H n+1 H n / H n+1 and H n+1 / H n The calculation result is marked as L(n,i), where i is a positive integer and (n,i) is the index of L, corresponding to L(n,1) to L(n,6) from left to right;

[0131] Step S302.2: Set the verification number rule. The verification number rule is that the verification number must be a single digit and a positive integer.

[0132] Step S302.3: Summarize L(n,i) that conform to the verification number rules as compliant numbers, and add them to H in the initial state ciphertext. n With H n+1 Randomly insert a corresponding compliant number between them;

[0133] Step S302.4, calculate n+2 and analyze again until H. n+1 Until it no longer exists, the initial state ciphertext after the compliant number will be named the intermediate state ciphertext;

[0134] Step S302.5: Add a sequence number before the intermediate-state ciphertext, separated by the symbol ".", and add a timestamp of the current time after the intermediate-state ciphertext, separated by the symbol ".", to finally obtain the secure transmission data;

[0135] Step S4 involves sending the secure transmission data to the smart grid platform via encrypted transmission, while simultaneously verifying the integrity of the secure transmission data. Step S4 includes the following sub-steps:

[0136] Step S401: The secure transmission data is sent to the smart grid platform via encrypted transmission, and the integrity of the secure transmission data is verified at the same time.

[0137] Step S401 includes the following sub-steps:

[0138] Step S401.1: Send the secure transmission data to the smart grid platform via encrypted transmission, obtain the intermediate ciphertext between the two symbols ".", and name it the code to be verified;

[0139] Step S401.2: Number the digits in the code to be verified in order from left to right, using the symbol C. j This indicates that j is a positive integer and j is the index of C;

[0140] Step S401.3, starting with j=1, calculate C j+2 -C j C j+2 +C j C j -C j+2 C j ×C j+2 C j / C j+2 And C j+2 / C j Name the calculation result as the verification reference number;

[0141] Step S401.4, query C j+1 If it is a verification reference number, output a verification pass signal; otherwise, output a verification failure signal.

[0142] Step S401.5: Add j+3 and recalculate and verify until C is reached. j+2 If all output verification signals pass, output a normal data signal; otherwise, output an abnormal data signal.

[0143] Step S402: Process the secure transmission data based on the inspection results;

[0144] Step S402 includes the following sub-steps:

[0145] Step S402.1: If the output data is normal, the secure transmission data is stored; if the output data is abnormal, the secure transmission data of the smart meter corresponding to the serial number is retrieved again.

[0146] Step S402.2: When a user with access rights accesses the secure transmission data, obtain the serial number before the left-hand symbol "." to query the smart meter to which the secure transmission data belongs, and obtain the timestamp after the right-hand symbol ".".

[0147] Step S402.3: Enter the timestamp and sequence number into the key generation model to analyze the exclusive key for secure data transmission;

[0148] Step S402.4: By executing the reverse program of data encryption using the exclusive key, the securely transmitted data can be decrypted.

[0149] Example 3, please refer to Figure 4 As shown, Figure 4A schematic diagram of an electronic device is provided, which may include a processor, a communication interface, a memory, and a communication bus. The processor, communication interface, and memory communicate with each other via the communication bus. The memory stores computer-readable instructions, and the processor can call these instructions. When the processor executes a computer-readable instruction, it performs steps as described in a smart grid platform data encryption transmission method to achieve the following functions: installing smart meters in residential buildings; installing encryption transmission devices in the smart meters; configuring a serial number for each smart meter; constructing a key generation model; generating a unique key based on the serial number; periodically updating the unique key using a time dimension; encrypting the meter data in the smart meters using the unique key to obtain secure transmission data; and sending the secure transmission data to the smart grid platform via encrypted transmission, while simultaneously verifying the integrity of the secure transmission data.

[0150] Furthermore, when the logical instructions in the aforementioned memory can be implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0151] Example 4: This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it performs the steps of the above-described smart grid platform data encryption transmission method to achieve the following functions: installing smart meters in housings, installing encryption transmission devices in the smart meters, and configuring a serial number for each smart meter; constructing a key generation model, generating a unique key based on the serial number, and periodically updating the unique key using a time dimension; encrypting the meter data in the smart meters using the unique key to obtain secure transmission data; and sending the secure transmission data to the smart grid platform via encrypted transmission, while simultaneously verifying the integrity of the secure transmission data.

[0152] Based on the above description of the embodiments, the embodiments of the present invention can be provided as methods, systems, or computer program products. Based on this understanding, the above technical solutions, in essence or in terms of their contribution to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or certain parts of the embodiments.

[0153] In the embodiments provided in this application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation. Furthermore, multiple modules or units may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces. The indirect coupling or communication connection between systems, modules, and units may be electrical, mechanical, or other forms.

[0154] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for encrypted data transmission in a smart grid platform, characterized in that, Includes the following steps: Install smart meters in housing, install encrypted transmission devices in smart meters, and assign a serial number to each smart meter; A key generation model is constructed to generate a unique key based on the serial number, while introducing a time dimension to periodically update the unique key; Secure data transmission is achieved by encrypting the meter data in the smart meter using a dedicated key. Securely transmitted data is sent to the smart grid platform via encrypted transmission, and the integrity of the securely transmitted data is verified at the same time. Encrypting the meter data in a smart meter using a dedicated key to obtain secure data transmission involves the following sub-steps: The initial encryption calculation in the data encryption of the smart meter is performed using a dedicated key to obtain the initial ciphertext. The initial ciphertext is subjected to verification encryption calculations during data encryption to obtain securely transmitted data. The initial encryption calculation for data encryption in smart meters using a dedicated key to obtain the initial ciphertext includes the following sub-steps: Obtain the meter data, convert the meter data into UTF-8 encoding in hexadecimal format, and name it the data encoding; convert the exclusive key from decimal to hexadecimal and name it the key encoding. The numbers in the data encoding and the numbers in the key encoding are numbered from left to right, and are respectively represented by the symbols DE. n and KE m It is represented as follows, where n and m are both positive integers, and n is the index of DE and m is the index of KE; Starting with n and m=1, DE n Marked as G n Analyze KE m Is it 0 and G? n Is it KE? m Multiples of KE m Not equal to 0 and G n Is it KE? m If it is a multiple of G, then calculate G. n / KE m , will G n Update to the calculation result; otherwise, calculate G. n +KE m , will G n Update to the calculation result, add m+1 and repeat the judgment and update G. n This continues until the maximum value of m is reached; When the maximum value of m is reached, m is reset to 1 and n+1 is incremented, then G is updated again. n This continues until the maximum value of n is reached; The final updated G n Marked as Q n Solve Q n All factors are named encoding factors, for any Q n Analyze the coding factors to find F n The largest factor of a hexadecimal number f that is less than or equal to f is denoted as F. n Calculate Q n / F n P was obtained n ; F n Placed in P n The preceding part forms a new number, labeled H. n Arrange H in ascending order of n n Combine them to obtain the initial ciphertext; The verification encryption calculation in the data encryption process of the initial ciphertext to obtain secure transmission data includes the following sub-steps: Starting with n=1, calculate H n+1 -H n H n+1 +H n H n -H n+1 H n ×H n+1 H n / H n+1 and H n+1 / H n The calculation result is marked as L(n,i), where i is a positive integer and (n,i) is the index of L, corresponding to L(n,1) to L(n,6) from left to right; Set verification number rules, wherein the verification number must be a single digit and a positive integer; L(n,i) that conform to the verification number rules are classified as compliant numbers, and H in the initial state ciphertext is... n With H n+1 Randomly insert a corresponding compliant number between them; Analyze n+2 again until H is reached. n+1 Until it no longer exists, the initial state ciphertext after the compliant number will be named the intermediate state ciphertext; A sequence number is added before the medium-state ciphertext, separated by the symbol ".". At the same time, a timestamp of the current time is added after the medium-state ciphertext, separated by the symbol ".". Finally, securely transmitted data is obtained.

2. The method for encrypted data transmission in a smart grid platform according to claim 1, characterized in that, Installing smart meters in residential buildings, installing encrypted transmission devices in the smart meters, and configuring serial numbers for each smart meter include the following sub-steps: Install smart meters in housing and install encrypted transmission devices in the smart meters; Each smart meter is configured with a serial number, which is randomly generated and consists of uppercase and lowercase letters and numbers as the first digit. Each serial number is unique.

3. The method for encrypted data transmission in a smart grid platform according to claim 2, characterized in that, Constructing a key generation model, generating a unique key based on a sequence number, and periodically updating the unique key by incorporating a time dimension includes the following sub-steps: The default private key is updated once every hour to obtain the current time, which consists of year, month, day and hour, and is in continuous number format without any text or punctuation. Extract the uppercase and lowercase letters from the serial number in left-to-right order to obtain the letter sequence, and extract the numbers from the serial number in left-to-right order to obtain the number sequence. Convert the uppercase and lowercase letters in the letter sequence into decimal numbers according to ASCII encoding to obtain the letter conversion sequence. Place the letter conversion sequence in front of the number sequence to form a new number string, which is named the initial key string. Add the initial key string to the current time to obtain the unique key.

4. The method for encrypted data transmission in a smart grid platform according to claim 3, characterized in that, The secure transmission of data is carried out via encrypted transmission to the smart grid platform, and the integrity verification of the secure transmission data includes the following sub-steps: Securely transmitted data is sent to the smart grid platform via encrypted transmission, and the integrity of the securely transmitted data is verified at the same time. The data is processed based on the test results.

5. The method for encrypted data transmission in a smart grid platform according to claim 4, characterized in that, The secure transmission of data is carried out via encrypted transmission to the smart grid platform, and the integrity verification of the secure transmission data includes the following sub-steps: Securely transmitted data is sent to the smart grid platform via encrypted transmission. The ciphertext between the two symbols "." is obtained and named the code to be verified. Number the digits in the code to be verified in left-to-right order, using the symbol C. j This indicates that j is a positive integer and j is the index of C; Starting with j=1, calculate C j+2 -C j C j+2 +C j C j -C j+2 C j ×C j+2 C j / C j+2 And C j+2 / C j Name the calculation result as the verification reference number; Query C j+1 If it is a verification reference number, output a verification pass signal; otherwise, output a verification failure signal. Add j+3 and recalculate and verify until C is reached. j+2 If all output verification signals pass, output a normal data signal; otherwise, output an abnormal data signal.

6. The method for encrypted data transmission in a smart grid platform according to claim 5, characterized in that, Processing securely transmitted data based on the test results includes the following sub-steps: If the output data is normal, the secure transmission data is stored; if the output data is abnormal, the secure transmission data of the smart meter corresponding to the serial number is retrieved again. When a user with access privileges accesses securely transmitted data, the serial number before the left "." is obtained to query the smart meter to which the securely transmitted data belongs, and the timestamp after the right "." is obtained. Enter timestamps and serial numbers into the key generation model to analyze the exclusive key for secure data transmission; Securely transmitted data can be decrypted by executing a reverse program that encrypts data using a proprietary key.

7. A smart grid platform data encryption transmission system, used to implement the smart grid platform data encryption transmission method according to any one of claims 1-6, characterized in that, It includes a meter configuration module, a key generation module, a data encryption and transmission module, and a data verification and storage module; the meter configuration module, key generation module, and data verification and storage module are respectively connected to the data encryption and transmission module. The meter configuration module is used to install smart meters in housing, install encrypted transmission devices in smart meters, and configure serial numbers for each smart meter; The key generation module is used to construct a key generation model, generate a unique key based on the serial number, and periodically update the unique key by introducing a time dimension. The data encryption transmission module is used to encrypt the meter data in the smart meter using a dedicated key to obtain secure data transmission. The data verification and storage module is used to send securely transmitted data to the smart grid platform via encrypted transmission, and at the same time to verify the integrity of the securely transmitted data.

Citation Information

Patent Citations

  • Encryption method, system and terminal device for electric power data

    CN109104279A

  • Power data encryption transmission method and system for work resumption detection and readable medium

    CN111740831A