Method and device for transmitting power data in clouded environment
By using P tensor backlog perception theory to generate multiple keys and sampling sequences in a cloud-based environment, combined with deep learning methods to perform layered encryption of power data, the problems of low encryption efficiency and insufficient privacy in the prior art are solved. , realizes flexible data encryption and efficient data transmission.
Patent Information
- Application Number
- CN202411097794.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-19
AI Technical Summary
The prior art is not flexible enough in the encryption process of power data in a cloud-based environment, resulting in low encryption efficiency and insufficient privacy. Especially under deep learning methods with high hardware configuration, it is difficult to conduct targeted encryption according to the data security level.
Multiple keys are generated based on P tensor backlog compression perception theory, layered encryption is performed according to the access rights of the receiver, and sampling sequences and measurement matrices are obtained through Tent mapping and Logistic mapping to generate keys with high randomness, combined with Kronecker product Operations and sparse basis matrices perform data encryption and encrypted data through sampling sequence hiding to improve security.
It realizes flexible layered encryption and decryption according to the data security level, improves privacy and security during data transmission, reduces the amount of data processing during data decryption, and enhances the randomness of the key and cracking difficulty.
Smart Images

Figure CN118984236A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data encryption, and in particular to a method and device for transmitting power data in a cloud environment. Background Art
[0002] In the power system, the needs for comprehensive state perception, efficient information processing, and convenient and flexible application are constantly increasing, resulting in an exponential growth in the amount of terminal devices and data connected to the power system. These data may involve fast and intelligent predictions or decisions, so a large number of cloud servers are built to realize local data processing and transmission.
[0003] However, with the expansion of cloud servers, the security requirements for cloud data are getting higher and higher. The existing technology optimizes the data transmission process based on CS (Compressive Sensing) theory, which can effectively achieve data compression and encryption, but it is still not flexible enough in terms of privacy protection. In addition, deep learning methods have also been applied in data collection and transmission, and have achieved good results in resource conservation and encrypted transmission, but they require higher hardware configuration, resulting in higher encryption and decryption costs.
[0004] Therefore, how to flexibly encrypt data according to the security level of the data, while improving the privacy of the data transmission process and improving the efficiency of data encryption and decryption is a technical problem that needs to be solved at present. Summary of the invention
[0005] The present application provides a method and device for transmitting power data in a cloud environment to solve the technical problems of low encryption efficiency and low privacy caused by the inflexibility of the encryption process.
[0006] In order to solve the above technical problems, in a first aspect, an embodiment of the present application provides a method for transmitting power data in a cloud environment, including:
[0007] Generate several keys based on P tensor product compressed sensing theory;
[0008] Acquire first data, and encrypt the first data according to all the keys to acquire first encrypted data;
[0009] Determining one or more keys to be sent to each receiving end according to the access rights of the receiving end;
[0010] According to the access rights of each receiving end, the corresponding keys and the first encrypted data are sent to each receiving end respectively, so that the receiving end decrypts the first encrypted data according to the received keys.
[0011] Compared with the prior art, the embodiments of the present application have the following beneficial effects: by generating several different keys, and according to the access rights of the receiving end to the first data, the first data is encrypted in layers using all the keys. This not only allows the receiving end to decrypt part of the data and reduce the amount of data processing during the data decryption process, but also allows the data to be flexibly encrypted and decrypted in layers according to actual needs or data security levels, thereby improving privacy during data transmission.
[0012] In some embodiments of the first aspect of the present application, the generating of a plurality of keys based on P tensor product compressed sensing theory includes:
[0013] Acquire a first sequence based on Tent mapping, sample the first sequence to acquire a first sampling sequence, and acquire a first measurement matrix according to the first sampling sequence;
[0014] Acquire a second sequence based on Logistic mapping, sample the second sequence to acquire a second sampling sequence, and construct a first key according to the second sampling sequence;
[0015] A second key is generated according to the first measurement matrix and the first sequence.
[0016] Compared with the prior art, the above embodiment has the following beneficial effects: different keys are generated based on different principles, so that when encryption is subsequently performed according to the keys, the data can be encrypted in layers according to the level of access rights of the receiving end, thereby increasing the difficulty of cracking the keys and the security of the data.
[0017] In some embodiments of the first aspect of the present application, constructing a first key according to the second sampling sequence includes:
[0018] The first key is a two-dimensional matrix;
[0019] Initialize the first key, and simultaneously traverse the first elements of each first row vector in the first key and the second elements in the second sampling sequence in sequence;
[0020] When the column index of the first element is the same as the third element of the preset first random row vector under the current column index, the second element currently traversed is assigned to the first element; the first random row vector is randomly generated according to the length of the first row vector.
[0021] Compared with the prior art, the above embodiment has the following beneficial effects: by introducing a randomly generated row vector, the randomness of the first key is improved, thereby further improving the security of subsequent data.
[0022] In some embodiments of the first aspect of the present application, generating a second key according to the first measurement matrix and the first sequence includes:
[0023]
[0024] Among them, h i,j is the element in the i-th row and j-th column of the second key; z i is the i-th element of the first sequence; is the element of the i-th row and j-th column of the first measurement matrix; C 1 ={1,2,…,v}, v is the number of columns of the first measurement matrix; C 2 ={1,2,…,u}, where u is the number of rows of the first measurement matrix.
[0025] Compared with the prior art, the above embodiment has the following beneficial effects: the second key is generated according to the first measurement matrix obtained by random sampling and combined with the first sequence, which is different from the generation principle of the first key and improves the difficulty of subsequent key cracking.
[0026] In some embodiments of the first aspect of the present application, before sending the first encrypted data to the receiving end, it also includes: sampling the second sequence to obtain a third sampling sequence, and hiding and processing the first encrypted data through the third sampling sequence.
[0027] Compared with the prior art, the above embodiment has the following beneficial effects: since the key and the first encrypted data need to be transmitted to the receiving end at the same time, and the transmission channel is often insecure, in order to prevent the first encrypted data and the key from being intercepted at the same time, it is necessary to hide the first encrypted data so that its data features cannot be easily identified, thereby making it impossible for attackers to know which are the first encrypted data and which are the keys.
[0028] In some embodiments of the first aspect of the present application, hiding and processing the first encrypted data by using the third sampling sequence includes:
[0029] y c =αy e +βb
[0030] Among them, y c The first encrypted data after the hidden processing; e is the first encrypted data before hiding processing; b is the third sampling sequence; α and β are preset coefficients.
[0031] Compared with the prior art, the above embodiment has the following beneficial effects: by generating the third sampling sequence, the hiding degree of the first encrypted data is adjusted according to the customized system, thereby improving the flexibility of data hiding.
[0032] In some embodiments of the first aspect of the present application, the obtaining of the first data and encrypting the first data according to all the keys to obtain the first encrypted data includes: encrypting all of the first data by Kronecker product operation in combination with all the keys to obtain the first encrypted data.
[0033] Compared with the prior art, the above embodiment has the following beneficial effects: by using multiple keys to encrypt data in layers, it not only increases the difficulty of data cracking, thereby improving the security of data during transmission, but also makes the subsequent data decryption process more private.
[0034] In some embodiments of the first aspect of the present application, before encrypting the first data, it also includes: performing sparse processing on the first data through a sparse base matrix.
[0035] Compared with the prior art, the above embodiment has the following beneficial effects: since the first data is in the original state when it is received, and the encrypted low-dimensional data requires the first data in the original state to be in a sparse state when reconstructed, the accuracy of the subsequent receiving end in reconstructing the first encrypted data is improved through sparse processing.
[0036] In a second aspect, an embodiment of the present application further provides a power data transmission device in a cloud environment, comprising: a key generation module, a data encryption module, an authority confirmation module, and a data sending module;
[0037] Wherein, the key generation module is used to generate a number of keys based on P tensor product compressed sensing theory;
[0038] The data encryption module is used to obtain first data, and encrypt the first data according to all the keys to obtain first encrypted data;
[0039] The authority confirmation module is used to determine one or more keys to be sent to each receiving end according to the access rights of the receiving end;
[0040] The data sending module is used to send the corresponding keys and the first encrypted data to each receiving end according to the access rights of each receiving end, so that the receiving end decrypts the first encrypted data according to the received keys.
[0041] In some embodiments of the second aspect of the present application, the key generation module is used to generate a plurality of keys based on P tensor product compressed sensing theory, including:
[0042] Acquire a first sequence based on Tent mapping, sample the first sequence to acquire a first sampling sequence, and acquire a first measurement matrix according to the first sampling sequence;
[0043] Acquire a second sequence based on Logistic mapping, sample the second sequence to acquire a second sampling sequence, and construct a first key according to the second sampling sequence;
[0044] A second key is generated according to the first measurement matrix and the first sequence.
[0045] In some embodiments of the second aspect of the present application, constructing a first key according to the second sampling sequence includes:
[0046] The first key is a two-dimensional matrix;
[0047] Initialize the first key, and simultaneously traverse the first elements of each first row vector in the first key and the second elements in the second sampling sequence in sequence;
[0048] When the column index of the first element is the same as the third element of the preset first random row vector under the current column index, the second element currently traversed is assigned to the first element; the first random row vector is randomly generated according to the length of the first row vector.
[0049] In some embodiments of the second aspect of the present application, generating a second key according to the first measurement matrix and the first sequence includes:
[0050]
[0051] Among them, h i,j is the element in the i-th row and j-th column of the second key; z i is the i-th element of the first sequence; is the element of the i-th row and j-th column of the first measurement matrix; C 1 ={1,2,…,v}, v is the number of columns of the first measurement matrix; C 2 ={1,2,…,u}, where u is the number of rows of the first measurement matrix.
[0052] In some embodiments of the second aspect of the present application, before sending the first encrypted data to the receiving end, it also includes: sampling the second sequence to obtain a third sampling sequence, and hiding and processing the first encrypted data through the third sampling sequence.
[0053] In some embodiments of the second aspect of the present application, the step of hiding and processing the first encrypted data by using the third sampling sequence includes:
[0054] y c =αy e +βb
[0055] Among them, y cThe first encrypted data after the hidden processing; e is the first encrypted data before hiding processing; b is the third sampling sequence; α and β are preset coefficients.
[0056] In some embodiments of the second aspect of the present application, the data encryption module is used to obtain first data and encrypt the first data according to all the keys to obtain first encrypted data, including: encrypting all of the first data through a Kronecker product operation in combination with all the keys to obtain first encrypted data.
[0057] In some embodiments of the second aspect of the present application, before encrypting the first data, it also includes: performing sparse processing on the first data through a sparse base matrix. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A schematic diagram of a flow chart of a method for transmitting power data in a cloud environment provided in some embodiments of the present application;
[0059] Figure 2 This is a schematic diagram of the structure of a power data transmission device in a cloud environment provided in some embodiments of the present application. DETAILED DESCRIPTION
[0060] With the expansion and construction of cloud servers, the security requirements for cloud data are getting higher and higher. The existing technology optimizes the data transmission process based on CS theory, which can effectively realize the compression and encryption of data, but it is still not flexible enough in terms of privacy protection. In addition, deep learning methods have also been applied in data collection and transmission, and have achieved good results in resource conservation and encrypted transmission, but the hardware cost and encryption cost are high. Therefore, how to flexibly encrypt data according to the security level of the data, while improving the privacy of the data transmission process, and improving the efficiency of data encryption is a technical problem that needs to be solved at present.
[0061] In order to solve the above technical problems, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] Embodiment 1
[0063] Please refer to Figure 1 , a method for transmitting power data in a cloud environment provided by an embodiment of the present application includes S10 to S40, specifically:
[0064] S10: Generate several keys based on P tensor product compressed sensing theory.
[0065] Furthermore, in some embodiments of the present application, the generating of several keys based on P tensor product compressed sensing theory includes:
[0066] Acquire a first sequence based on Tent mapping, sample the first sequence to acquire a first sampling sequence, and acquire a first measurement matrix according to the first sampling sequence;
[0067] Acquire a second sequence based on Logistic mapping, sample the second sequence to acquire a second sampling sequence, and construct a first key according to the second sampling sequence;
[0068] A second key is generated according to the first measurement matrix and the first sequence.
[0069] Different keys are generated based on different principles, so that when the data is subsequently encrypted according to the key, it can be encrypted in layers according to the level of access rights of the receiving end, thereby increasing the difficulty of key cracking and the security of the data.
[0070] Preferably, in some embodiments of the present application, the first sequence obtained based on Tent mapping may be sampled by the following preferred implementations:
[0071]
[0072] Wherein, w′ is the first sampling sequence; w′ l is the lth element of the first sampling sequence; is the r′th 0 +ld′ elements, r′ 0 is the initial sampling position of the first sequence, and d′ is the sampling interval of the first sequence.
[0073] Preferably, in some embodiments of the present application, the first measurement matrix may be acquired according to the first sampling sequence through the following preferred implementation:
[0074]
[0075] in, is the element in the i-th row and j-th column of the first measurement matrix; w′ (i-1)v+j is the (i-1)v+jth element of the first sampling sequence; v is the number of columns of the first measurement matrix.
[0076] Preferably, in some embodiments of the present application, the second sequence obtained by Logistic mapping can be sampled by the following preferred implementations:
[0077]
[0078] Wherein, w is the second sampling sequence; w l is the lth element of the second sampling sequence; is the rth 0 +ld elements, r 0 is the initial sampling position of the second sequence, and d is the sampling interval of the second sequence.
[0079] Further, in some embodiments of the present application, constructing a first key according to the second sampling sequence includes:
[0080] The first key is a two-dimensional matrix;
[0081] Initialize the first key, and simultaneously traverse the first elements of each first row vector in the first key and the second elements in the second sampling sequence in sequence;
[0082] When the column index of the first element is the same as the third element of the preset first random row vector under the current column index, the second element currently traversed is assigned to the first element; the first random row vector is randomly generated according to the length of the first row vector.
[0083] By introducing a randomly generated row vector, the randomness of the first key is improved, thereby further improving the security of subsequent data.
[0084] Preferably, in some embodiments of the present application, the first key can be obtained by the following preferred implementation:
[0085]
[0086] Among them, p i,j is the element in the i-th row and j-th column of the first key; idx(j) is the j-th element of the first random row vector idx; w (i-1)v+j is the (i-1)v+jth element of the second sampling sequence; v is the number of columns of the first key.
[0087] Preferably, in some embodiments of the present application, the first random row vector may be obtained by the following preferred implementation:
[0088]
[0089] Wherein, q is a preset coefficient; random(*) is an operation of randomly selecting non-repeating elements from a set; and v is the number of columns of the first key.
[0090] Further, in some embodiments of the present application, generating a second key according to the first measurement matrix and the first sequence includes:
[0091]
[0092] Among them, h i,j is the element in the i-th row and j-th column of the second key; z i is the i-th element of the first sequence; is the element of the i-th row and j-th column of the first measurement matrix; C 1 ={1,2,…,v}, v is the number of columns of the first measurement matrix; C 2 ={1,2,…,u}, where u is the number of rows of the first measurement matrix.
[0093] The second key is generated according to the first measurement matrix obtained by random sampling and combined with the first sequence, so as to be different from the generation principle of the first key and increase the difficulty of subsequent key cracking.
[0094] S20: Acquire the first data, and determine one or more keys to be sent to each receiving end according to the access rights of the receiving end.
[0095] S30: using the plurality of keys corresponding to the respective receiving ends, encrypting the second data corresponding to the access rights of the respective receiving ends in the first data, and obtaining the first encrypted data corresponding to the respective receiving ends.
[0096] Further, in some embodiments of the present application, the obtaining of the first data and encrypting the first data according to all the keys to obtain the first encrypted data includes: encrypting all of the first data by combining all the keys through a Kronecker product operation to obtain the first encrypted data.
[0097] Using multiple keys to encrypt data in layers not only increases the difficulty of data cracking, thereby improving the security of data during transmission, but also makes the subsequent data decryption process more private.
[0098] Preferably, in some embodiments of the present application, the first encrypted data can be obtained by the following preferred implementation:
[0099]
[0100] in, is the Kronecker product operation; Φ is the first measurement matrix; H is the second key; P is the first key; x is the first data after sparseness.
[0101] Preferably, in some embodiments of the present application, a sparse operation may be performed on the first data by the following preferred implementations:
[0102] x=ψs
[0103] Among them, ψ is the sparse basis matrix; s is the first data.
[0104] Since the first data is in an original state when received, and the encrypted low-dimensional data requires the first data in the original state to be in a sparse state when reconstructed, the accuracy of the subsequent receiving end in reconstructing the first encrypted data is improved through sparse processing.
[0105] Furthermore, in some embodiments of the present application, before sending the first encrypted data to the receiving end, it also includes: sampling the second sequence to obtain a third sampling sequence, and hiding and processing the first encrypted data through the third sampling sequence.
[0106] Preferably, in some embodiments of the present application, the first encrypted data may be hidden and processed by the following preferred implementations:
[0107]
[0108] y c =αy e +βb
[0109] in, The first sequence elements, is the initial sampling position of the third sequence, is the sampling interval of the third sequence; b j is the jth element of the third sampling sequence b; y c The first encrypted data after the hidden processing; e is the first encrypted data before hiding process; α and β are preset coefficients.
[0110] Since the key and the first encrypted data need to be transmitted to the receiving end at the same time, and the transmission channel is often insecure, in order to prevent the first encrypted data and the key from being intercepted at the same time, the first encrypted data needs to be hidden so that its data features cannot be easily identified, thereby making it impossible for an attacker to know which are the first encrypted data and which are the keys. Further, by generating a third sampling sequence, the hiding degree of the first encrypted data is adjusted according to a custom coefficient, thereby improving the flexibility of data hiding.
[0111] S40: sending corresponding keys and the first encrypted data to each receiving end according to the access rights of each receiving end, so that the receiving end decrypts the corresponding first encrypted data according to the received keys.
[0112] Preferably, in some embodiments of the present application, the receiving end can decrypt the first encrypted data by the following preferred implementation:
[0113] S41: Perform a de-hiding operation on the first encrypted data in the following manner:
[0114]
[0115] S42: Each receiving end obtains decrypted data according to the received key and the first encrypted data:
[0116] S421: After the first receiving end with partial access rights receives the corresponding key and the first encrypted data, it decrypts the data using the following formula:
[0117]
[0118] sty e =Φ″x
[0119]
[0120] in, To minimize ||x||, ||x|| is a two-norm operation; x′ is the sparse first data reconstructed by the first receiving end; y e =Φ″x is a constraint condition; Φ″ is the measurement matrix of the restricted first receiving end;
[0121] S422: After the second receiving end with full access rights receives the corresponding key and the first encrypted data, it decrypts the data using the following formula:
[0122]
[0123] sty e =Φ′x
[0124]
[0125] Wherein, x is the sparse first data reconstructed by the first receiving end, and is also the complete sparse first data; y e =Φ′x is a constraint condition; Φ″ is the measurement matrix of the second receiving end without restriction;
[0126] S43: Perform a desparse operation on the sparse first data reconstructed by each receiving end to obtain the first data:
[0127] s=ψ T x
[0128] Among them, ψ Tis the transposed matrix of the sparse basis matrix ψ; x here represents the sparse first data reconstructed by each receiving end.
[0129] In summary, the method for transmitting power data in a cloud environment provided by an embodiment of the present application has the following beneficial effects: by generating several different keys, and according to the access rights of the receiving end to the first data, the first data is encrypted in layers using all the keys, which not only allows the receiving end to decrypt part of the data and reduce the amount of data processing during the data decryption process, but also allows the data to be flexibly encrypted and decrypted in layers according to actual needs or data security levels, thereby improving privacy during data transmission.
[0130] Embodiment 2
[0131] refer to Figure 2 , a power data transmission device in a cloud environment provided in an embodiment of the present application, includes: a key generation module 11, a data encryption module 12, an authority confirmation module 13 and a data sending module 14.
[0132] In some embodiments of the present application, the key generation module 11 is used to generate a plurality of keys based on the P tensor product compressed sensing theory; the data encryption module 12 is used to obtain first data, and encrypt the first data according to all the keys to obtain first encrypted data; the authority confirmation module 13 is used to determine one or more keys to be sent to each receiving end according to the access rights of the receiving end; the data sending module 14 is used to send the corresponding plurality of keys and the first encrypted data to each receiving end according to the access rights of each receiving end, so that the receiving end decrypts the first encrypted data according to the received plurality of keys.
[0133] In some embodiments of the present application, the key generation module 11 is used to generate a number of keys based on the P tensor product compressed sensing theory, including: obtaining a first sequence based on Tent mapping, sampling the first sequence to obtain a first sampling sequence, and obtaining a first measurement matrix based on the first sampling sequence; obtaining a second sequence based on Logistic mapping, sampling the second sequence to obtain a second sampling sequence, and constructing a first key based on the second sampling sequence; generating a second key based on the first measurement matrix and the first sequence.
[0134] In some embodiments of the present application, constructing the first key based on the second sampling sequence includes: the first key is a two-dimensional matrix; initializing the first key, and simultaneously traversing the first elements of each first row vector in the first key and the second elements in the second sampling sequence in sequence; when the column index of the first element is the same as the third element of the preset first random row vector under the current column index, assigning the second element currently traversed to the first element; the first random row vector is randomly generated according to the length of the first row vector.
[0135] In some embodiments of the present application, generating a second key according to the first measurement matrix and the first sequence includes:
[0136]
[0137] Among them, h i,j is the element in the i-th row and j-th column of the second key; z i is the i-th element of the first sequence; is the element of the i-th row and j-th column of the first measurement matrix; C 1 ={1,2,…,v}, v is the number of columns of the first measurement matrix; C 2 ={1,2,…,u}, where u is the number of rows of the first measurement matrix.
[0138] In some embodiments of the present application, before sending the first encrypted data to the receiving end, the method further includes: sampling the second sequence to obtain a third sampling sequence, and hiding and processing the first encrypted data through the third sampling sequence.
[0139] In some embodiments of the present application, the step of hiding and processing the first encrypted data by using the third sampling sequence includes:
[0140] y c =αy e +βb
[0141] Among them, y c The first encrypted data after the hidden processing; e is the first encrypted data before hiding processing; b is the third sampling sequence; α and β are preset coefficients.
[0142] In some embodiments of the present application, the data encryption module 12 is used to obtain first data and encrypt the first data according to all the keys to obtain first encrypted data, including: encrypting all of the first data through Kronecker product operation in combination with all the keys to obtain first encrypted data.
[0143] In some embodiments of the present application, before encrypting the first data, the method further includes: performing sparse processing on the first data through a sparse base matrix.
[0144] In summary, the embodiment of the present application provides a power data transmission device in a cloud environment, which has the following beneficial effects: by generating several different keys, and according to the access rights of the receiving end to the first data, all the keys are used to perform hierarchical encryption on the first data, which not only allows the receiving end to decrypt part of the data and reduce the amount of data processing during the data decryption process, but also allows the data to be flexibly encrypted and decrypted in layers according to actual needs or data security levels, thereby improving privacy during data transmission.
[0145] Embodiment 3
[0146] Based on the above-mentioned embodiment of the method for transmitting power data in a cloud environment, another embodiment of the present application provides a terminal device for transmitting power data in a cloud environment. The terminal device for transmitting power data in a cloud environment comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the method for transmitting power data in a cloud environment of any embodiment of the present application is implemented.
[0147] Exemplarily, in this embodiment, the computer program may be divided into one or more modules, and the one or more modules are stored in the memory and executed by the processor to complete the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the power data transmission device in the cloud environment.
[0148] The power data transmission device in the cloud environment may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The power data transmission terminal device in the cloud environment may include, but is not limited to, a processor and a memory.
[0149] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the power data transmission device under the cloud environment, and uses various interfaces and lines to connect the various parts of the power data transmission device under the entire cloud environment. The memory may be used to store the computer program and / or module, and the processor implements various functions of the power data transmission device under the cloud environment by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, an internal memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0150] Embodiment 4
[0151] Based on the above-mentioned embodiment of the method for transmitting power data in a cloud environment, another embodiment of the present application provides a storage medium, wherein the storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the method for transmitting power data in a cloud environment of any embodiment of the present application.
[0152] In this embodiment, the storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0153] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims
1. A method for transmitting power data in a cloud environment, characterized in that: include: Generate several keys based on P tensor product compressed sensing theory; Acquire first data, and encrypt the first data according to all the keys to acquire first encrypted data; Determining one or more keys to be sent to each receiving end according to the access rights of the receiving end; According to the access rights of each receiving end, the corresponding keys and the first encrypted data are sent to each receiving end respectively, so that the receiving end decrypts the first encrypted data according to the received keys.
2. The method for transmitting power data in a cloud environment according to claim 1, characterized in that: The method of generating a plurality of keys based on the P tensor product compressed sensing theory includes: Acquire a first sequence based on Tent mapping, sample the first sequence to acquire a first sampling sequence, and acquire a first measurement matrix according to the first sampling sequence; Acquire a second sequence based on Logistic mapping, sample the second sequence to acquire a second sampling sequence, and construct a first key according to the second sampling sequence; A second key is generated according to the first measurement matrix and the first sequence.
3. The method for transmitting power data in a cloud environment according to claim 2, characterized in that: The constructing a first key according to the second sampling sequence comprises: The first key is a two-dimensional matrix; Initialize the first key, and simultaneously traverse the first elements of each first row vector in the first key and the second elements in the second sampling sequence in sequence; When the column index of the first element is the same as the third element of the preset first random row vector under the current column index, the second element currently traversed is assigned to the first element; the first random row vector is randomly generated according to the length of the first row vector.
4. The method for transmitting power data in a cloud environment according to claim 2, characterized in that: The generating a second key according to the first measurement matrix and the first sequence includes: Among them, h i,j is the element in the i-th row and j-th column of the second key; z i is the i-th element of the first sequence; is the element in the i-th row and j-th column of the first measurement matrix; C1={1,2,…,v}, v is the number of columns of the first measurement matrix; C2={1,2,…,u}, u is the number of rows of the first measurement matrix.
5. The method for transmitting power data in a cloud environment according to claim 2, characterized in that: Before sending the first encrypted data to the receiving end, the method further includes: sampling the second sequence to obtain a third sampling sequence, and hiding and processing the first encrypted data through the third sampling sequence.
6. The method for transmitting power data in a cloud environment according to claim 5, characterized in that: The step of hiding and processing the first encrypted data by using the third sampling sequence includes: y c =αy e +βb Among them, y c The first encrypted data after the hidden processing; e is the first encrypted data before hiding processing; b is the third sampling sequence; α and β are preset coefficients.
7. The method for transmitting power data in a cloud environment according to claim 1, characterized in that: The obtaining of the first data and encrypting the first data according to all the keys to obtain the first encrypted data includes: performing a Kronecker product operation in combination with all the keys to completely encrypt the first data to obtain the first encrypted data.
8. The method for transmitting power data in a cloud environment according to claim 1, characterized in that: Before encrypting the first data, the method further includes: performing sparse processing on the first data through a sparse base matrix.
9. A device for transmitting power data in a cloud environment, characterized in that: include: Key generation module, data encryption module, authority confirmation module and data sending module; Wherein, the key generation module is used to generate a number of keys based on P tensor product compressed sensing theory; The data encryption module is used to obtain first data, and encrypt the first data according to all the keys to obtain first encrypted data; The authority confirmation module is used to determine one or more keys to be sent to each receiving end according to the access rights of the receiving end; The data sending module is used to send the corresponding keys and the first encrypted data to each receiving end according to the access rights of each receiving end, so that the receiving end decrypts the first encrypted data according to the received keys.
10. The device for transmitting power data in a cloud environment according to claim 9, characterized in that: The key generation module is used to generate a number of keys based on P tensor product compressed sensing theory, including: Acquire a first sequence based on Tent mapping, sample the first sequence to acquire a first sampling sequence, and acquire a first measurement matrix according to the first sampling sequence; Acquire a second sequence based on Logistic mapping, sample the second sequence to acquire a second sampling sequence, and construct a first key according to the second sampling sequence; A second key is generated according to the first measurement matrix and the first sequence.
11. The device for transmitting power data in a cloud environment according to claim 10, characterized in that: The constructing a first key according to the second sampling sequence comprises: The first key is a two-dimensional matrix; Initialize the first key, and simultaneously traverse the first elements of each first row vector in the first key and the second elements in the second sampling sequence in sequence; When the column index of the first element is the same as the third element of the preset first random row vector under the current column index, the second element currently traversed is assigned to the first element; the first random row vector is randomly generated according to the length of the first row vector.
12. The device for transmitting power data in a cloud environment according to claim 10, characterized in that: The generating a second key according to the first measurement matrix and the first sequence includes: Among them, h i,j is the element in the i-th row and j-th column of the second key; z i is the i-th element of the first sequence; is the element in the i-th row and j-th column of the first measurement matrix; C1={1,2,…,v}, v is the number of columns of the first measurement matrix; C2={1,2,…,u}, u is the number of rows of the first measurement matrix.
13. The device for transmitting power data in a cloud environment according to claim 10, characterized in that: Before sending the first encrypted data to the receiving end, the method further includes: sampling the second sequence to obtain a third sampling sequence, and hiding and processing the first encrypted data through the third sampling sequence.
14. The device for transmitting power data in a cloud environment according to claim 13, characterized in that: The step of hiding and processing the first encrypted data by using the third sampling sequence includes: y c =αy e +βb Among them, y c The first encrypted data after the hidden processing; e is the first encrypted data before hiding processing; b is the third sampling sequence; α and β are preset coefficients.
15. The device for transmitting power data in a cloud environment according to claim 9, characterized in that: The data encryption module is used to obtain the first data and encrypt the first data according to all the keys to obtain the first encrypted data, including: encrypting all the first data through Kronecker product operation in combination with all the keys to obtain the first encrypted data.
16. The device for transmitting power data in a cloud environment according to claim 9, characterized in that: Before encrypting the first data, the method further includes: performing sparse processing on the first data through a sparse base matrix.
