Power image encryption method and system, terminal and storage medium

The segmented function is constructed through the Devaney chaos judgment theorem, and the power image is encrypted using the characteristics of the chaotic system, solving the problems of encryption efficiency and key management in the prior art, and achieving efficient power image encryption effect.

CN119094666APending Publication Date: 2024-12-06QINGDAO PORT INT CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411069745.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing power image encryption methods have problems in encryption efficiency and key management, especially the key management of symmetric encryption algorithms is difficult, while the encryption and decryption process of asymmetric encryption algorithms is complex, and the insufficient chaotic characteristics affect the encryption effect. .

Method used

The Devaney chaos judgment theorem is used to construct segmented functions to construct more systems with stronger chaotic characteristics, and the chaotic system is used to encrypt power image data, so as to improve the encryption efficiency and effect through the sensitivity of the chaotic system to the initial value.

Benefits of technology

Efficient power image encryption is realized, the encryption effect is improved, and the encrypted image becomes visually unrecognizable through XOR operation, solving the problems of encryption efficiency and key management in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094666A_ABST
    Figure CN119094666A_ABST
Patent Text Reader

Abstract

The invention relates to the field of image encryption, and particularly discloses a power image encryption method and system, a terminal and a storage medium. Performing gray processing on the target power image; constructing a piecewise function in a definitional domain interval according to a Devey chaos decision theorem; configuring a key set; and encrypting the preprocessed target power image by using a chaotic system based on the piecewise function and the key set. According to the method, the piecewise function is constructed by using the Devey chaos decision theorem, so that more systems with stronger chaos characteristics are constructed, and the encryption effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image encryption, and in particular to a power image encryption method, system, terminal and storage medium. Background Art

[0002] Power image data, such as equipment monitoring images and grid operation images, contain a large amount of sensitive information, the leakage of which may have a serious impact on the safe and stable operation of the power system. For example, when uploading images of pipelines during pipeline patrol, some suspicious persons or suspicious courtyards captured during the inspection, and monitoring images of high-consequence areas, it is necessary to ensure the security and effectiveness of image transmission when transmitting them back to the background system.

[0003] Traditional power image encryption methods mostly use symmetric encryption algorithms or asymmetric encryption algorithms. Although these methods can realize encryption protection of power image data, they have some problems in encryption efficiency and key management. For example, symmetric encryption algorithms need to ensure that the same key is used for encryption and decryption, and the security management and distribution of keys are difficult; although asymmetric encryption algorithms solve the problem of key distribution, the encryption and decryption process is computationally complex and the encryption efficiency is low.

[0004] In recent years, chaos theory has been widely used in the field of information security. Chaotic systems are sensitive to initial values ​​and unpredictable in the long term, which makes them very suitable for data encryption. Introducing chaotic systems into the field of power image encryption and using the characteristics of chaotic systems to encrypt and protect power image data has important research significance and application value. At present, when using chaotic systems to encrypt power images, there is a problem of insufficient chaotic characteristics, which affects the encryption effect. Summary of the invention

[0005] To solve the above problems, the present invention provides a power image encryption method, system, terminal and storage medium, which use Devaney chaos determination theorem to construct piecewise functions to construct more systems with stronger chaotic characteristics and improve the encryption effect.

[0006] In a first aspect, the technical solution of the present invention provides a power image encryption method, comprising the following steps:

[0007] Acquire target power image;

[0008] Perform grayscale processing on the target power image;

[0009] According to Devaney's chaos determination theorem, piecewise functions are constructed within the domain interval;

[0010] Configure key sets;

[0011] The preprocessed target power image is encrypted using a chaotic system based on piecewise functions and key sets.

[0012] In an optional implementation, a piecewise function is constructed within the domain interval according to Devaney's chaos determination theorem, specifically including:

[0013] The domain interval is [0,1];

[0014] The piecewise function expression is:

[0015]

[0016] In an optional implementation, the target power image after grayscale processing is encrypted using a chaotic system based on a piecewise function and a key set, specifically including:

[0017] Select the chaotic system and set the initial conditions;

[0018] Generate an initial chaotic sequence according to the chaotic system and initial conditions;

[0019] selecting a piecewise function to be applied based on each key element in the key set;

[0020] The initial chaotic sequence is transformed using the applied piecewise function to obtain the final chaotic sequence;

[0021] The final chaotic sequence is used to encrypt the target power image after grayscale processing.

[0022] In an optional implementation, the target power image after grayscale processing is encrypted using the final chaotic sequence, specifically including:

[0023] Convert the final chaotic sequence into a two-dimensional matrix with the same size as the grayscale image as the encryption matrix;

[0024] The encryption matrix and the image pixel value are subjected to an XOR operation to obtain the final encrypted image.

[0025] In a second aspect, the technical solution of the present invention provides a power image encryption system, comprising:

[0026] Image acquisition module: acquire target power image;

[0027] Image grayscale processing module: grayscale processing of target power image;

[0028] Piecewise function construction module: construct piecewise functions in the domain interval according to Devaney chaos determination theorem;

[0029] Key set configuration module: configure key set;

[0030] Image encryption module: The preprocessed target power image is encrypted using a chaotic system based on a piecewise function and a key set.

[0031] In an optional implementation, the piecewise function construction module constructs a piecewise function within the domain interval according to Devaney's chaos determination theorem, specifically including:

[0032] The domain interval is [0,1];

[0033] The piecewise function expression is:

[0034]

[0035] In an optional implementation, the image encryption module uses a chaotic system to encrypt the grayscale processed target power image based on a piecewise function and a key set, specifically including:

[0036] Select the chaotic system and set the initial conditions;

[0037] Generate an initial chaotic sequence according to the chaotic system and initial conditions;

[0038] selecting a piecewise function to be applied based on each key element in the key set;

[0039] The initial chaotic sequence is transformed using the applied piecewise function to obtain the final chaotic sequence;

[0040] The final chaotic sequence is used to encrypt the target power image after grayscale processing.

[0041] In an optional implementation, the target power image after grayscale processing is encrypted using the final chaotic sequence, specifically including:

[0042] Convert the final chaotic sequence into a two-dimensional matrix with the same size as the grayscale image as the encryption matrix;

[0043] The encryption matrix and the image pixel value are subjected to an XOR operation to obtain the final encrypted image.

[0044] In a third aspect, the technical solution of the present invention provides a terminal, including:

[0045] A memory, used for storing a power image encryption program;

[0046] A processor is used to implement the steps of any of the above-mentioned power image encryption methods when executing the power image encryption program.

[0047] In a fourth aspect, the technical solution of the present invention provides a computer-readable storage medium, on which a power image encryption program is stored. When the power image encryption program is executed by a processor, the steps of the power image encryption method as described in any one of the above items are implemented.

[0048] Compared with the prior art, the power image encryption method, system, terminal and storage medium provided by the present invention have the following beneficial effects: a chaotic system is used to encrypt power image data, and the characteristic of the chaotic system being sensitive to initial values ​​is utilized to make the encryption process highly efficient. Meanwhile, Devaney's chaos judgment theorem is used to construct piecewise functions to construct more systems with stronger chaotic characteristics, thereby improving the encryption effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 It is a flowchart of a power image encryption method provided by an embodiment of the present invention.

[0051] Figure 2 It is a schematic diagram of image encryption and decryption effect.

[0052] Figure 3 It is a schematic block diagram of the structure of a power image encryption system provided by an embodiment of the present invention.

[0053] Figure 4 It is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0056] An embodiment of the present invention provides an electric power image encryption system, which provides an interface on the corresponding visualization page for users to fill in relevant information of the inspection plan. After submission, the background creates a corresponding scheduled task, executes the task at a specific time point, inspects the corresponding service resources and generates an inspection report.

[0057] Figure 1 It is a flowchart of a power image encryption method provided by an embodiment of the present invention.

[0058] in, Figure 1 The execution subject may be a power image encryption system. The power image encryption method provided in the embodiment of the present invention is executed by a computer device, and accordingly, the power image encryption system runs in the computer device. According to different requirements, the order of the steps in the flowchart may be changed, and some may be omitted.

[0059] like Figure 1 As shown, the method includes the following steps.

[0060] S1, acquiring a target power image.

[0061] The power images that need to be encrypted and transmitted are obtained from the image capture device. These power images are target power images. These target power images are encrypted and then transmitted to the background.

[0062] S2, grayscale processing is performed on the target power image.

[0063] In order to improve the processing effect, the target power image is firstly gray-processed to obtain a gray-scale image, and then the gray-scale image is encrypted and transmitted.

[0064] S3, construct piecewise functions in the domain interval according to Devaney chaos determination theorem.

[0065] This embodiment constructs a (general) new family of piecewise functions with stronger chaotic characteristics based on Devaney chaos determination theorem given by Shi and Chen in the document "Chaos of discrete dynamical systems incomplete metric spaces".

[0066] The domain interval of the piecewise function is [0,1]. The constructed piecewise function expression is:

[0067]

[0068] With f 4 (x), f 5 (x), f 6 (x) as an example: where f 4 (x) and f 5(x) The intersection point coordinates are P(p,1), f 5 (x) and f 6 (x) The coordinates of the intersection point are Q(q,1), then f 4 The coordinates of the midpoint of (x) are 0 <p<q<1。 Then when When f 4 (x) |f′ at point p,q 5 (x)|>1, then this system is in V 0 :[0,p+Δp],V 1 : On the interval [q+Δq,1] (Δp and Δq are the neighborhoods of p and q respectively), there exists a cantor set So that f:Λ→Λ is topologically conjugate to the symbolic dynamical system σ: Thus f is chaotic in Λ in the Devaney sense.

[0069] S4, configure the key set.

[0070] S5, encrypts the preprocessed target power image using a chaotic system based on a piecewise function and a key set.

[0071] S5.1, select the chaotic system and set the initial conditions.

[0072] Select a suitable chaotic system according to the needs, for example, the chaotic system includes Logistic mapping, Henon mapping, etc.

[0073] Initial conditions are set for the selected chaotic system, including the initial state or parameters of the system. For example, in the Logistic map, the initial condition is a number in the range of (0,1) as the value of X(0).

[0074] S5.2, generating an initial chaotic sequence according to the chaotic system and initial conditions.

[0075] According to the selected chaotic system, the corresponding chaotic map is determined. The initial value and the chaotic map are used to perform calculations to generate a chaotic sequence, which specifically includes iterative calculations, such as using the formula of the Logistic map Xn+1=r*Xn*(1-Xn) for iteration. Through multiple iterative calculations, an initial chaotic sequence is generated.

[0076] S5.3, selecting a piecewise function to be applied based on each key element in the key set.

[0077] A key set is a group of key elements used for encryption. According to each key element in the key set, a corresponding piecewise function is selected. The piecewise function of this embodiment is the piecewise function constructed in step S3. For example, the piecewise function applied to the first key element is f4 (x) It should be noted that the piecewise function selected to be applied to each key element refers to each sub-function f in the piecewise function constructed in step S3. 1 (x)~f 6 (x).

[0078] S5.4, transform the initial chaotic sequence using the applied piecewise function to obtain the final chaotic sequence.

[0079] The selected piecewise function is applied to each element of the initial chaotic sequence, and the value of the initial chaotic sequence is changed through the transformation of the piecewise function to generate the final chaotic sequence.

[0080] S5.5, encrypt the target power image after grayscale processing using the final chaotic sequence.

[0081] The final chaotic sequence is converted into a two-dimensional matrix with the same size as the grayscale image as the encryption matrix.

[0082] The grayscale image is encrypted using an encryption matrix, including replacement or transformation of pixel values, so that the encrypted image becomes visually unrecognizable. In this embodiment, the encryption matrix and the image pixel values ​​are subjected to an XOR operation to obtain the final encrypted image.

[0083] In a specific embodiment, the key set is selected as keys = {0.361, 0.513, 0.732, 0.939, 0.317, 0.983, 0.897, 0.511, 0.296}. Figure 2 As mentioned above, first select the Lena image with a plaintext of 256x 256 for algorithm testing, such as Figure 2 (a1) is shown. The plaintext is encrypted and decrypted according to the above image encryption algorithm, and the effect is as follows Figure 2 (a2),2(a3). If the wrong key is used for decryption, the result will be Figure 2 (a4); then select the plaintext of 256×256 Figure 1 , 2 The algorithm was tested separately. The encrypted, decrypted, and incorrectly decrypted images of the three images were all Figure 2 Work Figure 1 , 2 The pictures taken and uploaded during daily inspections involve pipeline directions and pile sign information, so the encryption algorithm was added to the inspection system, and the encryption effect was good.

[0084] An embodiment of a power image encryption method is described in detail above. Based on the power image encryption method described in the above embodiment, an embodiment of the present invention further provides a power image encryption system corresponding to the method.

[0085] Figure 3 It is a schematic block diagram of the structure of a power image encryption system provided by an embodiment of the present invention. In this embodiment, the power image encryption system 400 can be divided into multiple functional modules according to the functions it performs. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can perform fixed functions, which are stored in a memory.

[0086] Image acquisition module 410: acquires a target power image.

[0087] Image grayscale processing module 420: performs grayscale processing on the target power image.

[0088] Piecewise function construction module 430: constructs a piecewise function within the domain interval according to Devaney chaos determination theorem.

[0089] Key set configuration module 340: configures the key set.

[0090] Image encryption module 350: Encrypts the pre-processed target power image using a chaotic system based on a piecewise function and a key set.

[0091] In an optional implementation, the piecewise function construction module 430 constructs a piecewise function within the domain interval according to Devaney's chaos determination theorem, specifically including:

[0092] The domain interval is [0,1].

[0093] The piecewise function expression is:

[0094]

[0095] In an optional embodiment, the image encryption module 350 uses a chaotic system to encrypt the target power image after grayscale processing based on a piecewise function and a key set, specifically including: selecting a chaotic system and setting initial conditions; generating an initial chaotic sequence according to the chaotic system and the initial conditions; selecting a piecewise function to be applied according to each key element in the key set; using the applied piecewise function to transform the initial chaotic sequence to obtain a final chaotic sequence; and using the final chaotic sequence to encrypt the target power image after grayscale processing.

[0096] In an optional embodiment, the target power image after grayscale processing is encrypted using the final chaotic sequence, specifically including: converting the final chaotic sequence into a two-dimensional matrix of the same size as the grayscale image as an encryption matrix; performing an XOR operation on the encryption matrix and the image pixel value to obtain the final encrypted image.

[0097] The power image encryption system of this embodiment is used to implement the aforementioned power image encryption method. Therefore, the specific implementation method of the system can be seen in the embodiment part of the power image encryption method in the previous text. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part, which will not be elaborated here.

[0098] In addition, since the power image encryption system of this embodiment is used to implement the aforementioned power image encryption method, its function corresponds to that of the aforementioned method and will not be repeated here.

[0099] Figure 4 A schematic diagram of the structure of a controlled terminal 400 provided in an embodiment of the present invention includes: a processor 410, a memory 420 and a communication unit 430. The processor 410 is used to implement the following steps when implementing the power image encryption program stored in the memory 420:

[0100] Acquire target power image;

[0101] Perform grayscale processing on the target power image;

[0102] According to Devaney's chaos determination theorem, piecewise functions are constructed within the domain interval;

[0103] Configure key sets;

[0104] The preprocessed target power image is encrypted using a chaotic system based on piecewise functions and key sets.

[0105] The controlled terminal 400 includes a processor 410, a memory 420 and a communication unit 430. These components communicate via one or more buses. It can be understood by those skilled in the art that the structure of the server shown in the figure does not constitute a limitation of the present invention, and it can be a bus structure or a star structure, and can also include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0106] The memory 420 can be used to store the execution instructions of the processor 410, and the memory 420 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 420 are executed by the processor 410, the controlled terminal 400 can execute some or all of the steps in the following method embodiments.

[0107] The processor 410 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It executes various functions of the electronic terminal and / or processes data by running or executing software programs and / or modules stored in the memory 420, and calling data stored in the memory. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of a plurality of packaged ICs with the same or different functions. For example, the processor 410 can include only a central processing unit (CPU). In an embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0108] The communication unit 430 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.

[0109] The present invention also provides a computer storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0110] The computer storage medium stores a power image encryption program, and when the power image encryption program is executed by the processor, the following steps are implemented:

[0111] Acquire target power image;

[0112] Perform grayscale processing on the target power image;

[0113] According to Devaney's chaos determination theorem, piecewise functions are constructed within the domain interval;

[0114] Configure key sets;

[0115] The preprocessed target power image is encrypted using a chaotic system based on piecewise functions and key sets.

[0116] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention.

[0117] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0118] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0119] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0120] The above disclosure is only a preferred embodiment of the present invention, but the present invention is not limited thereto. Any non-creative changes that can be thought of by a person skilled in the art, as well as several improvements and modifications made without departing from the principle of the present invention, should fall within the protection scope of the present invention.

Claims

1. A power image encryption method, characterized in that: The following steps are involved: Acquire target power image; Perform grayscale processing on the target power image; According to Devaney's chaos determination theorem, piecewise functions are constructed within the domain interval; Configure key sets; The preprocessed target power image is encrypted using a chaotic system based on piecewise functions and key sets.

2. The power image encryption method according to claim 1, characterized in that: According to Devaney's chaos determination theorem, a piecewise function is constructed in the domain interval, specifically including: the domain interval is [0,1]; The piecewise function expression is:

3. The power image encryption method according to claim 2, characterized in that: The target power image after grayscale processing is encrypted using a chaotic system based on a piecewise function and a key set, specifically including: Select the chaotic system and set the initial conditions; Generate an initial chaotic sequence according to the chaotic system and initial conditions; selecting a piecewise function to be applied based on each key element in the key set; The initial chaotic sequence is transformed using the applied piecewise function to obtain the final chaotic sequence; The final chaotic sequence is used to encrypt the target power image after grayscale processing.

4. The power image encryption method according to claim 3, characterized in that: The target power image after grayscale processing is encrypted using the final chaotic sequence, specifically including: converting the final chaotic sequence into a two-dimensional matrix with the same size as the grayscale image as an encryption matrix; The encryption matrix and the image pixel value are subjected to an XOR operation to obtain the final encrypted image.

5. A power image encryption system, characterized in that: include, Image acquisition module: acquire target power image; Image grayscale processing module: grayscale processing of target power image; Piecewise function construction module: construct piecewise functions in the domain interval according to Devaney chaos determination theorem; Key set configuration module: configure key set; Image encryption module: The preprocessed target power image is encrypted using a chaotic system based on a piecewise function and a key set.

6. The power image encryption system according to claim 5, characterized in that: The piecewise function construction module constructs piecewise functions within the domain interval according to Devaney's chaos determination theorem, including: The domain interval is [0,1]; The piecewise function expression is:

7. The power image encryption system according to claim 6, characterized in that: The image encryption module uses a chaotic system to encrypt the target power image after grayscale processing based on a piecewise function and a key set, specifically including: Select the chaotic system and set the initial conditions; Generate an initial chaotic sequence according to the chaotic system and initial conditions; selecting a piecewise function to be applied based on each key element in the key set; The initial chaotic sequence is transformed using the applied piecewise function to obtain the final chaotic sequence; The final chaotic sequence is used to encrypt the target power image after grayscale processing.

8. The power image encryption system according to claim 7, characterized in that: The target power image after grayscale processing is encrypted using the final chaotic sequence, specifically including: converting the final chaotic sequence into a two-dimensional matrix with the same size as the grayscale image as an encryption matrix; The encryption matrix and the image pixel value are subjected to an XOR operation to obtain the final encrypted image.

9. A terminal, characterized in that: include: A memory, used for storing a power image encryption program; A processor, configured to implement the steps of the power image encryption method as described in any one of claims 1 to 4 when executing the power image encryption program.

10. A computer-readable storage medium, characterized in that: The readable storage medium stores a power image encryption program, and when the power image encryption program is executed by the processor, the steps of the power image encryption method according to any one of claims 1 to 4 are implemented.