Interactive platform information storage method based on data coding

By segmenting and encoding charging pile operation data and using multi-layer encryption, combined with XOR and staggered XOR operations and downsampling technology, the problem of insufficient security of charging pile operation data is solved, and efficient data protection is achieved.

CN121808856AActive Publication Date: 2026-04-07BEIJING GUYU TECHNOLOGY CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-26
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing methods for encrypting charging pile operation data rely on fixed keys, which are easily compromised and pose a high risk of data leakage, failing to effectively protect user privacy and business information.

Method used

An interactive platform information storage method based on data encoding is adopted. By segmenting and encoding the charging pile operation data, performing XOR operations and staggered XOR operations, and combining downsampling technology, multi-layer independent keys are used for encryption to ensure security at different levels.

Benefits of technology

It improves the security of charging pile operation data, increases the difficulty of data cracking, ensures the security and integrity of data storage, and protects user privacy and business information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121808856A_ABST
    Figure CN121808856A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of charging pile management data storage, in particular to an interactive platform information storage method based on data coding. The method comprises the steps of dividing operation data of a charging pile in a historical time period to obtain multiple segments of operation data, and performing binary coding on each segment of operation data to obtain an initial coding sequence of each segment of operation data; on the basis of the discreteness index corresponding to each segment of operation data and the total number of times of charging transactions in each segment of operation data, obtaining a downsampling layer number corresponding to the initial coding sequence of each segment of operation data; and performing exclusive-or operation and dislocation exclusive-or operation on every two codes in the initial coding sequence of each segment of operation data based on the downsampling layer number to obtain an exclusive-or coding sequence of each corresponding layer, and storing the exclusive-or coding sequence of each layer. According to the invention, the safety of charging pile operation data storage is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data storage technology for charging pile management, and specifically to an interactive platform information storage method based on data encoding. Background Technology

[0002] In recent years, with the rapid development of new energy vehicles, the importance of their supporting charging piles has become increasingly apparent. In order to monitor the operation of charging piles, it is necessary to manage the charging pile data in a unified manner. This mainly involves the operational data of charging piles, specifically including the charging transaction time, user information, and the operation data of the charging process. This means that the operational data needs to be stored in a unified manner. However, since the operational data involves user privacy and charging pile operation business data, data leakage can easily lead to the loss of user privacy and business information, thereby affecting the operation of charging piles. Therefore, encryption is the first step in managing and storing this data.

[0003] Data encryption mainly utilizes the relationships between data to replace or scramble the original data. Existing technologies mainly include two methods: symmetric encryption and asymmetric encryption. However, most existing encryption methods use a fixed number of keys with fixed characteristics for encryption. The security of data encrypted using this method depends entirely on the fixed key. Once the fixed key is cracked, all data will be lost, and the encryption effect is uncontrollable. Therefore, how to perform multi-layer encryption on the operational data of charging piles and set different keys for different layers to improve the security of the operational data of charging piles is an important issue. Summary of the Invention

[0004] To address the aforementioned technical problems, the present invention aims to provide an interactive platform information storage method based on data encoding, the specific technical solution of which is as follows: This invention provides an information storage method for an interactive platform based on data encoding, the method comprising the following steps: Obtain operational data of charging piles over historical time periods; The operation data of the charging pile is divided into at least two segments. Each segment of operation data is binary encoded to obtain the initial encoding sequence of each segment of operation data. Based on the discreteness index corresponding to each segment of operation data and the total number of charging transactions in each segment of operation data, the number of downsampling layers corresponding to the initial encoding sequence of each segment of operation data is obtained. For any segment of operational data: perform XOR and misaligned XOR operations on the initial encoded sequence of the operational data segment to obtain the corresponding XOR encoded sequence of layer 1; then, for layer n, perform XOR and misaligned XOR operations on each XOR encoded sequence of layer n-1 to obtain the corresponding XOR encoded sequence of layer n; n=2, 3, ..., N, where N is the downsampling layer number corresponding to the initial encoded sequence of the operational data segment; store the XOR encoded sequence of layer N.

[0005] Preferably, the step of performing XOR and shifted XOR operations on the initial encoded sequence of the operational data segment to obtain the corresponding XOR encoded sequence of the first layer includes: Obtain the target codes in the initial encoding sequence of the operational data segment. The number of target codes in the initial encoding sequence is even. Perform XOR and misaligned XOR operations on the target codes in the initial encoding sequence of the operational data segment to obtain the corresponding XOR encoding sequence of the first layer.

[0006] Preferably, the process of obtaining the target code in the initial encoding sequence of the operational data segment is as follows: if the length of the initial encoding sequence is even, then all codes in the initial encoding sequence are recorded as target codes; if the length of the initial encoding sequence is odd, then the last code in the initial encoding sequence is recorded as the first code, and all codes in the initial encoding sequence except the first code are recorded as target codes.

[0007] Preferably, the target code in the initial encoding sequence of the operational data segment is subjected to XOR operation and misaligned XOR operation to obtain the corresponding Layer 1 XOR encoding sequence, including: Based on the order of the target codes in the initial encoding sequence of this segment of operational data, a first grouping operation is performed on the target codes in the initial encoding sequence of this segment of operational data. The first grouping operation is to group the (2k-1)th and 2kth target codes in the initial encoding sequence into the kth group, where k=1, 2, ... K is the number of target codes in the initial encoded sequence of this segment of operational data; Based on the order of the target codes in the initial coding sequence of the operational data segment, a second grouping operation is performed on the target codes in the initial coding sequence of the operational data segment. The second grouping operation is to group the 2kth target code and the 2k+1th target code in the initial coding sequence into the kth group, and to group the Kth target code and the 1st target code in the initial coding sequence into the last group. Perform an XOR operation on the two target codes in each group of codes obtained from the first grouping operation, and combine the XOR operation results together according to the grouping order to form the first XOR code sequence of the first layer corresponding to the initial code sequence; perform an XOR operation on the two target codes in each group of codes obtained from the second grouping operation, and combine the XOR operation results together according to the grouping order to form the second XOR code sequence of the first layer corresponding to the initial code sequence.

[0008] Preferably, if the first code does not exist in the initial encoding sequence, the ciphertext data corresponding to the first layer is the XOR encoding sequence of the first layer, and the key corresponding to the first layer is any bit of the encoding in the initial encoding sequence and the direction of the encoding operation; if the first code exists in the initial encoding sequence, the ciphertext data corresponding to the first layer is the XOR encoding sequence of the first layer, and the key corresponding to the first layer is any bit of the target code, the first code, and the direction of the encoding operation in the initial encoding sequence; the direction of the encoding operation includes a left-to-right operation direction and a right-to-left operation direction.

[0009] Preferably, the step of obtaining the number of downsampling layers corresponding to the initial encoding sequence of each segment of operational data based on the discrete indicators corresponding to each segment of operational data and the total number of charging transactions in each segment of operational data includes: For the j-th segment of operational data: The ratio of the total number of charging transactions in this segment of operational data to the dispersion index corresponding to this segment of operational data is used as the importance index of this segment of operational data; The number of downsampling layers corresponding to the initial encoded sequence of this segment of operational data is calculated using the following formula: in, Let j be the number of downsampling layers corresponding to the initial encoded sequence of the j-th segment of operational data. For the j-th segment of operational data, The minimum value of the importance indicator for all segment operation data. To round down, To preset the number of downsampling layers, It represents the logarithmic function with base 2. To adjust the parameters.

[0010] Preferably, the acquisition of discrete indicators corresponding to each segment of operational data includes: For any segment of operational data: calculate the mean distance between all operational data in that segment and the center of the cluster it belongs to, and use this as the dispersion index for that segment of operational data.

[0011] The present invention has at least the following beneficial effects: This invention first divides the operational data of charging piles in a historical time period into multiple segments. Then, it performs binary encoding on each segment to obtain an initial encoding sequence. Next, it downsamples the initial encoding sequences of each segment to encrypt the charging pile operational data. Considering that the characteristics of different segments are not identical, different characteristics should correspond to different encoding times. Therefore, this invention determines the number of downsampling layers corresponding to the initial encoding sequence of each segment based on the data characteristics. Based on the number of downsampling layers corresponding to the initial encoding sequences of each segment, this invention performs different numbers of XOR and misaligned XOR operations on the initial encoding sequences of different segments to complete multi-layer encryption of the initial encoding sequences. This ensures that the encryption process conforms to the data encryption and decryption rules, hiding the original data while ensuring that no information in the original data is lost. This invention performs multi-layer downsampling on the initial encoding sequence, with each layer having its own independent key, eliminating the transitivity of fixed keys in multi-layer encryption, improving the security between different downsampling layers, increasing the difficulty of cracking the charging pile operational data, and achieving secure storage of the charging pile operational data. Attached Figure Description

[0012] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 A flowchart of the interactive platform information storage method based on data encoding provided by the present invention; Figure 2 This is a schematic diagram illustrating the operation of the encoding from left to right in the initial encoding sequence; Figure 3 This is a schematic diagram illustrating the operation of the encoding from right to left in the initial encoding sequence. Detailed Implementation

[0014] To further illustrate the technical means and effects adopted by the present invention to achieve the intended purpose, the following detailed description of the interactive platform information storage method based on data encoding proposed in accordance with the present invention is provided in conjunction with the accompanying drawings and preferred embodiments.

[0015] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0016] The specific solution of the interactive platform information storage method based on data encoding provided by the present invention will be described in detail below with reference to the accompanying drawings.

[0017] Example of an interactive platform information storage method based on data encoding: This embodiment proposes an interactive platform information storage method based on data encoding, such as... Figure 1 As shown, the interactive platform information storage method based on data encoding in this embodiment includes the following steps: Step S1: Obtain the operational data of the charging pile during the historical charging process.

[0018] The scenario addressed in this embodiment is as follows: charging pile data mainly includes operational data, which involves personal information of charging users and commercial data of charging piles. Therefore, the operational data of charging piles is mainly encrypted. Different data require different encryption effects during the data encryption process. This embodiment uses encoding downsampling for data encryption and determines the number of downsampling layers according to data characteristics to achieve controllable multi-layer encryption.

[0019] The operational data generated by charging piles includes information data of charging users, charging time data, charging pile location data, and charging pile operation data during the charging process. To manage all charging piles uniformly, this embodiment constructs an intelligent management platform for charging piles. Operational data from all charging piles in different locations is transmitted to this unified intelligent management platform. The platform encrypts the operational data before storage, and platform administrators set key permissions to facilitate the management of charging pile operational data.

[0020] This embodiment acquires the operational data of charging piles over a historical period. During this period, multiple charging transactions were conducted. The operational data of the charging piles includes charging user data, charging time data, charging pile location data, and charging pile operation data during the charging process. In this embodiment, the length of the historical period is set to six months. In specific applications, implementers can set the length of the historical period according to specific circumstances.

[0021] Step S2: Divide the operation data of the charging pile into at least two segments of operation data, and encode each segment of operation data into binary to obtain the initial encoding sequence of each segment of operation data; based on the discrete index corresponding to each segment of operation data and the total number of charging transactions in each segment of operation data, obtain the downsampling layer corresponding to the initial encoding sequence of each segment of operation data.

[0022] Considering the clustered distribution of charging pile operation data over time, the data will be segmented and encrypted. The encryption process primarily utilizes the original relationships between data points to transform the data. This embodiment employs downsampling of segmented encoding to transform the original coded data, thereby encrypting the charging pile operation data.

[0023] The operational data of charging piles is mainly generated with each charging transaction. Charging transactions can be either dense or sparse in time series, that is, charging transactions have clustering characteristics in time series. Therefore, based on the clustering characteristics of transactions in time series, the operational data of charging piles in historical time periods are segmented and then encrypted separately.

[0024] The mean-shift clustering algorithm is used to cluster the charging pile operation data obtained in step S1 over a historical period, resulting in multiple clusters. In this embodiment, clustering the charging pile operation data over a time series aims to segment the data and then encrypt each segment. Considering that some charging transactions may be sparsely distributed and grouped into a single cluster, meaning some clusters contain less data, smaller clusters need to be merged to facilitate subsequent data encoding. Specifically, the number of transactions in each cluster is counted, and a transaction count threshold is set. Determine whether the number of transactions in each cluster is less than [a certain value]. If the value is less than 1, the corresponding cluster will be used as the cluster to be merged, thus obtaining multiple clusters to be merged. For the first cluster: If the cluster marked as to be merged is the first cluster in the time series within the historical period, since it does not have a previous adjacent cluster in the time series and only has a subsequent adjacent cluster, then the first cluster is directly merged with its subsequent adjacent cluster. For the last cluster: If the cluster marked as to be merged is the last cluster in the time series of the historical period, since it has no subsequent adjacent cluster in the time series, only the preceding adjacent cluster, it is directly merged with its preceding adjacent cluster (the second to last cluster). For any cluster to be merged: Obtain the clusters that are temporally adjacent to the cluster to be merged. Since the charging pile operation data is constantly updated, there are two clusters adjacent to the cluster to be merged: one corresponding to the operation data of the time period preceding the time period of the cluster to be merged, and the other corresponding to the operation data of the time period following the time period of the cluster to be merged. The cluster with fewer transactions among the two temporally adjacent clusters is designated as the first cluster. The cluster to be merged is then merged with the first cluster. This ensures that the length of data in each segment of operation data is as similar as possible, facilitating subsequent encoding. Using the above method, all clusters to be merged are merged. After merging, multiple segments of charging pile operation data are obtained, that is, the historical time period's charging pile operation data is divided into multiple segments. Thus, multiple segments of charging pile operation data are obtained. This embodiment sets... The value is 5. In specific applications, implementers can set it according to the specific circumstances.

[0025] In the above steps, the operation data of the charging piles was divided into multiple segments. Each segment of operation data includes data in various forms, such as charging time, charging users, and power output during the charging process, which are involved in multiple charging transactions. In order to facilitate the unified encryption of the operation data of the charging piles in the future, it is first necessary to unify the representation of the operation data. This embodiment will use binary encoding to obtain unified binary data. Specifically, for any segment of operation data: Huffman coding technology is used to encode all characters in the segment of operation data to obtain a segment of binary encoded data. This segment of binary encoded data is used as the initial encoding sequence of the segment of operation data. Using the above method, the initial encoding sequence of each segment of operation data can be obtained. Huffman coding is an existing technology and will not be described in detail here.

[0026] This embodiment will use multi-layer coding downsampling to encrypt the initial coding sequence. Therefore, it is necessary to determine the number of downsampling layers corresponding to the initial coding sequence of each segment of operational data based on the original features corresponding to the initial coding sequence.

[0027] For the j-th segment of operational data: If the clustering of a segment of operational data is high, then the distance between each charging transaction and the cluster center is relatively short. Therefore, the distance between each operational data point and the center of its respective cluster can characterize the degree of clustering of the operational data segment. Based on this, the mean distance between all operational data points and the center of their respective clusters in the time series is calculated based on the distance between each charging transaction and the center of its respective cluster in the operational data segment, and this mean distance is used as the dispersion index for that segment of operational data. The higher the total number of charging transactions in the operational data segment and the closer the distance between each operational data point and the center of its respective cluster... The smaller the value, the more frequently the user charged within that period, indicating greater importance of the operational data. The total number of charging transactions is directly proportional to importance, while the dispersion index is inversely proportional. Therefore, in this embodiment, the ratio of the total number of charging transactions to the corresponding dispersion index of the operational data segment is used as the importance index of that segment. The importance index characterizes the degree of importance of the corresponding operational data; the greater the importance of the operational data, the more important it is. To ensure the reliability of data encryption, the corresponding downsampling layers should be more numerous. Based on this, according to the importance index of the operational data segment, the number of downsampling layers corresponding to the initial encoding sequence of the operational data segment is calculated, i.e.: in, Let j be the number of downsampling layers corresponding to the initial encoded sequence of the j-th segment of operational data. For the j-th segment of operational data, The minimum value of the importance indicator for all segment operation data. To round down, To preset the number of downsampling layers, It represents a logarithmic function with base 2; To adjust the parameters, this embodiment sets... The value is 3. The value is 0.1, and in specific applications, the implementer can set it themselves. and The value; introduce adjustment parameters This is to prevent the denominator from being 0; using To determine the number of downsampling layers corresponding to the initial encoding sequence of the j-th segment of operational data, the higher the importance index of the j-th segment of operational data, the more frequent the charging transactions occur in that segment, the denser the data distribution, and the more information it contains. Therefore, to increase the difficulty of decrypting the data, the number of downsampling layers corresponding to the initial encoding sequence of that segment of operational data should be higher. The larger the value, the smaller the importance index of the j-th segment of operational data, indicating fewer charging transactions in that segment, a sparser data distribution, and less information. Therefore, the number of downsampling layers corresponding to the initial encoding sequence of that segment of operational data should be smaller. The smaller the value, the better.

[0028] It should be noted that during multi-layer downsampling operations, the length of the current layer's encoded sequence is obtained in real time. If the length of the current layer's encoded sequence is less than or equal to 3, or the current layer number... The calculation has been completed. If this happens, downsampling will stop, and the current layer will be stored as the final layer.

[0029] Thus, by using the above method, the number of downsampling layers corresponding to the initial encoded sequence of each segment of operational data is obtained.

[0030] Step S3: For any segment of operational data: Perform XOR and misaligned XOR operations on the initial encoded sequence of the operational data segment to obtain the corresponding XOR encoded sequence of layer 1; then, for layer n, perform XOR and misaligned XOR operations on each XOR encoded sequence of layer n-1 to obtain the corresponding XOR encoded sequence of layer n; n=2, 3, ..., N, where N is the downsampling layer number corresponding to the initial encoded sequence of the operational data segment; obtain all XOR encoded sequences generated by layer N; store only the XOR encoded sequences of layer N (i.e., the ciphertext data of the final downsampling layer) and the key set from layer 1 to layer N, discarding the intermediate process data from layer 1 to layer N-1.

[0031] The key set includes independent key parameters corresponding to the downsampling operation of each layer from layer 1 to layer N. Specifically, for layer n (1≤n≤N), the corresponding key parameters include: 1. Operation direction key: indicating the direction of XOR and misaligned XOR operations in this layer; 2. Position encoding key: if the length of the sequence being operated on in this layer is even, the reference encoding position used for restoration is recorded; if the length of the sequence being operated on in this layer is odd, the position and value of the first encoding and any target encoding other than the first encoding are recorded.

[0032] It should be noted that as the number of downsampling layers increases, the number of encoded sequences will split. For example, the first layer produces two sequences; the second layer processes each sequence from the first layer separately, resulting in four sequences. Therefore, storing the XOR encoded sequence of the Nth layer refers to storing the encoded sequence data of all branches obtained after the Nth layer operation.

[0033] In step S2 of this embodiment, an initial encoding sequence for each segment of operation data is obtained. The initial encoding sequence is composed of binary encoded data, which is used to represent the charging pile operation data of each segment. The 0 and 1 values ​​and their positions in the binary encoding jointly represent the charging pile operation data. Next, the initial encoding sequence will be changed by downsampling of the encoding, thereby realizing the encryption of the initial encoding sequence.

[0034] This embodiment uses the XOR operation of adjacent codes to change the code value. Considering that the XOR operation on the initial code sequence will also perform the XOR operation on the codes in the initial code sequence, different processing is required when the length of the initial code sequence is odd or even.

[0035] For any initial encoded sequence of operational data: Let the initial encoded sequence be denoted as Obtain the length of the initial encoded sequence, where the length is the total number of encoded (binary) numbers in the initial encoded sequence.

[0036] If the length of the initial encoded sequence is even, then perform XOR operations on each pair of codes in the initial encoded sequence in turn, and combine the results together in the order of the operations to obtain the encoded sequence after the XOR operation. , encoding sequence Let this be denoted as the first XOR encoding sequence of the first layer corresponding to the initial encoding sequence. That is, the result of the XOR operation between the first and second bits of the initial encoding sequence is taken as the first bit of the first XOR encoding sequence of the first layer; the result of the XOR operation between the third and fourth bits of the initial encoding sequence is taken as the second bit of the first XOR encoding sequence of the first layer; and so on, until the result of the XOR operation between the second-to-last and last bits of the initial encoding sequence is taken as the last bit of the first XOR encoding sequence of the first layer. It should be noted that there are two directions of encoding operation: from left to right. The operation is performed from right to left and from left to right. When performing the operation from left to right, the leftmost bit of the initial encoding sequence is used as the first bit, and the rightmost bit is used as the last bit. Similarly, when performing the operation from right to left, the rightmost bit of the initial encoding sequence is used as the first bit, and the leftmost bit is used as the last bit. During the XOR operation, the direction of the encoding operation can be arbitrarily chosen, and different directions may result in different results. In this embodiment, the direction of the encoding operation is used as part of the key. For example, the initial encoding sequence... If the encoding operation direction is from left to right, then the first XOR encoding sequence of the first layer obtained after the XOR operation is... Considering the first XOR encoded sequence of the first layer obtained after the XOR operation. Relative to the initial encoded sequence There is information loss, meaning it cannot be accessed. Restore the initial encoded sequence In order to restore the encoding before the XOR operation, it is necessary to process the initial encoding sequence. Perform the XOR operation again, and combine the results in the order of operations to obtain the encoded sequence after the XOR operation. , encoding sequence Let this be the second XOR encoded sequence of the first layer corresponding to the initial encoded sequence, that is, from the initial encoded sequence Starting with the second bit of the initial encoding sequence, XOR operations are performed sequentially. The result of the XOR operation between the second and third bits of the initial encoding sequence is used as the first bit of the second XOR encoding sequence in the first layer. The result of the XOR operation between the fourth and fifth bits of the initial encoding sequence is used as the second bit of the second XOR encoding sequence in the first layer, and so on. The result of the XOR operation between the last bit of the initial encoding sequence and the first bit is used as the last bit of the second XOR encoding sequence in the first layer. For example: Initial encoding sequence If the encoding operation direction is from left to right, then the second XOR encoding sequence of the first layer obtained after performing a shifted XOR operation is: .

[0037] If the length of the initial encoding sequence is odd, a preset selection rule is used (e.g., selecting the last or first bit). In this embodiment, the last bit of the initial encoding sequence is selected as the first bit. All bits in the initial encoding sequence except for the last bit are recorded as target bits. The total number of bits in the target bits of the initial encoding sequence is even. The target bits in the initial encoding sequence are then XORed pairwise to obtain the encoded sequence after the XOR operation. , encoding sequence Let this initial encoding sequence be denoted as the first XOR encoding sequence of the first layer. Specifically, the XOR operation result of the first and second target codes in the initial encoding sequence is used as the first code in the first XOR encoding sequence of the first layer. The XOR operation result of the third and fourth target codes in the initial encoding sequence is used as the second code in the first XOR encoding sequence of the first layer. This process continues until the XOR operation result of the second-to-last and last target codes in the initial encoding sequence is used as the last code in the first XOR encoding sequence of the first layer. The first code (binary number) in the initial encoding sequence is not involved in the operation. This first code is denoted as the additional code corresponding to the initial encoding sequence and serves as the additional key generated during the encryption process. Simultaneously, a shifted XOR operation is performed on each target code in the initial encoding sequence, and the results are combined sequentially according to the order of operations to obtain the encoding sequence after the shifted XOR operation. , encoding sequence Let this be the second XOR encoding sequence of the first layer corresponding to the initial encoding sequence. Starting from the second target code of the initial encoding sequence, XOR operations are performed sequentially. Specifically, the XOR result of the second and third target codes in the initial encoding sequence is used as the first code in the second XOR encoding sequence of the first layer. The XOR result of the fourth and fifth target codes in the initial encoding sequence is used as the second code in the second XOR encoding sequence of the first layer, and so on. The XOR result of the last target code in the initial encoding sequence and the first target code in the initial encoding sequence is used as the last code in the second XOR encoding sequence of the first layer. Similarly, the first code in the initial encoding sequence is not involved in the operation. This first code is recorded as the additional code corresponding to the initial encoding sequence and serves as the additional key generated during the encryption process. Likewise, the direction of the encoding operation is randomly selected during the operation, and this direction is used as part of the key. After the above downsampling steps, the representation of the initial encoding sequence is changed, i.e., the initial encoding sequence is encrypted.

[0038] The above method is used for the initial encoded sequence Performing XOR and shifted XOR operations, i.e., downsampling the initial encoded sequence in two ways, yields downsampled data. and This achieves encryption of the initial encoded sequence. and It can characterize the transmission relationship between the initial coding sequences. The ciphertext data is the coding sequence obtained by two downsampling operations, which are the first XOR coding sequences of the first layer corresponding to the initial coding sequence. And the second XOR encoded sequence of layer 1 When the length of the initial encoded sequence is even, the key is the code at a certain position in the initial encoded sequence and the direction of the encoding operation; that is, it only requires knowing the initial encoded sequence. By analyzing the encoding (binary number) at a given position and the direction of the encoding operation, the initial encoding sequence can be reconstructed. For example: Given that the 6th bit (from left to right) of the initial encoded sequence is 0, the first XOR encoded sequence of layer 1 obtained after downsampling... The second XOR encoded sequence of layer 1 The encoding operation proceeds from left to right, thus restoring the initial encoded sequence. ,like Figure 2 As shown in the figure, the numbers 1, 2, 3, 4, 5 inside the arrows represent the order of operations. By performing the operations in the order shown in the figure, the initial encoded sequence can be restored and the initial encoded sequence can be obtained.

[0039] When the length of the initial encoded sequence is odd, the key is the code at a position other than the first code in the initial encoded sequence, along with the direction of the code operation. The additional key is the first code in the initial encoded sequence. Therefore, it is necessary to know the first code in the initial encoded sequence and the initial encoded sequence itself. By determining the encoding at a position other than the first encoding (binary number) and the direction of the encoding operation, the initial encoding sequence can be reconstructed. During the restoration process, the target encoding sequence is first restored based on the XOR encoding sequence and the direction of the operation. Then, the first encoding, which serves as the additional key, is appended to the end of the target encoding sequence (or appended to the beginning if the first bit was used during encryption), thus restoring the complete initial encoding sequence.

[0040] This embodiment uses XOR and misaligned XOR operations to downsample the initial encoded sequence, hiding the initial encoded values. The downsampled encoded sequence only reflects the relationship between the initial codes, thus achieving encryption of the initial encoded sequence. A key is set for encrypting the initial encoded sequence, based on the first XOR encoded sequence of layer 1. The second XOR encoding sequence of layer 1 The initial encoded sequence can be recovered using the key.

[0041] The initial encoded sequence is downsampled according to the above steps to hide it. However, considering that one layer of downsampling cannot guarantee the hiding effect of the initial encoded sequence, i.e., it cannot guarantee the encryption effect, multiple layers of downsampling will be applied to the initial encoded sequence to achieve multiple encryption, improve the reliability of encryption, and reduce the risk of encrypted data being cracked. In step S2, the number of downsampling layers corresponding to the initial encoded sequence of each segment of operational data is obtained. Next, the encryption processing of the initial encoded sequence of each segment of operational data will be implemented based on the number of downsampling layers corresponding to the initial encoded sequence of each segment of operational data.

[0042] For the initial encoded sequence : This embodiment first uses the above steps to complete an initial encoding sequence. Downsampling yielded the first XOR encoding sequence of layer 1 corresponding to the initial encoding sequence. The second XOR encoding sequence of layer 1 corresponding to the initial encoding sequence Then, using the methods described above, respectively... and Perform downsampling again to obtain The corresponding encoded sequence after XOR operation The corresponding encoded sequence after the misplacing XOR operation and The corresponding encoded sequence after XOR operation The encoded sequence after the misaligned XOR operation will be The encoded sequence after the XOR operation is denoted as the first XOR encoded sequence of the second layer corresponding to the initial encoded sequence. The encoded sequence after the misaligned XOR operation is denoted as the second XOR encoded sequence of the second layer corresponding to the initial encoded sequence. The encoded sequence after the XOR operation is denoted as the third XOR encoded sequence of the second layer corresponding to the initial encoded sequence. The encoded sequence after the misaligned XOR operation is denoted as the fourth XOR encoded sequence of the second layer corresponding to the initial encoded sequence. Then, XOR and misaligned XOR operations are performed on the first, second, third, and fourth XOR encoded sequences of the second layer corresponding to the initial encoded sequence to obtain the corresponding encoded sequences. This process is repeated until the number of downsampling operations reaches the number of downsampling layers corresponding to the initial encoded sequence. It should be noted that if the length of the XOR encoded sequence of a certain layer is odd, any bit in the XOR encoded sequence of that layer is used as the first bit, and the first bit in the XOR encoded sequence of that layer is used as the additional key for the encryption process. The first bit in the XOR encoded sequence of that layer does not participate in the XOR operation. It should also be noted that the first bit in this embodiment is not necessarily the bit at the first position; the first bit can be the bit at any position in the encoded sequence.

[0043] This embodiment uses the above method to process the initial coding sequence. When performing multi-level downsampling, it's necessary to determine the correspondence between the downsampled and original encoded positions during data restoration. Furthermore, the corresponding encoded positions are affected by the direction of the XOR operation during downsampling. For example, if the 6th bit (from left to right) in the initial encoded sequence is 0, the downsampled encoded... , If we perform XOR downsampling starting from the first bit on the left of the initial encoded sequence, then the initial encoded sequence obtained by encoding reconstruction is: ,like Figure 2 As shown, the encoding in the initial encoding sequence is processed from left to right; if XOR downsampling is performed starting from the first bit on the right side of the initial encoding sequence, then the initial encoding sequence obtained by encoding reconstruction is... ,like Figure 3 As shown, the encoding in the initial encoding sequence is operated from right to left. Therefore, the direction of the encoding operation during downsampling directly affects the downsampled encoding sequence and the restoration of the encoding. In this embodiment, different operation directions are set in different layers of downsampling during multi-layer downsampling encryption to increase the diversity of downsampling methods and improve the encryption effect. The direction of the encoding operation during downsampling is also used as the encryption key; there are two directions of encoding operation: from left to right and from right to left. In this embodiment, the encoding operation direction is the same in the encoding sequence of the same layer, and the encoding operation direction in each layer of the encoding sequence is randomly selected.

[0044] Using the above steps, multiple layers of downsampling can be applied to the initial encoded sequence of each segment of operational data, gradually hiding the relationship between the downsampled encoding and the initial encoding. This improves the concealment effect of the initial encoded sequence. Furthermore, the independent keys for each layer of downsampling enhance the security between different downsampling layers, thereby improving the encryption effect of the initial encoded sequence. By setting different XOR operation directions during the downsampling process at different layers, the diversity of downsampling methods is increased, further enhancing the encryption effect.

[0045] This embodiment completes the encoding and conversion of charging pile operation data through the above method, ensuring the secure storage of operation data. In order to facilitate the management and query of stored data, management personnel are granted key permissions according to the actual operation characteristics of the management platform. The key includes the direction of encoding operation, thereby realizing the secure storage of charging pile operation data and the intelligent management of the charging pile management platform.

[0046] This embodiment first divides the operational data of charging piles in a historical time period into multiple segments. Then, it performs binary encoding on each segment to obtain the initial encoding sequence of each segment. Next, it performs encoding downsampling on the initial encoding sequence of each segment. Considering that the characteristics of the operational data in different segments are not the same, different characteristics of operational data should correspond to different encoding times. Therefore, this embodiment determines the number of downsampling layers corresponding to the initial encoding sequence of each segment based on the data characteristics corresponding to each segment. Based on the number of downsampling layers corresponding to the initial encoding sequence of each segment, this embodiment performs XOR operations and misaligned XOR operations on the initial encoding sequences of different segments of operational data at different times to complete multi-layer encryption of the initial encoding sequence. This ensures that the encryption process conforms to the encryption and decryption rules of the data, hiding the original data while ensuring that the information in the original data is not lost. This embodiment performs multi-layer downsampling on the initial encoding sequence, and each downsampling layer has its corresponding independent key, eliminating the transitivity of fixed keys in multi-layer encryption, improving the security between different downsampling layers, increasing the difficulty of cracking the operational data of charging piles, and realizing the secure storage of charging pile operational data.

Claims

1. An interactive platform information storage method based on data encoding, characterized in that, The method includes the following steps: Obtain operational data of charging piles over historical time periods; The operation data of the charging pile is divided into at least two segments. Each segment of operation data is binary encoded to obtain the initial encoding sequence of each segment of operation data. Based on the discreteness index corresponding to each segment of operation data and the total number of charging transactions in each segment of operation data, the number of downsampling layers corresponding to the initial encoding sequence of each segment of operation data is obtained. For any segment of operational data: perform XOR and misaligned XOR operations on the initial encoded sequence of the operational data segment to obtain the corresponding XOR encoded sequence of layer 1; then, for layer n, perform XOR and misaligned XOR operations on each XOR encoded sequence of layer n-1 to obtain the corresponding XOR encoded sequence of layer n; n=2, 3, ..., N, where N is the downsampling layer number corresponding to the initial encoded sequence of the operational data segment; store the XOR encoded sequence of "layer N".

2. The interactive platform information storage method based on data encoding according to claim 1, characterized in that, The step of performing XOR and misaligned XOR operations on the initial encoded sequence of the operational data segment to obtain the corresponding XOR encoded sequence of the first layer includes: Obtain the target codes in the initial encoding sequence of the operational data segment. The number of target codes in the initial encoding sequence is even. Perform XOR and misaligned XOR operations on the target codes in the initial encoding sequence of the operational data segment to obtain the corresponding XOR encoding sequence of the first layer.

3. The interactive platform information storage method based on data encoding according to claim 2, characterized in that, The process of obtaining the target code in the initial encoding sequence of the operational data segment is as follows: if the length of the initial encoding sequence is even, then all codes in the initial encoding sequence are recorded as the target code; if the length of the initial encoding sequence is odd, then the last code in the initial encoding sequence is recorded as the first code, and all codes in the initial encoding sequence except the first code are recorded as the target code.

4. The interactive platform information storage method based on data encoding according to claim 2, characterized in that, Perform XOR and shifted XOR operations on the target codes in the initial encoded sequence of the operational data segment to obtain the corresponding Layer 1 XOR encoded sequence, including: Based on the order of the target codes in the initial encoding sequence of this segment of operational data, a first grouping operation is performed on the target codes in the initial encoding sequence of this segment of operational data. The first grouping operation involves grouping the (2k-1)th and 2kth codes in the initial encoding sequence into the kth group, where k=1, 2, ... K is the number of target codes in the initial encoded sequence of this segment of operational data; Based on the order of the target codes in the initial coding sequence of the operational data segment, a second grouping operation is performed on the target codes in the initial coding sequence of the operational data segment. The second grouping operation is to group the 2kth target code and the 2k+1th target code in the initial coding sequence into the kth group, and to group the Kth target code and the 1st target code in the initial coding sequence into the last group. Perform an XOR operation on the two target codes in each group of codes obtained from the first grouping operation, and combine the XOR operation results together according to the grouping order to form the first XOR code sequence of the first layer corresponding to the initial code sequence; perform an XOR operation on the two target codes in each group of codes obtained from the second grouping operation, and combine the XOR operation results together according to the grouping order to form the second XOR code sequence of the first layer corresponding to the initial code sequence.

5. The interactive platform information storage method based on data encoding according to claim 2, characterized in that, If the first code does not exist in the initial encoding sequence, the ciphertext data corresponding to the first layer is the XOR encoding sequence of the first layer, and the key corresponding to the first layer is any bit of the encoding in the initial encoding sequence and the direction of the encoding operation; if the first code exists in the initial encoding sequence, the ciphertext data corresponding to the first layer is the XOR encoding sequence of the first layer, and the key corresponding to the first layer is any bit of the target code, the first code, and the direction of the encoding operation in the initial encoding sequence; the direction of the encoding operation includes the operation direction from left to right and the operation direction from right to left.

6. The interactive platform information storage method based on data encoding according to claim 1, characterized in that, The number of downsampling layers corresponding to the initial encoding sequence of each segment of operational data is obtained based on the discrete indicators corresponding to each segment of operational data and the total number of charging transactions in each segment of operational data, including: For the j-th segment of operational data: The ratio of the total number of charging transactions in this segment of operational data to the dispersion index corresponding to this segment of operational data is used as the importance index of this segment of operational data; The number of downsampling layers corresponding to the initial encoded sequence of this segment of operational data is calculated using the following formula: in, Let j be the number of downsampling layers corresponding to the initial encoded sequence of the j-th segment of operational data. For the j-th segment of operational data, The minimum value of the importance indicator for all segment operation data. To round down, To preset the number of downsampling layers, It represents the logarithmic function with base 2. To adjust the parameters.

7. The interactive platform information storage method based on data encoding according to claim 1, characterized in that, The acquisition of dispersion indicators corresponding to each segment of operational data includes: For any segment of operational data: calculate the mean distance between all operational data in that segment and the center of the cluster it belongs to, and use this as the dispersion index for that segment of operational data.

Citation Information

Patent Citations

  • A design method of charging and replacing management platform for new energy vehicles

    CN109460906A

  • Charging management method, charging terminal data processing method and charging management platform data processing method

    CN112202549A

  • Systems, methods, and apparatus for managing vehicle data collection

    CN115443637A

  • Encrypted storage method for transaction data of shared charging pile

    CN116894255A

  • Unmanned charging pile transaction data intelligent management system based on big data

    CN117353751A