An electric power equipment aerial photograph encryption method and system
By performing one-dimensional processing on the RGB channels of aerial images of power equipment and using a rolling encryption method, a dynamic spatial key stream is generated, which solves the problem that traditional image encryption technology is easily cracked and realizes real-time dynamic changes and high security of encrypted images.
Patent Information
- Application Number
- CN202311679509.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-08
- Publication Date
- 2026-11-06
- Estimated Expiration
- 2043-12-08
AI Technical Summary
Traditional image encryption techniques make the ciphertext easy to crack, and it does not dynamically change with the spatial and temporal information of image acquisition. The ciphertext mapping space is limited, which greatly reduces the security of data encryption.
By performing one-dimensional processing on the RGB channels of the image to be encrypted and the key source image, a dynamic spatial key stream is generated. The key stream is then positioned on the key circle according to the image acquisition time using the roller encryption method, forming an image information circle. The encrypted image is then constructed through XOR operation.
It improves the security of encrypted images, enhances the randomness and anti-decryption capabilities of the key, enables real-time encryption operations, and increases the security of data encryption.
Smart Images

Figure CN117714612B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data encryption technology, and in particular to a method and system for encrypting aerial images of power equipment. Background Technology
[0002] With the deepening application of information technology in the power sector, the digital, information-based, and intelligent operation and maintenance of substations is becoming increasingly mature. While information technology provides convenience for power workers in maintenance, it also quietly sows the seeds of data security risks that cannot be ignored.
[0003] During the process of drones conducting aerial photography, image storage, and transmission for power equipment inspection, a large amount of confidential data is involved. Criminals can easily obtain sensitive information from this data, which seriously threatens the safe and reliable operation of the power system. Therefore, it is particularly necessary to encrypt privacy images during storage or transmission.
[0004] In chaotic encryption technology, chaos is a seemingly random movement, referring to the random behavior that can occur in deterministic nonlinear systems without the addition of any random factors, i.e., inherent randomness. It belongs to deterministic systems but is difficult to predict, is implicit in complex systems but inseparable, and exhibits a variety of chaotic yet quite regular dynamic processes. Its most prominent characteristic is the system's extreme sensitivity to initial conditions. [1] .
[0005] The use of chaos in cryptography is primarily based on its fundamental properties, such as ergodicity, mixing, determinism, and sensitivity to initial conditions. The chaotic sequences generated by chaotic systems possess complexity, randomness, and are difficult to analyze and predict; these characteristics make them a potential candidate for a practical cryptographic system.
[0006] Because chaotic encryption technology has many excellent inherent properties, such as ergodicity, non-periodicity, and sensitivity to initial conditions, the chaotic sequences generated by chaotic systems are complex, random, difficult to analyze and predict, which is very consistent with the requirements of diffusion and randomness in encryption algorithms. Therefore, chaotic technology is often used in image encryption algorithms.
[0007] However, the chaotic sequence in chaotic encryption technology is a pseudo-random sequence. If the initial value, control parameters, and chaotic mode are compromised and known, the entire chaotic sequence will be exposed, and the ciphertext will be easily cracked, greatly reducing the security of data encryption.
[0008] Meanwhile, the keys of traditional image encryption technology do not change dynamically with the spatial and temporal information of image acquisition, and the ciphertext mapping space is limited, which will greatly reduce the security of data encryption. Summary of the Invention
[0009] This invention provides a method and system for encrypting aerial images of power equipment, which solves the technical problems of traditional image encryption technology, such as the ciphertext being easily cracked, not dynamically changing with the spatial and temporal information of image acquisition, and having a limited ciphertext mapping space, which greatly reduces the security of data encryption.
[0010] In view of this, the first aspect of the present invention provides a method for encrypting aerial images of power equipment, comprising the following steps:
[0011] The RGB three channels of the image to be encrypted are processed into one-dimensional vectors to generate one-dimensional vectors corresponding to the three RGB channels respectively.
[0012] The RGB three channels of the key source image are processed into one dimension to generate dynamic spatial key streams corresponding to the RGB three channels respectively;
[0013] Based on the rolling encryption method, a key circle is formed by the dynamic spatial key stream corresponding to each channel. According to the acquisition time of the image to be encrypted, the dynamic spatial key stream corresponding to each one-dimensional vector is located on the key circle, and an image information circle is formed. The one-dimensional vector of the image information circle corresponds one-to-one with the dynamic spatial key stream of the key circle.
[0014] An encrypted image is constructed by performing an XOR operation on all one-dimensional vectors of the image information circle and their corresponding dynamic spatial key streams.
[0015] Preferably, the step of performing one-dimensional processing on the three RGB channels of the image to be encrypted to generate one-dimensional vectors corresponding to the three RGB channels specifically includes:
[0016] The RGB channels of the image to be encrypted are processed into one-dimensional vectors according to the Zigzag transform method, generating one-dimensional vectors corresponding to the three RGB channels respectively.
[0017] Preferably, the step of performing one-dimensional processing on the three RGB channels of the key source image to generate dynamic spatial keystreams corresponding to the three RGB channels specifically includes:
[0018] The RGB channels of the key source image are processed into one dimension according to the Zigzag transform method to generate dynamic spatial key streams corresponding to the three RGB channels respectively. The key source image is a random image with a unique number that was acquired before the image to be encrypted.
[0019] Preferably, based on the rolling encryption method, a key circle is constructed using the dynamic spatial key stream corresponding to each channel. The dynamic spatial key stream corresponding to each one-dimensional vector on the key circle is located according to the acquisition time of the image to be encrypted, forming an image information circle. The specific steps of establishing a one-to-one correspondence between the one-dimensional vector of the image information circle and the dynamic spatial key stream of the key circle include:
[0020] Initialize the key circle and divide the key circle into N equal sector blocks, where N is the total number of bits in the key stream vector in the dynamic space key stream;
[0021] A scale is set along the circumference of the key ring, starting from the zero mark, and the key stream vector in the dynamic space key stream is assigned as a decimal number to the sector block on the key ring along the circumference of the key ring.
[0022] The angle between the first and second vectors of the one-dimensional vector sequence of the image to be encrypted and the zero mark of the key circle is determined according to the acquisition time of the image to be encrypted using the following formula:
[0023]
[0024] In the formula, θ represents the angle value, and Tm represents the acquisition time in minutes;
[0025] The angle value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted relative to the zero mark of the key circle is rounded according to the following formula to obtain the real-time degree value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted:
[0026]
[0027] In the formula, K is the real-time degree of the first and second vectors of the sequence of the one-dimensional vector of the image to be encrypted, and α is the central angle of the sector block;
[0028] Starting with the scale number of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted, the one-dimensional vectors of the image to be encrypted are arranged sequentially along the circumferential direction of the key circle to determine the dynamic spatial key stream corresponding to each one-dimensional vector and form an image information circle.
[0029] Preferably, the step of constructing an encrypted image by performing an XOR operation on all one-dimensional vectors of the image information circle and their corresponding dynamic spatial key streams specifically includes:
[0030] The one-dimensional vector of the image to be encrypted and its corresponding dynamic spatial key stream are converted into binary numbers and XORed to form the ciphertext corresponding to the three RGB channels, thus forming an encrypted image.
[0031] Secondly, the present invention also provides an aerial image encryption system for power equipment, comprising:
[0032] The first one-dimensional processing module is used to perform one-dimensional processing on the three RGB channels of the image to be encrypted, and generate one-dimensional vectors corresponding to the three RGB channels respectively.
[0033] The second one-dimensional processing module is used to perform one-dimensional processing on the three RGB channels of the key source image to generate dynamic spatial key streams corresponding to the three RGB channels respectively.
[0034] The key positioning module is used to construct a key circle based on the rolling encryption method, using the dynamic spatial key stream corresponding to each channel. According to the acquisition time of the image to be encrypted, the module positions the dynamic spatial key stream corresponding to each one-dimensional vector on the key circle and forms an image information circle. The one-dimensional vector of the image information circle corresponds one-to-one with the dynamic spatial key stream of the key circle.
[0035] The encryption operation module is used to perform an XOR operation on all one-dimensional vectors of the image information circle and their corresponding dynamic spatial key streams to form an encrypted image.
[0036] Preferably, the first one-dimensional processing module is specifically used to perform one-dimensional processing on the three RGB channels of the image to be encrypted according to the Zigzag transform method, and generate one-dimensional vectors corresponding to the three RGB channels respectively.
[0037] Preferably, the second one-dimensional processing module is specifically used to perform one-dimensional processing on the three RGB channels of the key source image according to the Zigzag transform method to generate dynamic spatial key streams corresponding to the three RGB channels respectively, wherein the key source image is a random image with a unique number that was acquired before the image to be encrypted.
[0038] Preferably, the key location module specifically includes:
[0039] The key circle initialization module is used to initialize the key circle by dividing the key circle into N equal sector blocks, where N is the total number of bits in the key stream vector in the dynamic space key stream;
[0040] The key assignment module is used to set a scale along the circumference of the key circle, starting from the zero mark, and sequentially assign the key stream vector in the dynamic space key stream to the sector block on the key circle in decimal form along the circumference of the key circle.
[0041] An angle calculation module is used to determine the angle value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted relative to the zero mark of the key circle based on the acquisition time of the image to be encrypted using the following formula:
[0042]
[0043] In the formula, θ represents the angle value, and Tm represents the acquisition time in minutes;
[0044] The scale rounding module is used to round the angle value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted relative to the zero mark of the key circle according to the following formula, so as to obtain the real-time scale value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted:
[0045]
[0046] In the formula, K is the real-time degree of the first and second vectors of the sequence of the one-dimensional vector of the image to be encrypted, and α is the central angle of the sector block;
[0047] The key mapping module is used to arrange the one-dimensional vectors of the image to be encrypted sequentially along the circumferential direction of the key circle, starting with the scale number of the first and second vectors of the sequence of one-dimensional vectors of the image to be encrypted, so as to determine the dynamic spatial key stream corresponding to each one-dimensional vector and form an image information circle.
[0048] Preferably, the encryption operation module is specifically used to convert the one-dimensional vector of the image to be encrypted and its corresponding dynamic space key stream into binary numbers, and perform an XOR operation to form ciphertext corresponding to the three RGB channels respectively, thus forming an encrypted image.
[0049] As can be seen from the above technical solutions, the present invention has the following advantages:
[0050] This invention generates dynamic spatial keystreams corresponding to the RGB channels of the key source image by performing one-dimensional processing on each of the three channels. This utilizes the spatial information of the image to be encrypted to form a dynamic spatial keystream, ensuring that each encrypted image uses a unique key. Furthermore, the key data stream is truly random, significantly increasing the difficulty of brute-force decryption. Simultaneously, a rolling encryption method is employed. The dynamic spatial keystreams corresponding to each channel form a key circle. Based on the acquisition time of the image to be encrypted, the dynamic spatial keystream corresponding to each one-dimensional vector is located on the key circle, forming an image information circle. An XOR operation is performed on all one-dimensional vectors of the image information circle and their corresponding dynamic spatial keystreams to construct the encrypted image. This utilizes time information to form a dynamic gear between the key circle and the image information circle, causing the keystream to change in real time with the capture time. This enables real-time encryption, increasing the difficulty of decryption and enhancing data encryption security. Attached Figure Description
[0051] Figure 1A flowchart illustrating a method for encrypting aerial images of power equipment, provided as an embodiment of the present invention;
[0052] Figure 2 This is a schematic diagram of image numbering provided for an embodiment of the present invention;
[0053] Figure 3 A two-dimensional vector diagram of the R channel of the key source image provided in an embodiment of the present invention;
[0054] Figure 4 This is a schematic diagram illustrating the principle of the roller encryption method provided in an embodiment of the present invention;
[0055] Figure 5 This is a schematic diagram of the structure of an aerial image encryption system for power equipment provided in an embodiment of the present invention. Detailed Implementation
[0056] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0057] For easier understanding, please refer to Figure 1 The present invention provides a method for encrypting aerial images of power equipment, comprising the following steps:
[0058] Step 1: Perform one-dimensional processing on the three RGB channels of the image to be encrypted, generating one-dimensional vectors corresponding to the three RGB channels respectively.
[0059] In one example, the RGB channels of the image to be encrypted are processed into one dimension according to the Zigzag transform method, generating one-dimensional vectors corresponding to the three RGB channels respectively.
[0060] During intelligent operation and maintenance inspections, a large number of color images are often collected. In the batch image stream, images are numbered sequentially according to the order of acquisition: 1, 2, 3, ..., m-1, m. Figure 2 As shown.
[0061] Step 2: Perform one-dimensional processing on the three RGB channels of the key source image to generate dynamic spatial key streams corresponding to the three RGB channels respectively.
[0062] Specifically, step 2 is specifically to perform one-dimensionalization processing on the three RGB channels of the key source image respectively according to the Zigzag transform method, so as to generate dynamic spatial key streams corresponding to the three RGB channels respectively, wherein the key source image is a random image with a unique number collected before the image to be encrypted.
[0063] It should be noted that, in order to make the key sequence truly random and change in real time, the encryption key acquisition process of this embodiment combines image acquisition spatial information and temporal information.
[0064] Since various spatial characteristics such as shooting distance, shooting object, shooting angle, and light intensity are mapped in the pixel values of the image, that is, the image information exactly reflects the spatial information, in this embodiment, the spatial information required for key generation is obtained from the real-time captured image stream.
[0065] Exemplarily, assuming that the number of the latest collected image is m, the key stream used in the encryption process of this image comes from a certain random image among the previous images 1 to m, which is referred to as the key source image.
[0066] Assume that the number of the key source image is n (1<n<m). Since the substation aerial camera adopts a dynamic shooting method to collect inspection images, even if the drone has a fixed cruise trajectory, each inspection aerial image will continuously change the lens angle, captured light, target distance, etc. as the aerial camera moves in real time, resulting in randomness and unpredictability of the image detail information. In this embodiment, this randomness is used to generate a dynamic spatial key stream. Compared with the chaotic system used in traditional image encryption technologies, the dynamic spatial key stream has stronger anti-attack capability and randomness.
[0067] The three RGB channels of the key source image n are respectively transformed into three one-dimensional vectors of R, G and B according to the standard Zigzag transform method. Assuming a key source image with 4*4 pixels, its R channel is as Figure 3 shown, Figure 3The diagram illustrates the two-dimensional vector of the R channel of the key source image. During the Zigzag transform, the two-dimensional image is converted into a one-dimensional vector Rn = [1,2,5,9,6,3,4,7,10,13,14,11,8,12,15,16] by scrambling through a zigzag path scan. The same method will be used to process the two-dimensional information of the other two channels, G and B, into one dimension. The processing results are represented as Gn=[Gn1,Gn2,Gn3,Gn4,Gn5,Gn6,Gn7,Gn8,Gn9,Gn10,Gn11,Gn12,Gn13,Gn14,Gn15,Gn16] and Bn=[Bn1,Bn2,Bn3,Bn4,Bn5,Bn6,Bn7,Bn8,Bn9,Bn10,Bn11,Bn12,Bn13,Bn14,Bn15,Bn16].
[0068] Clearly, the dynamic spatial key stream generates a random data stream as the substation inspection drone moves in real time. Therefore, the key used for each encrypted image is different, and the key data stream is a truly random number.
[0069] Traditional image encryption uses chaotic sequences that depend on initial values, control parameters, and chaotic patterns. While a chaotic system is extremely sensitive to initial values and exhibits a non-periodic and unpredictable data sequence, the exact value of the entire chaotic sequence can be obtained if the initial values, control parameters, and chaotic patterns are intercepted by malicious actors. Therefore, chaotic sequences are not truly random sequences; they are pseudo-random.
[0070] Step 3: Based on the roller encryption method, a key circle is constructed using the dynamic spatial key stream corresponding to each channel. According to the acquisition time of the image to be encrypted, the dynamic spatial key stream corresponding to each one-dimensional vector is located on the key circle, and an image information circle is formed. The one-dimensional vector of the image information circle corresponds one-to-one with the dynamic spatial key stream of the key circle.
[0071] It should be noted that, in order to further expand the key space, enhance the irregularity of the ciphertext, and improve its resistance to decryption, time information is taken into account. A time operator is added to the encryption process, that is, based on the acquisition time of the image to be encrypted, the dynamic spatial key stream corresponding to each one-dimensional vector is located on the key circle, forming an image information circle. The key circle and the information circle form a dynamic gear, causing the dynamic key stream to change in real time with the acquisition time, thus achieving real-time encryption.
[0072] Step 4: Perform an XOR operation on all one-dimensional vectors of the image information circle and their corresponding dynamic space key streams to construct an encrypted image.
[0073] It should be noted that this invention performs one-dimensional processing on the three RGB channels of the key source image to generate dynamic spatial keystreams corresponding to each of the three RGB channels. This utilizes the spatial information of the image to be encrypted to form a dynamic spatial keystream, ensuring that each encrypted image uses a unique key. Furthermore, this key data stream is truly random, significantly increasing the difficulty of brute-force decryption. Simultaneously, a rolling encryption method is used to construct a key circle with the dynamic spatial keystreams corresponding to each channel. Based on the acquisition time of the image to be encrypted, the dynamic spatial keystream corresponding to each one-dimensional vector is located on the key circle, forming an image information circle. An XOR operation is performed on all one-dimensional vectors of the image information circle and their corresponding dynamic spatial keystreams to construct the encrypted image. This utilizes time information to form a dynamic gear between the key circle and the image information circle, causing the keystream to change in real time with the capture time, achieving real-time encryption, increasing the difficulty of decryption, and enhancing the security of data encryption.
[0074] In one feasible approach, step three specifically includes:
[0075] 301. Initialize the key circle by dividing it into N equal sector blocks, where N is the total number of bits in the key stream vector in the dynamic space key stream.
[0076] like Figure 4 As shown, Figure 4 The principle of the roller encryption method is illustrated, in which... Figure 4 The inner circle is the key circle, which is divided into N equal sector blocks, with the central angle of each sector being:
[0077]
[0078] In the formula, α is the central angle of the sector block.
[0079] For example, N can be 16.
[0080] 302. Set a scale around the circumference of the key ring, starting from the zero mark, and sequentially assign the key stream vector in the dynamic space key stream to the sector block on the key ring in decimal form along the circumference of the key ring.
[0081] 303. Based on the acquisition time of the image to be encrypted, the angle between the first and second vectors of the one-dimensional vector sequence of the image to be encrypted and the zero mark of the key circle is determined by the following formula:
[0082]
[0083] In the formula, θ represents the angle value, and Tm represents the acquisition time in minutes.
[0084] The starting time is 00:00 on the current day. The image acquisition time is converted into time Tm in minutes (seconds are ignored). For example, the image acquisition time m is th hour tm minute ts second (24-hour format). The formula for calculating Tm is:
[0085] Tm = th * 60 + tm
[0086] Based on the acquisition time Tm calculated in minutes in this step, and the total duration of a day 24*60=1440 (unit: minutes), calculate the angle value of the first and second vectors of the sequence of the one-dimensional vector of the image to be encrypted relative to the zero mark of the key circle.
[0087] 304. The angle value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted relative to the zero mark of the key circle is rounded according to the following formula to obtain the real-time degree value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted:
[0088]
[0089] In the formula, K is the real-time degree of the first and second vectors of the sequence of one-dimensional vectors of the image to be encrypted, and α is the central angle of the sector block.
[0090] 305. Starting with the tick number of the first and second vectors of the sequence of one-dimensional vectors of the image to be encrypted, arrange the one-dimensional vectors of the image to be encrypted sequentially along the circumference of the key circle to determine the dynamic spatial key stream corresponding to each one-dimensional vector and form an image information circle.
[0091] In one example, the starting scale is determined by the first and last vector's tick marks in the sequence of the one-dimensional vector of the image to be encrypted, and the remaining information values of the one-dimensional vector are then positioned clockwise to form... Figure 4 The outer ring of the sequence is called the image information ring. The key ring sequence corresponding to the image information ring sequence is the key stream of the image information for that channel, such as... Figure 4 As shown, the one-dimensional vector Rm = [Rm1,Rm2,Rm3,Rm4,Rm5,Rm6,Rm7,Rm8,Rm9,Rm10,Rm11,Rm12,Rm13,Rm14,Rm15,rm16] of the R channel information of the image m to be encrypted corresponds to the key.
[0092] Rn = [Rn6,Rn7,Rn8,Rn9,Rn10,Rn11,Rn12,Rn13,Rn14,Rn15,Rn1,Rn2,Rn3,Rn4,Rn5]. The key loop and the image information loop form a dynamic gear, causing the key stream to change in real time as the shooting time progresses.
[0093] The dynamic spatial key stream positioning method for the GB two channels of the image to be encrypted and the R channel of the image to be encrypted is the same, and will not be repeated here.
[0094] In one feasible approach, step four specifically includes:
[0095] The one-dimensional vector of the image to be encrypted and its corresponding dynamic space key stream are converted into binary numbers and XORed to form the ciphertext corresponding to the three RGB channels, thus forming the encrypted image.
[0096] For example, the ciphertext calculation method for the first pixel Rm'1 of image m is as follows:
[0097] Rm' 1m =Rm1⊙Rn1
[0098] In the formula, Rm' 1m Rn1 is the ciphertext of the first pixel Rm'1 of the R channel of image m, where Rm1 is the one-dimensional vector of the first pixel Rm'1 of the R channel of image m, and Rn1 is the dynamic spatial key stream of the first pixel Rm'1 of the R channel of image m.
[0099] The encrypted image can be obtained by calculating the ciphertext of the other pixels in the R channel of image m using the same method, and by calculating the ciphertext of the pixels in the GB and G channels of image m using the same method.
[0100] The above is a detailed description of an embodiment of an aerial image encryption method for power equipment provided by the present invention. The following is a detailed description of an embodiment of an aerial image encryption system for power equipment provided by the present invention.
[0101] For easier understanding, please refer to Figure 5 The present invention also provides an aerial image encryption system for power equipment, comprising:
[0102] The first one-dimensional processing module 100 is used to perform one-dimensional processing on the three RGB channels of the image to be encrypted, and generate one-dimensional vectors corresponding to the three RGB channels respectively.
[0103] The second one-dimensional processing module 200 is used to perform one-dimensional processing on the three RGB channels of the key source image to generate dynamic spatial key streams corresponding to the three RGB channels respectively.
[0104] The key positioning module 300 is used to construct a key circle based on the rolling encryption method, using the dynamic spatial key stream corresponding to each channel. According to the acquisition time of the image to be encrypted, the module locates the dynamic spatial key stream corresponding to each one-dimensional vector on the key circle and forms an image information circle. The one-dimensional vector of the image information circle corresponds one-to-one with the dynamic spatial key stream of the key circle.
[0105] The encryption operation module 400 is used to perform XOR operations on all one-dimensional vectors of the image information circle and their corresponding dynamic spatial key streams to form an encrypted image.
[0106] In one specific embodiment, the first one-dimensional processing module is specifically used to perform one-dimensional processing on the three RGB channels of the image to be encrypted according to the Zigzag transform method, and generate one-dimensional vectors corresponding to the three RGB channels respectively.
[0107] In one specific embodiment, the second one-dimensional processing module is specifically used to perform one-dimensional processing on the three RGB channels of the key source image according to the Zigzag transform method to generate dynamic spatial key streams corresponding to the three RGB channels respectively, wherein the key source image is a random image with a unique number that was acquired before the image to be encrypted.
[0108] In one specific embodiment, the key location module specifically includes:
[0109] The key circle initialization module is used to initialize the key circle by dividing it into N equal sector blocks, where N is the total number of bits in the key stream vector in the dynamic space key stream;
[0110] The key assignment module is used to set a scale around the circumference of the key circle. Starting from the zero mark, it sequentially assigns the key stream vector in the dynamic space key stream to the sector block on the key circle in decimal form along the circumference of the key circle.
[0111] The angle calculation module is used to determine the angle value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted relative to the zero mark of the key circle, based on the acquisition time of the image to be encrypted, using the following formula:
[0112]
[0113] In the formula, θ represents the angle value, and Tm represents the acquisition time in minutes;
[0114] The scale rounding module is used to round the angle value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted relative to the zero mark of the key circle according to the following formula, so as to obtain the real-time scale value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted:
[0115]
[0116] In the formula, K is the real-time degree of the first and second vectors of the sequence of one-dimensional vectors of the image to be encrypted, and α is the central angle of the sector block;
[0117] The key mapping module is used to arrange the one-dimensional vectors of the image to be encrypted sequentially along the circumference of the key circle, starting with the scale number of the first and second vectors of the sequence of one-dimensional vectors of the image to be encrypted, so as to determine the dynamic spatial key stream corresponding to each one-dimensional vector and form an image information circle.
[0118] In one specific embodiment, the encryption operation module is specifically used to convert the one-dimensional vector of the image to be encrypted and its corresponding dynamic space key stream into binary numbers, and perform an XOR operation to form ciphertext corresponding to the three RGB channels respectively, thus forming an encrypted image.
[0119] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the system described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0120] In the embodiments provided by this invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0121] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for encrypting aerial images of power equipment, characterized in that, Includes the following steps: The RGB channels of the image to be encrypted are processed into one-dimensional vectors to generate one-dimensional vectors corresponding to the three RGB channels respectively. The RGB three channels of the key source image are processed into one dimension to generate dynamic spatial key streams corresponding to the RGB three channels respectively; Based on the rolling encryption method, a key circle is constructed using the dynamic spatial key stream corresponding to each channel. According to the acquisition time of the image to be encrypted, the dynamic spatial key stream corresponding to each one-dimensional vector is located on the key circle, forming an image information circle. The one-dimensional vector of the image information circle corresponds one-to-one with the dynamic spatial key stream of the key circle, including: Initialize the key circle and divide the key circle into N equal sector blocks, where N is the total number of bits in the key stream vector in the dynamic space key stream; A scale is set along the circumference of the key ring, starting from the zero mark, and the key stream vector in the dynamic space key stream is assigned as a decimal number to the sector block on the key ring along the circumference of the key ring. The angle between the first and second vectors of the one-dimensional vector sequence of the image to be encrypted and the zero mark of the key circle is determined according to the acquisition time of the image to be encrypted using the following formula: In the formula, Tm represents the angle value and the acquisition time in minutes. The angle value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted relative to the zero mark of the key circle is rounded according to the following formula to obtain the real-time degree value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted: In the formula, K is the real-time degree of the first vector of the sequence of the one-dimensional vector of the image to be encrypted. The central angle of the sector block; Starting with the scale number of the first and second vectors of the sequence of one-dimensional vectors of the image to be encrypted, the one-dimensional vectors of the image to be encrypted are arranged sequentially along the circumferential direction of the key circle to determine the dynamic spatial key stream corresponding to each one-dimensional vector and form an image information circle. An encrypted image is constructed by performing an XOR operation on all one-dimensional vectors of the image information circle and their corresponding dynamic spatial key streams.
2. The method for encrypting aerial images of power equipment according to claim 1, characterized in that, The steps of performing one-dimensional processing on the three RGB channels of the image to be encrypted to generate one-dimensional vectors corresponding to the three RGB channels specifically include: The RGB channels of the image to be encrypted are processed into one-dimensional vectors according to the Zigzag transform method, generating one-dimensional vectors corresponding to the three RGB channels respectively.
3. The method for encrypting aerial images of power equipment according to claim 1, characterized in that, The steps for generating dynamic spatial keystreams corresponding to the RGB channels of the key source image by performing one-dimensional processing on each of the three channels include: The RGB channels of the key source image are processed into one dimension according to the Zigzag transform method to generate dynamic spatial key streams corresponding to the three RGB channels respectively. The key source image is a random image with a unique number that was acquired before the image to be encrypted.
4. The method for encrypting aerial images of power equipment according to claim 1, characterized in that, The steps for constructing an encrypted image by performing an XOR operation on all one-dimensional vectors of the image information circle and their corresponding dynamic spatial key streams include: The one-dimensional vector of the image to be encrypted and its corresponding dynamic spatial key stream are converted into binary numbers and XORed to form the ciphertext corresponding to the three RGB channels, thus forming an encrypted image.
5. A system for encrypting aerial images of power equipment, characterized in that, include: The first one-dimensional processing module is used to perform one-dimensional processing on the three RGB channels of the image to be encrypted, and generate one-dimensional vectors corresponding to the three RGB channels respectively. The second one-dimensional processing module is used to perform one-dimensional processing on the three RGB channels of the key source image to generate dynamic spatial key streams corresponding to the three RGB channels respectively. The key positioning module is used to construct a key circle based on the rolling encryption method, using the dynamic spatial key stream corresponding to each channel. According to the acquisition time of the image to be encrypted, the module positions the dynamic spatial key stream corresponding to each one-dimensional vector on the key circle and forms an image information circle. The one-dimensional vector of the image information circle corresponds one-to-one with the dynamic spatial key stream of the key circle. Based on the rolling encryption method, a key circle is constructed using the dynamic spatial key stream corresponding to each channel. According to the acquisition time of the image to be encrypted, the dynamic spatial key stream corresponding to each one-dimensional vector is located on the key circle, forming an image information circle. The one-dimensional vector of the image information circle corresponds one-to-one with the dynamic spatial key stream of the key circle, including: Initialize the key circle and divide the key circle into N equal sector blocks, where N is the total number of bits in the key stream vector in the dynamic space key stream; A scale is set along the circumference of the key ring, starting from the zero mark, and the key stream vector in the dynamic space key stream is assigned as a decimal number to the sector block on the key ring along the circumference of the key ring. The angle between the first and second vectors of the one-dimensional vector sequence of the image to be encrypted and the zero mark of the key circle is determined according to the acquisition time of the image to be encrypted using the following formula: In the formula, Tm represents the angle value and the acquisition time in minutes. The angle value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted relative to the zero mark of the key circle is rounded according to the following formula to obtain the real-time degree value of the first and second vectors of the one-dimensional vector sequence of the image to be encrypted: In the formula, K is the real-time degree of the first vector of the sequence of the one-dimensional vector of the image to be encrypted. The central angle of the sector block; Starting with the scale number of the first and second vectors of the sequence of one-dimensional vectors of the image to be encrypted, the one-dimensional vectors of the image to be encrypted are arranged sequentially along the circumferential direction of the key circle to determine the dynamic spatial key stream corresponding to each one-dimensional vector and form an image information circle. The encryption operation module is used to perform an XOR operation on all one-dimensional vectors of the image information circle and their corresponding dynamic spatial key streams to form an encrypted image.
6. The aerial image encryption system for power equipment according to claim 5, characterized in that, The first one-dimensional processing module is specifically used to perform one-dimensional processing on the three RGB channels of the image to be encrypted according to the Zigzag transform method, and generate one-dimensional vectors corresponding to the three RGB channels respectively.
7. The aerial image encryption system for power equipment according to claim 5, characterized in that, The second one-dimensional processing module is specifically used to perform one-dimensional processing on the three RGB channels of the key source image according to the Zigzag transform method, and generate dynamic spatial key streams corresponding to the three RGB channels respectively. The key source image is a random image with a unique number that was acquired before the image to be encrypted.
8. The aerial image encryption system for power equipment according to claim 5, characterized in that, The encryption operation module is specifically used to convert the one-dimensional vector of the image to be encrypted and its corresponding dynamic space key stream into binary numbers, and perform an XOR operation to form ciphertext corresponding to the three RGB channels respectively, thus forming an encrypted image.
Citation Information
Patent Citations
Dynamic cross chaotic encryption method and system applied to smart power grid
CN115208550A
Method and system for generating musical variations directed to particular skill-levels
US20070022866A1
