A method and related device for image data encryption based on chaotic mapping
By generating an initial sequence through a three-dimensional chaotic system and then reconstructing and rearranging it, the problem of insufficient security in 5G private network image encryption is solved, and high-security image data encryption is achieved.
Patent Information
- Application Number
- CN202610096777.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-23
- Publication Date
- 2026-05-26
AI Technical Summary
Existing image encryption technologies based on 5G private networks have insufficient security when using chaotic systems to generate pseudo-random sequences, especially under high real-time requirements, where system security is sacrificed.
An initial sequence is generated using a three-dimensional chaotic system. By removing parts of the sequence, resampling, and rearranging, an encrypted chaotic series is formed to encrypt the image data. The complex dynamic characteristics and initial value sensitivity of the three-dimensional chaotic system are utilized to generate an unpredictable key stream.
It significantly improves the security of image encryption data, enhances its anti-prediction and anti-tampering capabilities, and achieves dual permutation encryption of image data.
Smart Images

Figure CN122093510A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image data encryption technology, and in particular to an image data encryption method and related equipment based on chaotic mapping. Background Technology
[0002] As a next-generation communication technology, 5G networks not only support massive IoT connections and ultra-high-speed data transmission, but also place higher demands on data transmission security. Chaotic mapping technology, with its unique nonlinear dynamic characteristics and quasi-random behavior, provides an effective solution to this security challenge. This encryption algorithm generates a highly complex chaotic sequence and performs a bit-level XOR operation with the plaintext data, achieving dual security guarantees while ensuring computational efficiency: preventing data leakage through an unpredictable key stream and resisting tampering attacks by utilizing the initial value sensitivity of chaotic systems. This innovative application, combining chaos theory with traditional cryptography, constructs a reliable dynamic protection system for the communication security of massive heterogeneous devices in the 5G era.
[0003] In related technologies, based on the high real-time requirements of 5G private networks, a pseudo-random sequence generated by a chaotic system is used to encrypt images. The general idea is to use the chaotic sequence generated by the chaotic system, rearrange this sequence according to a certain scheme to generate a new sequence. The ergodicity of the chaotic system ensures that the position transformation between the original chaotic sequence and the new sequence is one-to-one, but to a certain extent, the security of the system is sacrificed. Summary of the Invention
[0004] The main objective of this application is to propose an image data encryption method and related device based on chaotic mapping, which aims to improve the security of image encrypted data.
[0005] To achieve the above objectives, one aspect of this application proposes an image data encryption method based on chaotic mapping, the method comprising the following steps:
[0006] Determine the initial parameters and system equations of a three-dimensional chaotic system, and generate an initial three-dimensional chaotic sequence based on the initial parameters and system equations; the initial parameters include initial values, which are determined according to the system equations. By removing a portion of the initial three-dimensional chaotic sequence, the target three-dimensional chaotic sequence is obtained; The sampling interval is determined based on the length of the target three-dimensional chaotic sequence, and the target three-dimensional chaotic sequence is resampled based on the sampling interval to obtain an encrypted chaotic series. The encrypted chaotic series is rearranged, and the image data to be encrypted is encrypted according to the rearranged encrypted chaotic series.
[0007] In some embodiments, the system equations are as follows:
[0008]
[0009] .
[0010] In some embodiments, the method further includes: Substitute the initial parameters into the system equations to verify whether the conditions for generating chaos are met.
[0011] In some embodiments, removing a portion of the initial three-dimensional chaotic sequence to obtain the target three-dimensional chaotic sequence includes: In each dimension, a portion of the initial three-dimensional chaotic sequence is removed according to a preset ratio; The initial three-dimensional chaotic sequence, after removing a portion of the sequence, is concatenated to obtain the target three-dimensional chaotic sequence.
[0012] In some embodiments, determining the sampling interval based on the length of the target three-dimensional chaotic sequence includes: The increasing interval is determined based on the length of the target three-dimensional chaotic sequence; Based on the increasing interval, several sampling points are determined by sequentially increasing the sampling points. The original data is then encrypted based on the sampling points, and the sampling interval is determined based on the cross-correlation between the encrypted data and the original data.
[0013] In some embodiments, rearranging the cryptographic chaotic series includes: Determine the target sequence of a preset length based on the size of the image data to be encrypted; The target sequence is sorted by size to obtain a rearranged encrypted chaotic sequence.
[0014] To achieve the above objectives, another aspect of this application proposes an image data encryption device based on chaotic mapping, the device comprising: The first module is used to determine the initial parameters and system equations of the three-dimensional chaotic system, and to generate an initial three-dimensional chaotic sequence based on the initial parameters and system equations; the initial parameters include initial values, which are determined according to the system equations. The second module is used to remove part of the initial three-dimensional chaotic sequence to obtain the target three-dimensional chaotic sequence. The third module is used to determine the sampling interval based on the length of the target three-dimensional chaotic sequence, and to resample the target three-dimensional chaotic sequence based on the sampling interval to obtain an encrypted chaotic series. The fourth module is used to rearrange the encrypted chaotic series and encrypt the image data to be encrypted according to the rearranged encrypted chaotic series.
[0015] To achieve the above objectives, another aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the methods described above.
[0016] To achieve the above objectives, another aspect of the embodiments of this application proposes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods described above.
[0017] To achieve the above objectives, another aspect of the embodiments of this application proposes a computer program product, including a computer program that, when executed by a processor, implements the methods described above.
[0018] The embodiments of this application include at least the following beneficial effects: This application provides an image data encryption method, apparatus, electronic device, storage medium, and program product based on chaotic mapping. This scheme determines the initial parameters and system equations of a three-dimensional chaotic system, generates an initial three-dimensional chaotic sequence based on the initial parameters and system equations, removes a portion of the initial three-dimensional chaotic sequence to obtain a target three-dimensional chaotic sequence, determines a sampling interval based on the length of the target three-dimensional chaotic sequence, resamples the target three-dimensional chaotic sequence according to the sampling interval to obtain an encrypted chaotic series, rearranges the encrypted chaotic series, and encrypts the image data to be encrypted based on the rearranged encrypted chaotic series. The encryption system employs a three-dimensional chaotic system fusion architecture, performing transient elimination preprocessing and reconstruction to form a key stream. Combined with resampling and chaotic sorting rearrangement mechanisms, it achieves dual permutation of pixel position and grayscale, thereby significantly improving the security of image encryption data. Initial parameters include initial values, which are determined according to the system equations. These initial values are set to form a special nonlinear trajectory in phase space. Verification shows that it has more complex dynamic behavior characteristics. The system state exhibits strong initial value sensitivity during iteration, and the trajectory divergence rate reaches exponential levels. This unpredictability provides a natural pseudo-randomness basis for sequence generation, significantly enhancing the anti-predictability of the encryption system. Attached Figure Description
[0019] Figure 1 This is a flowchart of the image data encryption method based on chaotic mapping provided in the embodiments of this application; Figure 2 This is a Lyapunov index diagram provided in an embodiment of this application; Figure 3 This is the phase diagram of the first three-dimensional chaotic system provided in the embodiments of this application; Figure 4 This is a phase diagram of a second type of three-dimensional chaotic system provided in the embodiments of this application; Figure 5 This is a phase diagram of a third type of three-dimensional chaotic system provided in the embodiments of this application; Figure 6 This is the phase diagram of the fourth three-dimensional chaotic system provided in the embodiments of this application; Figure 7 These are the chaotic encryption graphs with and without truncation provided in the embodiments of this application; Figure 8 These are the original image and chaotic encrypted images with different sampling intervals provided in the embodiments of this application; Figure 9 These are the original diagram and the Logistic chaotic series encrypted diagram provided in the embodiments of this application; Figure 10 This is a schematic diagram of the structure of the image data encryption device based on chaotic mapping provided in the embodiments of this application; Figure 11 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit it. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those of this application; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.
[0021] It is understood that the terms “first,” “second,” etc., used in this application may be used herein to describe various concepts, but unless otherwise stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words “if,” “when,” or “in response to a determination” as used herein may be interpreted as “when…” or “when…” or “in response to a determination.”
[0022] As used in this application, the terms "at least one", "multiple", "each", "any", etc., "at least one" includes one, two or more, "multiple" includes two or more, "each" refers to each of the corresponding multiples, and "any" refers to any one of the multiples.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0024] Before providing a detailed description of the embodiments of this application, some of the nouns and terms involved in the embodiments of this application will be explained first. The nouns and terms involved in the embodiments of this application are subject to the following interpretations.
[0025] The image data encryption method based on chaotic mapping provided in this application relates to the field of information technology. This image data encryption method based on chaotic mapping can be applied to a terminal, a server, or software running on a terminal or server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, or in-vehicle terminal, but is not limited to these. The server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network. The software can be an application implementing the image data encryption method based on chaotic mapping, but is not limited to the above forms.
[0026] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0027] Figure 1 This is an optional flowchart of an image data encryption method based on chaotic mapping provided in an embodiment of this application. Figure 1 The method may include, but is not limited to, steps S101 to S104.
[0028] Step S101: Determine the initial parameters and system equations of the three-dimensional chaotic system, and generate an initial three-dimensional chaotic sequence based on the initial parameters and system equations; the initial parameters include initial values, which are determined according to the system equations. Step S102: Remove part of the initial three-dimensional chaotic sequence to obtain the target three-dimensional chaotic sequence; Step S103: Determine the sampling interval based on the length of the target three-dimensional chaotic sequence, and resample the target three-dimensional chaotic sequence according to the sampling interval to obtain the encrypted chaotic series; Step S104: Rearrange the encrypted chaotic series, and encrypt the image data to be encrypted according to the rearranged encrypted chaotic series.
[0029] Specifically, first, the initial parameters and system equations of the three-dimensional chaotic system are determined. The initial parameters include, but are not limited to, time length and time interval, and initial values of the three dimensions. The initial values are determined according to the system equations. The initial parameters are substituted into the system equations to generate an initial three-dimensional chaotic sequence. Then, the initial three-dimensional chaotic sequence is truncated and reconstructed: a portion of the initial three-dimensional chaotic sequence is removed to obtain the target three-dimensional chaotic sequence. Next, the target three-dimensional chaotic sequence is resampled: the sampling interval is determined according to the length of the target three-dimensional chaotic sequence, and the target three-dimensional chaotic sequence is resampled according to the sampling interval to obtain an encrypted chaotic series. Finally, the encrypted chaotic series is rearranged, and the image data to be encrypted is encrypted according to the rearranged encrypted chaotic series.
[0030] In some embodiments, the system equations are as follows:
[0031]
[0032] .
[0033] Considering the complexity of the components, this paper adopts a three-dimensional chaotic system equation and still uses the design method of nonlinear systems with product terms. Through redesigning the equation set and repeated experimental verification, the above-mentioned novel circuit structure equation is finally proposed.
[0034] Based on the system dissipation formula, the system divergence of the novel three-dimensional chaotic secure communication circuit is calculated as follows:
[0035] Through calculation and verification, it was found that as long as 4z-1 is less than 0, the system is dissipative, the designed equation meets the conditions for generating chaos, and is successful, belonging to the category of chaotic circuits.
[0036] In some embodiments, the method further includes: Step S201: Substitute the initial parameters into the system equations to verify whether the conditions for generating chaos are met.
[0037] The Lyapunov exponent is also a method to prove that a system is in a chaotic state. The phase diagram reconstruction method is used to calculate the Lyapunov exponent. That is, by constructing the Jacobian matrix and performing QR decomposition, the Lyapunov exponent is solved. When generating the phase diagram using MATLAB, the ode45 algorithm is used. This is currently the most commonly used algorithm for solving systems of ordinary differential equations, and it is characterized by its non-rigidity and high accuracy.
[0038] First, the Jacobian matrix equation of the circuit is written as follows:
[0039] Next, the equation is orthogonally decomposed and iterated repeatedly to obtain the Lyapunov exponent diagram. For example... Figure 2 As shown.
[0040] According to existing criteria for determining chaos, a circuit can be considered a chaotic attractor if the Lyapunov exponents of its three ordinary differential equations satisfy the condition (+, 0, -). In fact, if any one of the three Lyapunov exponents is greater than 0, it can be considered chaotic. However, if no positive exponents appear, the circuit is not chaotic; it may be in a periodic or equilibrium state, which can be verified using a phase diagram. Figure 2 As shown, the horizontal axis represents duration, and the vertical axis represents the Lyapunov exponent. Because it's a system of third-order differential equations, each equation corresponds to a line segment. Clearly, in... Figure 2 In the diagram, the topmost line segment is greater than 0, so it satisfies the conditions for chaos.
[0041] Based on this phenomenon, it can be concluded that the three-dimensional chaotic system equations in the embodiments of this application are chaotic under the initial values of 0.1, 0.1, and 0.1.
[0042] Initial values of 0.1, 0.1, and 0.1 were selected, with a time length of 100 and a time interval of 1. A corresponding program was written to perform the simulation, and the phase result diagram of the simulation is shown below. Figure 3 As shown. Figure 3As shown, the three phase diagrams xy, xz, and yz each have two equilibrium points, and the phase diagram trajectories converge around these two equilibrium points. Furthermore, they exhibit diverse shapes; no two phase diagrams have the same form. The phase diagram shapes resemble double gyroscopes, ear canals, and earphones, respectively. Compared to traditional double-vortex chaotic attractors, the chaotic attractor generated by the three-dimensional chaotic system equations in this embodiment possesses richer chaotic dynamic characteristics.
[0043] In order to observe the fundamental properties of chaotic systems, firstly, from... Figure 3 It can be seen that the phase trajectories in the figure are disordered and irregular, satisfying the condition of internal randomness. Next, keeping the initial values and time interval unchanged, we change the duration to 1000 and obtain the corresponding phase diagram through simulation, as shown below. Figure 4 As shown.
[0044] By comparison Figure 3 and Figure 4 It was found that during the motion of the phase trajectory, regardless of the duration, the phase trajectory always converges to a certain region. The phase trajectory iterates continuously within this region without repetition. What is observed is that the phase trajectory becomes increasingly dense, but the overall shape still vaguely maintains its original state without significant change. This demonstrates the boundedness of chaotic circuits.
[0045] Finally, the initial value perturbation property of the three-dimensional chaotic secure communication circuit in this embodiment is verified. Keeping the duration constant at 100 and the time interval at 1, the changes in the phase diagram are observed by changing the initial values of the three-dimensional chaotic secure communication circuit. Two sets of initial values were arbitrarily selected for simulation: the first set was 0.2, 1.8, and 0.5. The simulation results are as follows. Figure 5 As shown, for the second group of 3, 2, and 10, the simulation results are as follows. Figure 6 As shown.
[0046] By comparison Figure 3 , Figure 5 and Figure 6 It can be found that, Figure 3 and Figure 5 There are still some similarities, but the phase diagrams have changed somewhat. However, from... Figure 6 As can be seen, the change in initial value has a significant impact on the system. Judging from the shape of the phase diagrams, the two are not at all like phase diagrams generated by the same system. Therefore, in summary, different initial values have a particularly significant influence on the interference of chaotic circuits. In the three-dimensional chaotic secure communication circuit of this embodiment, selecting appropriate initial values is crucial for the entire system.
[0047] In some embodiments, removing a portion of the initial three-dimensional chaotic sequence to obtain the target three-dimensional chaotic sequence includes: Step S301: In each dimension, remove a portion of the initial three-dimensional chaotic sequence according to a preset ratio; Step S302: Connect the initial three-dimensional chaotic sequence after removing part of the sequence to obtain the target three-dimensional chaotic sequence.
[0048] It should be noted that the preset ratio in this embodiment is determined based on actual application, and this embodiment does not impose any specific restrictions.
[0049] In a specific embodiment, assuming the length of the original chaotic sequence in each dimension is L, the total length of the chaotic sequence is 3L. Considering transient effects, in each dimension, a portion of the initial sequence is removed to obtain a chaotic sequence of length 2L / 3. Then, the three chaotic sequences are concatenated to form a new sequence of length 2L.
[0050] See Figure 7 , Figure 7 In the middle (a), the chaotic encryption graph is truncated. Figure 7 In Figure (b), the chaotic encryption graph without truncation is shown. Texture analysis reveals that the texture of the truncated graph is more pronounced than that of the untruncated graph. Furthermore, the cross-correlation data in Table 1 shows that the chaotic encryption achieves better results after truncation.
[0051] Table 1. Correlation between image encryption before and after truncation type Horizontal correlation Vertical correlation Cross-correlation Chaotic encryption uses truncated graphs 0.0281 0.2072 6.0846e-04 Chaotic encryption does not use truncation graphs 0.0038 0.2253 -0.0193 In some embodiments, determining the sampling interval based on the length of the target three-dimensional chaotic sequence includes: Step S401: Determine the increasing interval based on the length of the target three-dimensional chaotic sequence; Step S402: Determine several sampling points by sequentially increasing the interval, encrypt the original data based on the sampling points, and determine the sampling interval based on the cross-correlation between the encrypted data and the original data.
[0052] In one specific embodiment, the optimal sampling interval is found by incrementing the sequence length in units of 100. After truncation, different sampling intervals are selected for the chaotic sequence, and 1000 sampling points are chosen to obtain the horizontal and vertical correlations between the chaotic encrypted image and the original image, as well as the cross-correlation function between each encrypted image and the original image. The specific encryption result is shown in the figure below. Figure 8 As shown, Figure 8 In the middle (a), the original image is shown. Figure 8 (b) represents the encrypted image with a sampling interval of 100. Figure 8 (c) represents the encrypted image with a sampling interval of 200. Figure 8 (d) represents the encrypted image with a sampling interval of 300. Figure 8(e) represents the encrypted image with a sampling interval of 400. Figure 8 In the middle (f), the encrypted image is represented by a sampling interval of 500. Figure 8 (g) represents an encrypted image with a sampling interval of 600. Figure 8 In the diagram, (h) represents the encrypted image with a sampling interval of 700. The analysis results are shown in Table 2. As can be seen from Table 2, when the optimal sampling interval is 100, the cross-correlation reaches 6.0846e-04.
[0053] Table 2. Correlation table of encrypted images with different resampling intervals. Sampling interval Horizontal correlation Vertical correlation Cross-correlation 100 0.0281 0.2072 6.0846e-04 200 0.0734 0.2377 0.0468 300 0.0580 0.2030 0.0277 400 0.0282 0.2661 0.0165 500 0.0640 0.2619 0.0227 600 -0.0365 0.2462 -0.0036 700 0.0485 0.2465 0.0332 In some embodiments, rearranging the cryptographic chaotic series includes: Step S501: Determine the target sequence of a preset length based on the size of the image data to be encrypted; Step S502: Sort the target sequence by size to obtain the rearranged encrypted chaotic sequence.
[0054] The preset length of the target sequence is determined based on the size of the image to be encrypted, such as the image being M in length and width. Given a target sequence of length M+N, the chaotic sequence is then arranged in ascending or descending order. Finally, the encrypted image is obtained by transposing the sequences.
[0055] The chaotic sequence of this embodiment is compared with the traditional Logistic chaotic sequence below.
[0056] (1) Traditional Logistic chaotic sequence Based on the chaotic mapping encryption algorithm, the traditional Logistic chaotic sequence scrambles the image pixels to achieve encryption. The generated Logistic chaotic sequence is arranged from smallest to largest, and the pixels of the image to be encrypted are matched one-to-one with the elements of the chaotic sequence to replace the positions of the image.
[0057] First, assume the original image has dimensions M. N generates a Logistic chaotic sequence with a length of M+N. Then, the chaotic sequence is rearranged in ascending order, while the rows and columns of the original image are scrambled in the same order, finally resulting in an encrypted image.
[0058] The traditional Logistic chaos equation is shown below:
[0059] Where a is between 0 and 4, l(i+1)The value is between 0 and 1. As long as the above requirements are met, it can be considered a Logistic chaotic equation. In a specific embodiment, we take... a It is 3.6. l(i+1) The initial value is 0.2.
[0060] Select the Lena image as the object of operation, and set the image's width and height to 256. 128, after being encrypted using Logistic chaotic sequences, the result is shown in the figure below. Figure 9 As shown: Comparison revealed that the encrypted image completely lacked the features of the original image, demonstrating excellent encryption effectiveness and proving its feasibility. Next, 1000 points were randomly sampled for correlation analysis. The specific results are shown in Table 3. Regardless of the horizontal or vertical direction, the original image's correlation was close to 1, indicating a high correlation and poor confidentiality. After Logistic encryption, the correlation became much lower, ultimately reaching a cross-correlation of 0.0125, significantly improving confidentiality. However, strong texture characteristics remained in the image. In this embodiment, the encryption of the three-dimensional chaotic system equations achieved similar results to Logistic encryption. However, the overall cross-correlation was significantly improved; at the optimal sampling interval of 100, the cross-correlation reached 6.0846e-04, an order of magnitude better than traditional Logistic encryption.
[0061] Table 3 Logistic Encryption Evaluation Table
[0062] See Figure 10 This application also provides an image data encryption device based on chaotic mapping, the device comprising: The first module is used to determine the initial parameters and system equations of the three-dimensional chaotic system, and to generate an initial three-dimensional chaotic sequence based on the initial parameters and system equations. The initial parameters include initial values, which are determined according to the system equations. The second module is used to remove part of the initial three-dimensional chaotic sequence to obtain the target three-dimensional chaotic sequence. The third module is used to determine the sampling interval based on the length of the target three-dimensional chaotic sequence, and to resample the target three-dimensional chaotic sequence based on the sampling interval to obtain the encrypted chaotic series. The fourth module is used to rearrange the encrypted chaotic series and encrypt the image data to be encrypted based on the rearranged encrypted chaotic series.
[0063] It is understood that the content of the above method embodiments is applicable to the present device embodiments. The specific functions implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0064] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0065] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0066] Please see Figure 11 , Figure 11 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes: The processor 1101 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 1102 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 1102 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1102 and is called and executed by the processor 1101 using the methods described in the embodiments of this application. Input / output interface 1103 is used to implement information input and output; The communication interface 1104 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 1105 transmits information between various components of the device (e.g., processor 1101, memory 1102, input / output interface 1103, and communication interface 1104); The processor 1101, memory 1102, input / output interface 1103 and communication interface 1104 are connected to each other within the device via bus 1105.
[0067] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.
[0068] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0069] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0070] It is understood that the content of the above method embodiments is applicable to the embodiments of this program product. The specific functions implemented by the embodiments of this program product are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0071] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0072] The embodiments of this application include at least the following beneficial effects: This application provides an image data encryption method, apparatus, electronic device, storage medium, and program product based on chaotic mapping. This scheme determines the initial parameters and system equations of a three-dimensional chaotic system, generates an initial three-dimensional chaotic sequence based on the initial parameters and system equations, removes a portion of the initial three-dimensional chaotic sequence to obtain a target three-dimensional chaotic sequence, determines a sampling interval based on the length of the target three-dimensional chaotic sequence, resamples the target three-dimensional chaotic sequence according to the sampling interval to obtain an encrypted chaotic series, rearranges the encrypted chaotic series, and encrypts the image data to be encrypted based on the rearranged encrypted chaotic series. The encryption system employs a three-dimensional chaotic system fusion architecture, performing transient elimination preprocessing and reconstruction to form a key stream. Combined with resampling and chaotic sorting rearrangement mechanisms, it achieves dual permutation of pixel position and grayscale, thereby significantly improving the security of image encryption data. Initial parameters include initial values, which are determined according to the system equations. These initial values are set to form a special nonlinear trajectory in phase space. Verification shows that it has more complex dynamic behavior characteristics. The system state exhibits strong initial value sensitivity during iteration, and the trajectory divergence rate reaches exponential levels. This unpredictability provides a natural pseudo-randomness basis for sequence generation, significantly enhancing the anti-predictability of the encryption system.
[0073] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0074] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0075] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0076] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0077] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0078] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0079] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above 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 apparatuses or units may be electrical, mechanical, or other forms.
[0080] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0081] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0082] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0083] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.
Claims
1. An image data encryption method based on chaotic mapping, characterized in that, The method includes the following steps: Determine the initial parameters and system equations of a three-dimensional chaotic system, and generate an initial three-dimensional chaotic sequence based on the initial parameters and system equations; the initial parameters include initial values, which are determined according to the system equations. By removing a portion of the initial three-dimensional chaotic sequence, the target three-dimensional chaotic sequence is obtained; The sampling interval is determined based on the length of the target three-dimensional chaotic sequence, and the target three-dimensional chaotic sequence is resampled based on the sampling interval to obtain an encrypted chaotic series. The encrypted chaotic series is rearranged, and the image data to be encrypted is encrypted according to the rearranged encrypted chaotic series.
2. The method according to claim 1, characterized in that, The system equations are as follows: 。 3. The method according to claim 1, characterized in that, The method further includes: Substitute the initial parameters into the system equations to verify whether the conditions for generating chaos are met.
4. The method according to claim 1, characterized in that, The step of removing a portion of the initial three-dimensional chaotic sequence to obtain the target three-dimensional chaotic sequence includes: In each dimension, a portion of the initial three-dimensional chaotic sequence is removed according to a preset ratio; The initial three-dimensional chaotic sequence, after removing a portion of the sequence, is concatenated to obtain the target three-dimensional chaotic sequence.
5. The method according to claim 1, characterized in that, Determining the sampling interval based on the length of the target three-dimensional chaotic sequence includes: The increasing interval is determined based on the length of the target three-dimensional chaotic sequence; Based on the increasing interval, several sampling points are determined by sequentially increasing the sampling points. The original data is then encrypted based on the sampling points, and the sampling interval is determined based on the cross-correlation between the encrypted data and the original data.
6. The method according to claim 1, characterized in that, The rearrangement of the encrypted chaotic series includes: A target sequence of preset length is determined based on the size of the image data to be encrypted; The target sequence is sorted by size to obtain a rearranged encrypted chaotic sequence.
7. An image data encryption device based on chaotic mapping, characterized in that, The device includes: The first module is used to determine the initial parameters and system equations of the three-dimensional chaotic system, and to generate an initial three-dimensional chaotic sequence based on the initial parameters and system equations; the initial parameters include initial values, which are determined according to the system equations. The second module is used to remove part of the initial three-dimensional chaotic sequence to obtain the target three-dimensional chaotic sequence. The third module is used to determine the sampling interval based on the length of the target three-dimensional chaotic sequence, and to resample the target three-dimensional chaotic sequence based on the sampling interval to obtain an encrypted chaotic series. The fourth module is used to rearrange the encrypted chaotic series and encrypt the image data to be encrypted according to the rearranged encrypted chaotic series.
8. An electronic device, characterized in that, include: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method as described in any one of claims 1-6.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 6.