Image chaotic encryption method based on magnetic control memristor and electronic equipment
By combining magnetically controlled memristors with fractional-order hyperchaotic systems, a dynamic key stream is generated and bidirectional diffusion is performed, which solves the problem that existing image encryption systems are easily cracked and achieves image encryption with high security and anti-attack capabilities.
Patent Information
- Application Number
- CN202510987212.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-17
- Publication Date
- 2025-09-16
AI Technical Summary
Existing image encryption systems are easily cracked, lack dynamism and anti-attack capabilities, and traditional key mechanisms are easily replayed or speculated. Existing encryption methods have weak security in the face of reverse engineering and side-channel attacks.
A physical unclonable function (PUF) and a fractional-order hyperchaotic system are constructed using magnetically controlled memristors to generate a dynamic key stream. The improved Baker scrambling and bidirectional diffusion mechanism are combined for image encryption. The physical uniqueness and nonlinear response of the memristor are utilized to construct the key stream through the strong nonlinearity and initial value sensitivity of the high-dimensional chaotic system.
It achieves strong coupling, adaptive control and multi-scale scrambling of the key stream and image content, improves the randomness and anti-attack capabilities of image encryption, and resists physical detection and reverse engineering.
Smart Images

Figure CN120658370A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image encryption technology, and in particular to an image chaos encryption method and electronic equipment based on a magnetically controlled memristor. Background Art
[0002] With the large-scale transmission of image data in fields such as communications, healthcare, and the military, security issues are becoming increasingly prominent. Traditional image encryption systems typically use fixed initial keys or rely on pseudo-random number generators (PRNGs) to generate key sequences. Static key mechanisms are susceptible to replay or speculation and lack dynamicity. Once these keys are intercepted or cracked through plaintext and ciphertext analysis, the entire encryption system is exposed in subsequent communications, leading to repeated leaks of image privacy and lacking anti-replay and anti-prediction capabilities. Furthermore, existing purely algorithm-level encryption methods pose the risk of key reconstruction under high-intensity attacks such as reverse engineering and side-channel attacks.
[0003] In recent years, memristors have been widely used in encryption circuit design and security hardware development due to their small size, low power consumption, and non-volatility and resistive memory properties. Using memristors as key generation or control elements, combined with the randomness of chaotic systems, has opened up new avenues for image encryption systems. Therefore, building an image encryption system that integrates hardware and algorithms has become an effective means of enhancing security.
[0004] However, existing image chaos encryption methods are mostly based on two-dimensional or three-dimensional low-order chaotic systems. Their mathematical structures have been extensively studied, making them susceptible to analysis or parameter attacks to restore chaotic trajectories, thereby indirectly cracking the encrypted content. These methods lack structural complexity and control diversity. Furthermore, existing encryption methods lack anti-attack and induction mechanisms, making it easy to bypass the core logic. Once a physical attacker gains access, they cannot distinguish legitimate requests, and all key streams are directly exported. The system is prone to unauthorized loss of control. The lack of camouflage, isolation, and induction mechanisms results in a weak security defense. Summary of the Invention
[0005] To solve one of the above-mentioned problems in the prior art, the present invention provides an image chaos encryption method and storage medium based on a magnetically controlled memristor. The method utilizes an image encryption scheme that integrates the physical unclonable function (PUF) of the magnetically controlled memristor with a fractional-order hyperchaotic system. The method generates a dynamic key by driving the memristor response through an external magnetic field, and constructs a key stream by combining the strong nonlinearity and initial value sensitivity of the high-dimensional chaotic system. The method also uses an improved Baker scrambling and bidirectional diffusion mechanism to complete image encryption.
[0006] To achieve the above-mentioned objectives, the present invention provides, on the one hand, an image chaos encryption method based on a magnetically controlled memristor, comprising: obtaining an input image; calculating a hash value or generating a random challenge value based on the input image, and determining an input stimulus based on the hash value or the random challenge value; judging whether the magnetic field strength is within a set legal magnetic field domain; if so, calling the real response path of the magnetically controlled memristor to generate a real response code stream based at least on the input stimulus and the magnetic field strength; constructing chaos parameters and a disturbance source based on the real response code stream, and injecting the chaos parameters and the disturbance source into a fractional-order hyperchaotic system; generating a dynamic key stream through the fractional-order hyperchaotic system based on the chaos parameters; using the dynamic key stream in combination with a mapping algorithm to globally scramble the pixels of the input image to obtain a scrambled image; using the dynamic key stream and the disturbance source to bidirectionally diffuse the scrambled image to obtain a chaotic encrypted image corresponding to the input image.
[0007] Another aspect of the present invention provides an electronic device, comprising: one or more processors; one or more memories; the memories storing one or more programs, and when the one or more programs are executed by the processors, the electronic device executes the aforementioned method.
[0008] The beneficial effects of the present invention are reflected in the magnetically controlled memristor-based chaotic image encryption method provided herein, which deeply integrates the physically unclonable function (PUF) constructed with the magnetically controlled memristor with a fractional-order hyperchaotic system, realizing an image encryption mechanism that collaborates hardware and algorithms. Dynamic keys are generated by leveraging the physical uniqueness and nonlinear response of the memristor, while high sensitivity and unpredictability are introduced through the fractional-order chaotic system, making key updates real-time, highly chaotic, and difficult to reverse engineer. The present invention achieves pixel-level obfuscation through dynamic scrambling (Baker mapping) and bidirectional diffusion. The overall model of the present invention achieves strong coupling of the key stream with image content, adaptive control, and multi-scale scrambling, enhancing the randomness, security, and anti-attack capabilities of image encryption. Furthermore, the present invention leverages the physical mechanism of memristor response and specifically introduces magnetically controlled conductance to distinguish between true and false response paths, thus resisting physical detection and reverse engineering. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 This is a flow chart of the image chaos encryption method based on magnetic controlled memristor provided in Example 1 of the present invention.
[0010] Figure 2 This is a schematic diagram of the structure of an electronic device provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0011] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not 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 efforts are within the scope of protection of the present invention.
[0012] Example 1
[0013] Example 1 provides a chaotic image encryption method based on a magnetically controlled memristor. The memristor in this embodiment can be an MCM memristor (Metal Chalcogenide Metal Memristor). An MCM memristor is a chalcogenide-based memristor device that utilizes the migration of metal ions within amorphous / crystalline chalcogenide materials to achieve resistive state switching. The memristor uses a PUF to convert the inherent randomness of the hardware manufacturing process into cryptographic entropy. The magnetically controlled memristor, on the other hand, incorporates a magnetic control factor variable into the cryptographic conversion process.
[0014] like Figure 1 As shown, the image chaotic encryption method based on magnetic controlled memristor of this embodiment 1 specifically includes the following steps:
[0015] Step S101 , obtaining an input image; specifically, the input image refers to an image to be processed and encrypted.
[0016] Step S102: Calculate a hash value or generate a random challenge value based on the input image, and determine the input stimulus based on the hash value or generated random challenge value. Specifically, the memristor uses a "challenge-response" method to generate a secret key. The input image can be used as part of the input challenge. The hash value of the input image is equivalent to the fingerprint of the input image, making the ultimately generated secret key more unique and non-repudiable. Of course, other algorithms can also be used to generate random challenge values based on the input image, and randomizers can also be used to directly generate random challenge values without relying on the input image. The input stimulus can be a digital input, such as a 32-bit digital input.
[0017] In an optional embodiment, the image chaos encryption method based on the magnetic controlled memristor of this embodiment further includes: converting the input excitation into an input voltage pulse of the magnetic controlled memristor; calling the real response path of the magnetic controlled memristor to generate a real response code stream based at least on the input excitation and the magnetic field strength, specifically including: calling the real response path of the magnetic controlled memristor to generate a real response code stream based at least on the input voltage pulse and the magnetic field strength. Specifically, the sequence of voltage pulses can be determined based on the numerical value of the input excitation, and the voltage excitation can be input to the magnetic controlled memristor using the pulse sequence. The input voltage pulse is one of the key influencing factors for the subsequent calculation of the real response code stream. Converting the input excitation related to the input image into the input voltage pulse of the magnetic controlled memristor allows the characteristics of the input image to participate in subsequent calculations.
[0018] Step S103: Determine whether the magnetic field strength is within the set legal magnetic field domain. Specifically, to ensure that only in a legal magnetic field can the real response path be entered and the real secret key be obtained, the system can preset a legal magnetic field strength range. By using the true / false response path separation and logic path control mechanism to detect whether the magnetic field strength of the external magnetic field is within the preset legal range, illegal attacks can be resisted. For example, the legal magnetic field threshold range can be preset as:
[0019] (1-1);
[0020] in, Indicates the lower limit of legal magnetic field strength, Indicates the upper limit of the legal magnetic field strength. Only when the specific magnetic field satisfies the condition H∈H valid Only when , the memristor system outputs the true PUF response.
[0021] In an optional embodiment, while judging whether the magnetic field strength is in the legal magnetic field domain, a challenge mechanism can also be set up to simultaneously judge whether a legal challenge is input and whether the currently input challenge triggers the real magnetic controlled memristor response path. The challenge can be in the form of a fixed password or a dynamic password. Only in a specific magnetic field H∈H valid and legal challenge C∈C valid Only when both conditions are met can the memristor system output a true PUF response. This double verification mechanism can further resist illegal attacks.
[0022] In step S104, if the result is positive, the true response path of the magnetically controlled memristor is invoked to generate a true response code stream based on at least the input stimulus and magnetic field strength. Specifically, mainstream encryption schemes combining magnetically controlled memristor PUFs with chaotic encryption mostly remain stuck in the "read memristor response → generate key" paradigm, resulting in a less proactive and less deceptive mechanism for countering reverse engineering. This embodiment utilizes the magnetically controlled memristor's response to magnetic fields to limit the generation of legitimate PUF responses to specific physical conditions. Any attempt by an attacker to replicate the circuit or read the PUF response under the wrong magnetic field will result in a false logic path, resulting in an incorrect key stream and encryption / decryption failure.
[0023] In an optional embodiment, the chaotic image encryption method based on the magnetic controlled memristor of this embodiment further includes: when the magnetic field strength is not within the set legal magnetic field domain, calling the error response path of the magnetic controlled memristor to generate a pseudo response code stream. Specifically, if Because the memristor behaves nonlinearly, subsequent responses will also deviate, leading to an erroneous pseudo-response path, generating a false chaotic trajectory and outputting an erroneous pseudo-response code stream, thus inducing the attacker to fail. This design of anti-reverse engineering defense can effectively prevent illegal access and reverse engineering.
[0024] In one specific embodiment, invoking the true response path of the magnetically controlled memristor to generate a true response code stream based at least on the input stimulus and magnetic field strength specifically includes: determining the conductance of the magnetically controlled memristor based at least on the input voltage pulse, magnetic field strength, and the initial on-state conductance of the magnetically controlled memristor; and determining the true response code stream based on the conductance of the magnetically controlled memristor. Specifically, the memristor conductance is primarily controlled by factors such as manufacturing process parameters, magnetic field, and input voltage. These manufacturing process parameters are fixed at the factory and have the characteristic of being an unclonable entropy source. The memristor conductance is a core variable in the physical properties of the memristor and, as a reflection of the physical layer characteristics of the PUF, is used to generate the response signal.
[0025] In an alternative embodiment, the response generation mechanism of the magnetically controlled memristor PUF can be abstracted and summarized at the logical level to describe the challenge-response relationship of the PUF. The PUF logic function can be represented by the following abstract model:
[0026] (1-2);
[0027] in, Represents the response output of PUF; It is based on the input-response function of the memristor, which is nonlinear and device-unique; Represents input excitation, used to generate input voltage pulses; represents the perturbation during the memristor fabrication process; Represents the magnetic response; m represents the challenge sequence of PUF, i.e. the mth challenge task. The above logic function shows that the output of PUF is mainly related to the above three input factors. The above response results are discretized to obtain the digital response code .
[0028] In another optional implementation, the memristor conductance calculation formula can be mathematically modeled from a specific physical implementation level, as shown below:
[0029] (1-3);
[0030] Where G(t) is the instantaneous conductance of the memristor; G0 is the initial conductance, and is the manufacturing process parameter of the memristor, corresponding to the perturbation in Equation 1-2. ; and λ are the magnetic response control coefficients; χ is the voltage influence weight; H(t) is the external magnetic field strength; and V(t) represents the applied voltage. G(t) is the instantaneous conductance of the memristor, reflecting its state at time t and determining its output behavior under a challenge.
[0031] Since G(t) is a continuous physical quantity, it is necessary to perform nonlinear mapping and perturbation functions on G(t) to obtain a digitized response code. When obtaining a digitized response code based on G(t), calculations can be performed for each unit of the memristor. The response output by each unit of the memristor under the magnetic field H is:
[0032] , 1≤n≤N (1-4);
[0033] Among them, r n is the response result of the nth memristor unit; Q represents the quantization function, which is used to convert the continuous analog conductance value G of the memristor into n (H) discretized into a digital response value r n ; G n (H) represents the conductance of the nth unit of the memristor under magnetic field H; N is the total number of memristor units; s represents the number of quantization levels (which determines the number of bits of the output response, e.g., s = 256 corresponds to an 8-bit response); G min and G max Represents the upper and lower limits of the memristor unit conductance. n Combinations can form R m response.
[0034] In addition, based on the above calculation formula, if , due to the nonlinear behavior of the memristor, the conductance G n (H) will be offset, so an error response is output.
[0035] Step S105 constructs chaotic parameters and a disturbance source based on the actual response code stream, and injects these chaotic parameters and disturbance source into the fractional-order hyperchaotic system. Specifically, the fractional-order hyperchaotic system is a high-dimensional chaotic key stream engine that can use variables with four or more dimensions to generate a cipher stream sequence. The fractional-order hyperchaotic system can receive the response of the memristor as chaotic parameters and disturbance source. The chaotic parameters are injected into the fractional-order hyperchaotic system as dynamic feedback terms to provide dynamic variables and obtain a dynamic code stream. The chaotic parameters are responsible for dynamically adjusting the parameters or disturbances of the chaotic system, and the disturbance source can be used for subsequent image diffusion, forming a hybrid control mechanism.
[0036] In a specific embodiment, constructing chaotic parameters and disturbance sources based on the real response code stream specifically includes: obtaining the resistance of the magnetic controlled memristor based on the conductance of the magnetic controlled memristor, and constructing chaotic parameters based on the resistance of the magnetic controlled memristor; and applying nonlinear mapping and discretization processing to the real response code stream to obtain a unique secret key response, and generating a disturbance source based on the unique secret key response. Specifically, the chaotic parameters can be related to the instantaneous resistance value R of the memristor. M (t) related, in a specific example, R M (t) can be equal to the instantaneous resistance of the memristor, which is directly determined by the instantaneous conductance G(t): R M (t)=1 / G(t). Unique key response R m is the digital response of PUF, which can be determined based on the abstract model of formula (1-2) and the physical layer specific calculation formula of formula (1-4).
[0037] In step S106, a dynamic key stream is generated using a fractional-order hyperchaotic system based on the chaotic parameters. Specifically, the fractional-order hyperchaotic system receives the PUF response as the initial value and system parameters to generate the dynamic key stream. By deeply integrating the physically unclonable function (PUF) constructed using magnetically controlled memristors with the fractional-order hyperchaotic system, a hardware-algorithm collaborative image encryption mechanism is implemented. The dynamic key stream is generated by leveraging the physical uniqueness and nonlinear response of the memristor, while the fractional-order chaotic system introduces high sensitivity and unpredictability, making key updates real-time, highly chaotic, and difficult to reverse engineer. Compared to traditional purely algorithmic encryption methods, this method not only enhances the encryption system's resistance to physical attacks and side-channel attacks, but also creates a highly secure and physically unclonable image encryption system.
[0038] In one optional embodiment, a fractional-order hyperchaotic system includes four state components; a dynamic key stream is generated through the fractional-order hyperchaotic system based on chaotic parameters, specifically including: injecting the chaotic parameters as external perturbations into the fractional-order hyperchaotic system; and separating four dynamic key streams based on the four state components. The four dynamic key streams include: an image coordinate horizontal perturbation key stream, an image coordinate vertical perturbation key stream, a pixel value forward diffusion key stream, and a pixel value reverse diffusion key stream. Specifically, the image coordinate horizontal perturbation key stream and the image coordinate vertical perturbation key stream can be used to control subsequent image scrambling; the pixel value forward diffusion key stream and the pixel value reverse diffusion key stream can be used to drive subsequent bidirectional diffusion (forward diffusion and reverse diffusion) of pixel values.
[0039] In a specific implementation, this embodiment uses a fractional-order hyperchaotic system to generate a 4-dimensional state variable and adaptive fractional-order dynamic scrambling parameters and a confusion key, as shown in Formula 1-5:
[0040] (1-5);
[0041] in, is the Caputo fractional derivative; a, b, c, d, β, γ, δ, η are parameter coefficients; is the external feedback disturbance parameter; x, y, z, w are state variables. Embedded PUF chaos parameter R M (t) is used as the external feedback disturbance, and replacing Equations 1-5 yields:
[0042] (1-6);
[0043] in, is the resistance of the memristor.
[0044] To perform numerical integration on the above system, we can use a numerical solution method for fractional differential equations (such as the fractional-order Adams-Bashforth-Moulton method, ABM algorithm). Starting from the initial conditions, we iterate for T steps (i.e., the total number of pixels in the image) to obtain T state variable values (discrete sequence), as shown in Equation 1-6:
[0045] (1-7);
[0046] Where T represents the total number of iterations, i represents the i-th iteration, T=M·N, and M and N represent the pixel height and width of the input image, respectively.
[0047] Then, the key stream is normalized according to Equation 1-8, and the sequence of each state variable is normalized to obtain a key stream in the range of [0,1):
[0048] (1-8);
[0049] Among them, K x [i] represents the horizontal perturbation key stream of the image coordinate; K y [i] represents the perturbation key stream in the vertical direction of the image coordinate; K z [i] represents the pixel value forward diffusion key stream; K w [i] represents the pixel value reverse diffusion key stream. Its normalization principle is to take the absolute value (make sure it is non-negative) and multiply it by a large number (10 6 ) to amplify the decimal part of the chaotic sequence, and then take the modulus 1 to obtain a uniformly distributed value between [0,1). K x and K y Used to control subsequent image scrambling; K z and K w Used to drive bidirectional diffusion (forward diffusion and backward diffusion) of subsequent pixel values.
[0050] Mapping the above key stream to the pixel domain can be completed by Equation 1-9:
[0051] (1-9);
[0052] Among them, K[i] represents the floating point key stream directly obtained after the chaotic system is sampled; K (int) [i] represents the integer key stream obtained by mapping and rounding the floating-point K[i] above, which is used for pixel domain encryption.
[0053] Step S107, using the dynamic key stream in combination with a mapping algorithm to globally scramble the pixels of the input image to obtain a scrambled image; specifically, the mapping algorithm can adopt an improved Baker algorithm, and use the improved Baker algorithm to perform image position scrambling.
[0054] In an optional embodiment, a dynamic key stream is combined with a mapping algorithm to globally scramble the pixels of the input image to obtain a scrambled image, specifically comprising: dynamically unequally dividing all pixels of the input image into blocks using a horizontal perturbation key stream and a vertical perturbation key stream to obtain a plurality of pixel blocks; globally scrambling each pixel block, and obtaining a scrambled image based on all the scrambled pixel blocks. Specifically, assuming that the image is to be divided into k×k blocks, K x and K y Control the block ratio of the input image, that is, make the height and width of each block inconsistent, and realize dynamic periodic unequal block division.
[0055] In traditional Baker image scrambling, the scrambling process often has a fixed scrambling period. Once the period is determined, attackers can find the recovery period through reverse calculation, resulting in reduced security. This embodiment uses dynamic periodicity to perform image scrambling. Dynamic periodicity refers to the dynamic key stream achieved by injecting chaotic parameter perturbations. The chaotic parameters are in turn controlled by the PUF magnetic field. The Baker parameters can be dynamically changed during each round of block scrambling, making the mapping period of each round of scrambling dynamic, rather than the traditional fixed period.
[0056] In a specific embodiment, the specific process of globally scrambling the input image is as follows: first, dynamically divide it into k×k blocks according to the proportion (the proportion of the blocks is based on K x and K y The perturbation changes dynamically), and Baker mapping is performed on each block separately. In an optional implementation, the number of blocks k can also be determined by a dynamic key stream, avoiding the traditional fixed block mode, as shown in the following equation (1-10):
[0057] (1-10);
[0058] Set the coordinates for the pixels in each block:
[0059] (1-11);
[0060] Where M and N are the pixel height and width of the input image. The scrambling direction, order, and offset are set for each block to dynamically break the periodicity of the traditional Baker algorithm:
[0061] (1-12);
[0062] Where k' represents the folding mapping scale parameter, which is used to control the stretching / folding direction.
[0063] In step S108, bidirectional diffusion is performed on the scrambled image using the dynamic key stream and the disturbance source to obtain a chaotic encrypted image corresponding to the input image. Specifically, during the diffusion phase, a reverse-dependent chaotic diffusion algorithm is combined to enhance the pixel perturbation intensity, achieving pixel-sensitive diffusion of the image. During the diffusion process, a chaotic feedback diffusion algorithm (using the previous pixel as feedback) can be employed, employing a bidirectional diffusion mechanism. The disturbance source is the round perturbation generated by the PUF perturbation control logic. The current PUF state controls whether a particular round inverts or adjusts the XOR mask.
[0064] In an optional embodiment, the perturbation source includes a forward perturbation mask and a reverse perturbation mask. Generating the perturbation source based on the unique key response specifically includes: generating a forward perturbation mask based on the unique key response according to the physical unclonable function perturbation control logic; and generating a reverse perturbation mask based on the unique key response according to the physical unclonable function perturbation control logic and in combination with magnetic field strength. Specifically, the forward and reverse diffusions are perturbed separately by a bidirectional perturbation source. The unique key response is the inherent native response of the PUF. The forward perturbation mask is generated based on the unique key response, while the reverse perturbation mask is generated based on the unique key response in combination with feedback control or magnetic field conditions. Together, they ensure image consistency during encryption and decryption.
[0065] In one optional implementation, a scrambled image is bidirectionally diffused using a dynamic key stream and a perturbation source to obtain a chaotic encrypted image corresponding to the input image. This method specifically includes: expanding the scrambled image into a pixel vector; modifying the pixel value of each pixel based on a bidirectional diffusion mechanism using the preceding and following pixels and the pixel value forward diffusion key stream, the pixel value reverse diffusion key stream, the forward perturbation mask, and the reverse perturbation mask; and generating a chaotic encrypted image based on the modified pixel values. Specifically, a bidirectional diffusion mechanism is introduced to perform sensitive diffusion modulation on the image using the preceding and following pixels and the chaotic key sequence to modify the pixel values; and the final encrypted pixel matrix is used to construct the encrypted image, ensuring the irreversibility and security of image encryption under the dual protection of hardware and algorithm.
[0066] In a specific embodiment, the diffusion of the image can be accomplished by the following specific steps:
[0067] First, expand the scrambled image into a vector P:
[0068] P[j]∈[0,255], j=0,...,M·N−1 (1-13);
[0069] Where P[j] represents the jth pixel in the vector P. According to P[j], forward diffusion is performed from left to right, using C f Represented as a forward diffusion image:
[0070] (1-14);
[0071] Among them, P[j] is the jth scrambled pixel value, which has been expanded into a one-dimensional vector; C f [j] represents the j-th pixel value after forward diffusion; C f [j-1] diffusion value of the j-1th pixel; K z [j] represents the jth bit of the pixel value forward diffusion key stream; R[j] represents the forward perturbation mask.
[0072] From right to left, the forward diffusion result is diffused back again to form a bidirectional chain diffusion. b Represents the back diffusion image, and the back diffusion formula is as follows:
[0073] (1-15);
[0074] Among them, C b [j] represents the j-th pixel value after back diffusion; C b [j] represents the diffusion value of the j+1th pixel; K w [j] represents the jth bit of the pixel value reverse diffusion key stream; R'[j] represents the reverse perturbation mask, and the final pixel is generated as the encrypted image of Equation 1-16.
[0075] (1-16);
[0076] The proposed magnetically controlled memristor-based chaotic image encryption method achieves a hardware-algorithm collaborative image encryption mechanism by deeply integrating a physically unclonable function (PUF) constructed using magnetically controlled memristors with a fractional-order hyperchaotic system. Dynamic keys are generated using the physical uniqueness and nonlinear response of the memristor, while high sensitivity and unpredictability are introduced through the fractional-order chaotic system, making key updates real-time, highly chaotic, and difficult to reverse engineer. The present invention achieves pixel-level obfuscation through dynamic scrambling (Baker mapping) and bidirectional diffusion. The present invention's overall model achieves strong coupling of the key stream with image content, adaptive control, and multi-scale scrambling, enhancing the randomness, security, and anti-attack capabilities of image encryption. Furthermore, the present invention leverages the physical mechanism of memristor response and specifically introduces magnetically controlled conductance to distinguish between true and false response paths, thus resisting physical detection and reverse engineering.
[0077] This embodiment also provides an electronic device, such as Figure 2 As shown, the electronic device includes: one or more processors 21; one or more memories 22; the memories store one or more programs 221, and when the one or more programs are executed by the processors, the electronic device executes the steps in each method embodiment.
[0078] This embodiment further provides a computer-readable storage medium, which stores instructions. When the instructions are executed by a computer, the steps in each method embodiment are executed.
[0079] In the description of the embodiments of the present invention, it should be understood that the terms "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "center", "top", "bottom", "top", "bottom", "inside", "outside", "inner side", "outer side" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. Among them, "inside" refers to an internal or enclosed area or space. "Periphery" refers to the area surrounding a specific component or specific area.
[0080] In the description of the embodiments of the present invention, the terms "first," "second," "third," and "fourth" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly specifying the number of the technical features indicated. Therefore, a feature specified as "first," "second," "third," or "fourth" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0081] In the description of the embodiments of the present invention, it should be noted that, unless otherwise expressly specified or limited, the terms "installed," "connected," "connected," and "assembled" should be understood in a broad sense. For example, they may refer to fixed connections, detachable connections, or integral connections; they may refer to direct connections, indirect connections through an intermediate medium, or internal connections between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention in specific circumstances.
[0082] In the description of the embodiments of the present invention, specific features, structures, materials or characteristics may be combined in an appropriate manner in any one or more embodiments or examples.
[0083] In describing the embodiments of the present invention, it should be understood that "-" and "~" represent a range between two values, and the range includes the endpoints. For example, "AB" represents a range greater than or equal to A and less than or equal to B. "A~B" represents a range greater than or equal to A and less than or equal to B.
[0084] In describing the embodiments of the present invention, the term "and / or" is used herein to describe a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. Furthermore, the character " / " is generally used herein to indicate that the associated objects are in an "or" relationship.
[0085] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.
Claims
1. A chaotic image encryption method based on magnetic controlled memristor, characterized in that: include: Get the input image; Calculating a hash value or generating a random challenge value based on the input image, and determining an input stimulus based on the hash value or the random challenge value; and determining whether the magnetic field strength is within a set legal magnetic field domain; If yes, calling the real response path of the magnetic controlled memristor to generate a real response code stream according to at least the input stimulus and the magnetic field strength; constructing chaotic parameters and disturbance sources according to the real response code stream, and injecting the chaotic parameters and disturbance sources into the fractional-order hyperchaotic system; Generating a dynamic key stream through the fractional-order hyperchaotic system according to the chaotic parameters; performing global scrambling on pixels of the input image using the dynamic key stream in combination with a mapping algorithm to obtain a scrambled image; The scrambled image is bidirectionally diffused using the dynamic key stream and the disturbance source to obtain a chaotic encrypted image corresponding to the input image.
2. The image chaos encryption method based on magnetic controlled memristor according to claim 1, characterized in that: Also includes: Converting the input stimulus into an input voltage pulse of the magnetic controlled memristor; The calling of the real response path of the magnetically controlled memristor to generate a real response code stream at least according to the input stimulus and the magnetic field strength specifically includes: calling the real response path of the magnetically controlled memristor to generate a real response code stream at least according to the input voltage pulse and the magnetic field strength.
3. The image chaos encryption method based on magnetic controlled memristor according to claim 1, characterized in that: The method further includes: when the magnetic field strength is not within a set legal magnetic field domain, calling an error response path of the magnetic controlled memristor to generate a pseudo response code stream.
4. The image chaos encryption method based on magnetic controlled memristor according to claim 2, characterized in that: The real response path of calling the magnetically controlled memristor generates a real response code stream based at least on the input stimulus and the magnetic field strength, specifically including: determining the conductance of the magnetically controlled memristor based at least on the input voltage pulse, the magnetic field strength, and the initial on-state conductance of the magnetically controlled memristor; and determining the real response code stream based on the conductance of the magnetically controlled memristor.
5. The image chaos encryption method based on magnetic controlled memristor according to claim 4, characterized in that: The constructing of chaotic parameters and disturbance sources according to the true response code stream specifically includes: obtaining the resistance of the magnetic controlled memristor according to the conductance of the magnetic controlled memristor, and constructing the chaotic parameters according to the resistance of the magnetic controlled memristor; and applying nonlinear mapping and discretization processing to the true response code stream to obtain a unique secret key response, and generating the disturbance source based on the unique secret key response.
6. The image chaos encryption method based on magnetic controlled memristor according to claim 1, characterized in that: The fractional-order hyperchaotic system includes four state components; the dynamic key stream is generated through the fractional-order hyperchaotic system according to the chaotic parameters, specifically including: injecting the chaotic parameters as external disturbance terms into the fractional-order hyperchaotic system; separating four dynamic key streams according to the four state components, and the four dynamic key streams respectively include: an image coordinate horizontal direction disturbance key stream, an image coordinate vertical direction disturbance key stream, a pixel value forward diffusion key stream, and a pixel value reverse diffusion key stream.
7. The image chaos encryption method based on magnetic controlled memristor according to claim 6, characterized in that: The method of using the dynamic key stream in combination with a mapping algorithm to globally scramble the pixels of the input image to obtain a scrambled image specifically includes: using the image coordinate horizontal direction perturbation key stream and the image coordinate vertical direction perturbation key stream to dynamically unequally divide all pixels of the input image into blocks to obtain multiple pixel blocks; globally scrambling each pixel block, and obtaining the scrambled image based on all the scrambled pixel blocks.
8. The image chaos encryption method based on magnetic controlled memristor according to claim 6, characterized in that: The disturbance source includes a forward disturbance mask and a reverse disturbance mask; generating the disturbance source based on the unique key response specifically includes: generating the forward disturbance mask according to the physical unclonable function disturbance control logic based on the unique key response; and generating the reverse disturbance mask according to the physical unclonable function disturbance control logic based on the unique key response and in combination with the magnetic field strength.
9. The image chaos encryption method based on magnetic controlled memristor according to claim 8, characterized in that: The method uses the dynamic key stream and the disturbance source to perform bidirectional diffusion on the scrambled image to obtain a chaotic encrypted image corresponding to the input image, specifically including: expanding the scrambled image into a pixel vector; changing the pixel value of each pixel based on a bidirectional diffusion mechanism using the front and back pixels and the pixel value forward diffusion key stream, the pixel value reverse diffusion key stream, the forward perturbation mask and the reverse perturbation mask; and generating the chaotic encrypted image based on the changed pixel value.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors; one or more memories; the memories store one or more programs, and when the one or more programs are executed by the processors, the electronic device executes the method according to any one of claims 1 to 9.
Citation Information
Cited By
Digital PUF circuit based on FPGA and use method thereof
CN119622834A
FPGA-based digital puf circuit and method of using the same
CN119622834B