Quantum steganography and quantum anti-steganography method and device, medium and equipment
Through quantum Fourier transform and inverse transform technology, combined with pixel threshold filtering, the problems of insufficient concealment and large reduction noise of the existing steganography methods are solved, and safe and efficient image steganography and restoration are achieved to adapt to new open channel transmission.
Patent Information
- Application Number
- CN202311841755.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-07-01
AI Technical Summary
The existing steganography methods are not concealed enough, the image restoration noise after steganography is high, and they are not suitable for the transmission needs of new public channels.
Quantum Fourier transform and inverse transform technology are used to perform quantum Fourier transform, fusion processing and inverse transformation on the carrier image and the pixel data of the image to be steganized to generate quantum steganized images, and quantum inverse steganized images are restored using quantum antisteganized methods, and image restoration is performed by combining pixel threshold filtering technology.
The image processing is completed in polynomial time, which improves the security and efficiency of steganography, and the image restoration quality is better than traditional methods, making full use of the parallelism and interference effects of quantum computing.
Smart Images

Figure CN120235259A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quantum computer technology, and in particular to a method, device, medium and equipment for quantum steganography and quantum anti-steganography. Background Art
[0002] A quantum computer is a device that follows the laws of quantum mechanics to perform high-speed mathematical and logical operations, store and process quantum information. Quantum computing is a computing technology based on the principles of quantum mechanics. It uses the superposition and entanglement of quantum bits to quickly process large amounts of data and solve some problems that are difficult to solve with classical computing. The characteristics of quantum computing include fast operation speed, strong information processing capabilities, and a wide range of applications. Compared with classical computing, quantum computing is more suitable for processing large-scale and complex data, and can more efficiently solve some key problems, such as prime factorization and discrete logarithms.
[0003] Information hiding methods mainly include steganography, digital watermarking, visual cryptography, covert channels, hidden protocols, etc. Steganography is the process of hiding secret information in seemingly ordinary information (such as digital images) for transmission. Digital steganography embeds secret information into digital images, audio, video and other media, and transmits it through public channels to achieve covert communication. It has broad application prospects in the fields of military, security, personal privacy, etc. Existing steganography methods have problems such as insufficient concealment and high noise in restored images after steganography.
[0004] How to design a more secure, efficient and adaptable digital steganography technology solution for new public channels is an issue that needs to be studied urgently in the field of information hiding. Summary of the invention
[0005] The purpose of the present invention is to provide a method, device, medium and equipment for quantum steganography and quantum anti-steganography, so as to realize image steganographic encryption processing which is safe, efficient and suitable for transmission over new open channels.
[0006] According to one aspect of the present invention, a quantum steganography method is provided, comprising: extracting pixel data of a carrier image and an image to be steganographic respectively to obtain first spatial domain pixel data and second spatial domain pixel data; performing quantum Fourier transform on the first spatial domain pixel data and the second spatial domain pixel data respectively to obtain first frequency domain pixel data and second frequency domain pixel data; performing fusion processing on the first frequency domain pixel data and the second frequency domain pixel data to obtain third frequency domain pixel data; performing inverse quantum Fourier transform on the third frequency domain pixel data to obtain third spatial domain pixel data; and generating a quantum steganographic image according to the third spatial domain pixel data.
[0007] According to an embodiment of the present invention, the quantum steganographic image is an image with a lossless image compression format; the method further includes: performing compression processing on the generated quantum steganographic image.
[0008] According to an embodiment of the present invention, in the step of performing fusion processing on the first frequency-domain pixel data and the second frequency-domain pixel data, it includes: adjusting the size of the second frequency-domain pixel data to be the same as the size of the first frequency-domain pixel data; performing splicing processing on the pixel values at corresponding positions in the first frequency-domain pixel data and the second frequency-domain pixel data.
[0009] According to an embodiment of the present invention, performing splicing processing on the pixel values at corresponding positions in the first frequency-domain pixel data and the second frequency-domain pixel data specifically includes: directly performing summation processing on the pixel values at corresponding positions in the first frequency-domain pixel data and the second frequency-domain pixel data; or, taking the inverse of the pixel values at corresponding positions in the first frequency-domain pixel data and the second frequency-domain pixel data and then directly performing summation processing, and then taking the inverse of the summation value; or, taking the inverse of the first frequency-domain pixel data and then performing summation processing with the pixel values at corresponding positions in the second frequency-domain pixel data.
[0010] According to another aspect of the present invention, a method for quantum desteganography is provided, including: respectively extracting the pixel data of the carrier image and the quantum steganographic image to obtain first spatial-domain pixel data and third spatial-domain pixel data; respectively performing quantum Fourier transform on the first spatial-domain pixel data and the third spatial-domain pixel data to obtain first frequency-domain pixel data and third frequency-domain pixel data; separating the first frequency-domain pixel data from the third frequency-domain pixel data to obtain second frequency-domain pixel data; performing inverse quantum Fourier transform on the second frequency-domain pixel data to obtain second spatial-domain pixel data; recovering the image to be steganographed according to the second spatial-domain pixel data; wherein, the quantum steganographic image is obtained by steganographing the image to be steganographed into the carrier image using the quantum steganography method described above.
[0011] According to an embodiment of the present invention, in the step of recovering the image to be steganographed according to the second spatial-domain pixel data, it includes: performing data filtering on the second spatial-domain pixel data, and the data filtering specifically includes: setting a filtering threshold, if the pixel value in the second spatial-domain pixel data is less than or equal to the filtering threshold, then reset the corresponding pixel value to 0 or the minimum value, if the pixel value in the second spatial-domain pixel data is greater than the filtering threshold, then reset the corresponding pixel value to 255 or the maximum value.
[0012] According to another aspect of the present invention, a computer-readable storage medium storing a computer program is provided. When the computer program is executed by a processor, the method of quantum steganography and quantum anti-steganography as described above is implemented.
[0013] According to another aspect of the present invention, a computer device is provided, comprising: a processor; a memory storing a computer program, and when the computer program is executed by the processor, the method of quantum steganography and quantum anti-steganography as described above is implemented.
[0014] Compared with the prior art, the present invention has the following beneficial effects: (1) Speed advantage: In the technical solution of the present invention, quantum Fourier transform can complete image processing operations in polynomial time, which has an exponential acceleration effect compared to the traditional Fourier transform algorithm.
[0015] (2) Parallelism advantage: Quantum computing can process multiple inputs in one operation based on quantum parallelism, so the Fourier transform of multiple signals can be performed more efficiently in quantum computing.
[0016] (3) Image restoration quality advantage: The quantum anti-steganography method can achieve the effect of noise reduction when restoring the steganographic image by adopting pixel threshold filtering technology.
[0017] (4) Quantum advantage: Quantum Fourier transform is a pure quantum algorithm that makes full use of the parallelism and interference effects of quantum computing, which enables it to provide more efficient solutions than traditional algorithms, reflecting quantum advantage. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above objects and features of the present invention will become more apparent from the following description in conjunction with the accompanying drawings.
[0019] Figure 1 Shown is a flow chart of a quantum steganography method according to an exemplary embodiment of the present invention.
[0020] Figure 2 Shown is a flow chart of a quantum anti-steganography method according to an exemplary embodiment of the present invention.
[0021] Figure 3 Shown is a schematic diagram of a quantum steganography device according to an exemplary embodiment of the present invention.
[0022] Figure 4 Shown is a schematic diagram of a quantum anti-steganography device according to an exemplary embodiment of the present invention.
[0023] Figure 5 Shown is a schematic diagram of a quantum anti-steganography device for data filtering according to an exemplary embodiment of the present invention.
[0024] Figure 6 Shown is a schematic diagram of quantum steganography for a two-dimensional code according to an exemplary embodiment of the present invention.
[0025] Figure 7 Shown is a schematic diagram of quantum anti-steganography for a two-dimensional code according to an exemplary embodiment of the present invention. Detailed implementation manners
[0026] The concept of the present invention lies in: realizing quantum steganography for images such as two-dimensional codes, watermarks, and confidentiality identifiers, and based on quantum steganography technology, hiding the image to be encrypted into the carrier image to realize encrypted storage or transmission of the image. Performing quantum Fourier transform on the first spatial domain pixel data and the second spatial domain pixel data respectively extracted from the carrier image and the image to be steganographed to obtain the first frequency domain pixel data and the second frequency domain pixel data; performing inverse quantum Fourier transform on the third frequency domain pixel data obtained by fusion processing according to the first frequency domain pixel data and the second frequency domain pixel data to obtain the third spatial domain pixel data; generating a quantum steganography image according to the third spatial domain pixel data. Applying the present invention can realize batch image steganography safely, quickly and with high quality.
[0027] Next, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0028] As Figure 1 shown, a flowchart of a quantum steganography method is given, including the following steps: Step S11: Extract pixel data of the carrier image and the image to be steganographed respectively to obtain the first spatial domain pixel data and the second spatial domain pixel data; Step S12: Perform quantum Fourier transform on the first spatial domain pixel data and the second spatial domain pixel data respectively to obtain the first frequency domain pixel data and the second frequency domain pixel data; Step S13: Perform fusion processing on the first frequency domain pixel data and the second frequency domain pixel data to obtain third frequency domain pixel data; Among them, the fusion processing includes: adjusting the size of the second frequency domain pixel data to be the same as the size of the first frequency domain pixel data; performing splicing processing on the pixel values at corresponding positions of the first frequency domain pixel data and the second frequency domain pixel data. When adjusting the size of the second frequency domain pixel data, it can be achieved by filling the non-pattern area data with zeros, that is, filling the corresponding pixel data with 0. Preferably, the size can be adjusted by padding zeros at the edges of the second frequency domain pixel data.
[0029] Among them, the splicing process specifically includes: directly adding the pixel values at the corresponding positions in the first frequency-domain pixel data and the second frequency-domain pixel data; or, taking the inverse of the pixel values at the corresponding positions in the first frequency-domain pixel data and the second frequency-domain pixel data and then directly adding them, and then taking the inverse of the added value; or, taking the inverse of the first frequency-domain pixel data and adding it to the pixel value at the corresponding position in the second frequency-domain pixel data.
[0030] Step S14: Perform an inverse quantum Fourier transform on the third frequency-domain pixel data to obtain third spatial-domain pixel data; Step S15: Generate a quantum steganographic image based on the third spatial-domain pixel data.
[0031] As Figure 2 shown, a flowchart of a quantum anti-steganography method is given, including the following steps: Step S21: Extract the pixel data of the carrier image and the quantum steganographic image respectively to obtain first spatial-domain pixel data and third spatial-domain pixel data; Step S22: Perform quantum Fourier transforms on the first spatial-domain pixel data and the third spatial-domain pixel data respectively to obtain first frequency-domain pixel data and third frequency-domain pixel data; Step S23: Separate the first frequency-domain pixel data from the third frequency-domain pixel data to obtain second frequency-domain pixel data; Step S24: Perform an inverse quantum Fourier transform on the second frequency-domain pixel data to obtain second spatial-domain pixel data; Step S25: Recover the image to be steganographed based on the second spatial-domain pixel data; Among them, the quantum steganographic image is obtained by steganographing the image to be steganographed into the carrier image using the Figure 1 quantum steganography method shown.
[0032] In step S25, data filtering of the second spatial-domain pixel data is further included. The data filtering specifically includes: setting a filtering threshold. If the pixel value in the second spatial-domain pixel data is less than or equal to the filtering threshold, the corresponding pixel value is reset to 0 or the minimum value. If the pixel value in the second spatial-domain pixel data is greater than the filtering threshold, the corresponding pixel value is reset to 255 or the maximum value.
[0033] The quantum Fourier transform (QFT) is a discrete Fourier transform based on quantum theory, which decomposes the original formula into the product of simpler multiple unitary matrices. Based on this decomposition method, the discrete Fourier transform can be used as a quantum circuit to perform the quantum Fourier transform process. The quantum Fourier transform circuit includes multiple Hadamard gates and controlled phase shift gates. In quantum computing, the inverse quantum Fourier transform (QFT+ ) is a tool for operating and analyzing quantum states and a mathematical operation for transforming quantum information from a frequency-domain representation back to a spatial-domain representation.
[0034] Compared with the classical discrete Fourier transform, the quantum Fourier transform has the ability of parallel processing. In classical computing, performing the Fourier transform requires linear time, while the quantum Fourier transform can be completed in logarithmic time. This gives quantum computing significant advantages in some specific tasks, such as quantum image processing and quantum signal processing. Especially when the number of pictures requiring steganography is large, by batch-parallelly executing quantum steganography techniques for processing, the execution efficiency of quantum steganography and quantum anti-steganography can be greatly improved.
[0035] The images to be steganographed include QR code images, barcode images, trademark images, anti-counterfeiting logo images, trade name images, text logo images, digital logo images or LOGO logo images. The carrier image can also be one or more single-frame images in a continuous video image.
[0036] The generated quantum steganographed image is an image in a lossless image compression format, and its specific image formats include: JPEG, PNG, GIF or TIFF. The quantum steganography method further includes: performing compression processing on the generated quantum steganographed image. Through compression processing, the image size can be reduced, making the quantum steganographed image more convenient for transmission. Preferably, the quantum steganographed image is an image in PNG format.
[0037] After obtaining the spatial-domain pixel data by data extraction from the image, before inputting it into the quantum circuit of the quantum Fourier transform or the inverse quantum Fourier transform, the spatial-domain pixel data also needs to be converted into a data format supported by the quantum programming framework. Usually, the pixel data needs to be converted into corresponding phase data, and then the phase data is input into the quantum circuit of the quantum Fourier transform or the inverse quantum Fourier transform for arithmetic processing.
[0038] In actual execution, for example, under the Qiskit platform of IBM Corporation, directly calling the QFT module of the quantum Fourier transform in Qiskit can automatically convert the pixel data into a data form suitable for quantum circuit processing, and then the quantum Fourier transform processing can be carried out. While in the QPanda platform of Origin Quantum, it is necessary to convert it into binary data and then call the QFT module of the quantum Fourier transform for processing.
[0039] For the adjustment of the size of the images to be steganographed, its size can be adjusted to be the same as that of the carrier image in the spatial domain or the frequency domain, that is, the number of elements in the pixel array is the same.
[0040] As Figure 3 shown, a schematic diagram of a quantum steganography device is given, including: A data extraction unit 301, configured to extract pixel data of a carrier image and a steganographic image to be hidden respectively, so as to obtain first spatial domain pixel data and second spatial domain pixel data; A quantum Fourier transform unit 302, configured to perform quantum Fourier transform on the first spatial domain pixel data and the second spatial domain pixel data respectively, so as to obtain first frequency domain pixel data and second frequency domain pixel data; An image fusion unit 303, configured to perform a fusion process on the first frequency domain pixel data and the second frequency domain pixel data, so as to obtain third frequency domain pixel data; A quantum inverse Fourier transform unit 304, configured to perform quantum inverse Fourier transform on the third frequency domain pixel data, so as to obtain third spatial domain pixel data; An image generation unit 305, configured to generate a quantum steganographic image according to the third spatial domain pixel data.
[0041] As Figure 4 shown, a schematic diagram of a quantum anti-steganography device is given, including: A data extraction unit 401, configured to extract pixel data of a carrier image and a quantum steganographic image respectively, so as to obtain first spatial domain pixel data and third spatial domain pixel data; A quantum Fourier transform unit 402, configured to perform quantum Fourier transform on the first spatial domain pixel data and the third spatial domain pixel data respectively, so as to obtain first frequency domain pixel data and third frequency domain pixel data; An image separation unit 403, configured to perform a separation process on the first frequency domain pixel data from the third frequency domain pixel data, so as to obtain second frequency domain pixel data; A quantum inverse Fourier transform unit 404, configured to perform quantum inverse Fourier transform on the second frequency domain pixel data, so as to obtain second spatial domain pixel data; An image generation unit 405, configured to recover the steganographic image to be hidden according to the second spatial domain pixel data; wherein, the quantum steganographic image is obtained by steganographically hiding the steganographic image to be hidden into the carrier image by using a quantum steganography method.
[0042] Furthermore, as Figure 5 shown, the quantum anti-steganography device further includes: A data filtering unit 406, configured to perform data filtering on the second spatial domain pixel data, and the data filtering specifically includes: setting a filtering threshold, if the pixel value in the second spatial domain pixel data is less than or equal to the filtering threshold, reset the corresponding pixel value to 0 or the minimum value, and if the pixel value in the second spatial domain pixel data is greater than the filtering threshold, reset the corresponding pixel value to 255 or the maximum value.
[0043] An image generation unit 405, configured to recover a steganographic image to be hidden according to the second spatial domain pixel data after data filtering processing by a data filtering unit 406.
[0044] Embodiment 1: Hiding a QR code in a carrier image based on a quantum steganography method.
[0045] As Figure 6 shown in the schematic diagram of quantum steganography, the specific process of hiding a QR code in a carrier image is given.
[0046] Step S101: Open a carrier image P1 in any format and transform it into a two-dimensional array (usually the values of this array are between 0 and 255), which is called the pixel data array A1 of the carrier image. Here, the storage form of the pixel data of the extracted image is not limited to a two-dimensional array, and can also be a multi-dimensional array, such as three-dimensional, four-dimensional or five-dimensional. The specific dimension can be determined according to actual needs. The data structure is not limited to the array form, and can also be in the form of a dictionary or a tuple.
[0047] Among them, for a carrier image with RGB channels or RGBA channels, it is necessary to convert the pictures of all channels. For example, pixel fusion is performed on an RGB three-channel image. If one is an RGB channel and the other is a black-and-white channel, all channels can be selected to participate in the calculation with the black-and-white channel. Or select a certain channel to calculate with the black-and-white channel, so as to obtain the spatial domain pixel data of a two-dimensional array that can identify pixel positions and pixel color information.
[0048] Step S102: Open the QR code picture P2 to be hidden. The length and width of the QR code picture are both smaller than the picture P1, and it is transformed into a two-dimensional array (usually the values of this array are between 0 and 255). It is called the pixel data array A2 of the QR code.
[0049] Step S103: Transform the arrays A1 and A2 respectively by quantum Fourier transform (each element of each array is transformed), and obtain the transformed arrays S1 and S2 in the frequency domain respectively. Among them, the data of the arrays A1 and A2 are converted into a data format supported by the quantum programming framework. In the specific implementation process, normally, the conversion of the data end should be handled by the quantum programming framework itself, such as Qiskit. But it does not rule out that some quantum programming frameworks only support binary, such as QPanda. In this case, the pixels must be converted into binary and then the quantum Fourier transform QFT is called for processing. At this time, the pixels can theoretically be directly processed by calling the quantum Fourier transform QFT.
[0050] Step S104: Arbitrarily expand the edges of S2 by 0 so that the size of the array S2 is the same as that of S1. Then, add the expanded array of S1 + S2 to obtain the array S3. Here, the array S2 can be expanded by padding with zeros.
[0051] Step S105: Perform the inverse quantum Fourier transform (QFT + ) on the array S3 to obtain the array A3. Then, generate a PNG - format image P3 based on the pixel data of the array A3, complete the quantum steganography of the QR code, and obtain the quantum - steganographed image P3. The QR - code image P1 is steganographed in the image P3.
[0052] Embodiment 2: Recover the QR code from the steganographed carrier image based on the quantum anti - steganography method.
[0053] As Figure 7 shown in the schematic diagram of quantum anti - steganography, the specific process of recovering the QR - code image through quantum anti - steganography is given.
[0054] Step S201: Read the steganographed image P3 and transform it into a two - dimensional array (usually the values of this array are between 0 and 255), called the array A3.
[0055] Step S202: Open the original carrier image P1 before steganography and transform it into a two - dimensional array (usually the values of this array are between 0 and 255), called the array A1.
[0056] Step S203: Perform the quantum Fourier transform (QFT) on the arrays A3 and A1 respectively (transform each element of each array) to obtain the transformed arrays S3 and S1 respectively.
[0057] Step S204: Subtract the array S1 from the array S3 to obtain the array S2.
[0058] Step S205: Perform the inverse Fourier transform (QFT + ) on the array S2 to obtain the array A2.
[0059] Step S206: Filter the data of the array A2 according to the formula (filter each element) to obtain the array A2".
[0060] Step S207: Restore the image of the array A2" in the image format to generate the QR - code image P2" recovered through quantum anti - steganography. Preferably, the restored QR - code image is a PNG - format image. Further, the restored QR - code image can also be compressed to an appropriate size to meet the requirements of transmission or storage.
[0061] In addition, according to an exemplary embodiment of the present invention, a computer-readable storage medium storing a computer program may also be provided. The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to execute the methods of quantum steganography and quantum anti-steganography according to the exemplary embodiments of the present invention. The computer-readable recording medium is any data storage device that can store data read by a computer system. Examples of computer-readable recording media include: read-only memory, random access memory, compact discs read-only, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission via the Internet through wired or wireless transmission paths).
[0062] In addition, according to an exemplary embodiment of the present invention, a computing device may also be provided. The computing device includes a processor and a memory. The memory is used to store a computer program. The computer program, when executed by the processor, causes the processor to execute the computer program of the methods of quantum steganography and quantum anti-steganography according to the exemplary embodiments of the present invention.
[0063] It should be noted that the first, second, third, fourth, etc. in the above description are used to distinguish features with the same name in the same or different embodiments, and are not limitations in terms of quantity. And the present invention is not limited to the specific configurations and processes described above or shown in the figures. The above are only specific embodiments of the present invention. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the described systems, devices, modules, or units can refer to the corresponding processes in the method embodiments and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can think of various equivalent modifications or substitutions, and these modifications or substitutions should be covered within the protection scope of the present invention..
Claims
1. A method for quantum steganography, characterized in that, Including: Extract the pixel data of the carrier image and the image to be steganographed respectively to obtain the first spatial domain pixel data and the second spatial domain pixel data; Perform quantum Fourier transform on the first spatial domain pixel data and the second spatial domain pixel data respectively to obtain the first frequency domain pixel data and the second frequency domain pixel data; Perform a fusion process on the first frequency domain pixel data and the second frequency domain pixel data to obtain third frequency domain pixel data; Perform an inverse quantum Fourier transform on the third frequency domain pixel data to obtain third spatial domain pixel data; Generate a quantum steganographed image according to the third spatial domain pixel data.
2. The method for quantum steganography according to claim 1, wherein The quantum steganographed image is an image with a lossless image compression format; the method further includes: performing a compression process on the generated quantum steganographed image.
3. The method for quantum steganography according to claim 1, wherein In the step of performing a fusion process on the first frequency domain pixel data and the second frequency domain pixel data, it includes: Adjust the size of the second frequency domain pixel data to be the same as the size of the first frequency domain pixel data; Perform a splicing process on the pixel values at the corresponding positions in the first frequency domain pixel data and the second frequency domain pixel data.
4. The method for quantum steganography according to claim 3, wherein The specific process of performing a splicing process on the pixel values at the corresponding positions in the first frequency domain pixel data and the second frequency domain pixel data includes: Directly perform an addition process on the pixel values at the corresponding positions in the first frequency domain pixel data and the second frequency domain pixel data; or, Invert the pixel values at the corresponding positions in the first frequency domain pixel data and the second frequency domain pixel data and then directly perform an addition process, and then invert the addition value; or, After inverting the first frequency domain pixel data, perform an addition process with the pixel values at the corresponding positions in the second frequency domain pixel data.
5. A method for quantum anti-steganography, characterized in that, Including: Extract the pixel data of the carrier image and the quantum steganographed image respectively to obtain the first spatial domain pixel data and the third spatial domain pixel data; Perform quantum Fourier transform on the first spatial domain pixel data and the third spatial domain pixel data respectively to obtain the first frequency domain pixel data and the third frequency domain pixel data; Separate the first frequency domain pixel data from the third frequency domain pixel data to obtain second frequency domain pixel data; Perform an inverse quantum Fourier transform on the second frequency domain pixel data to obtain second spatial domain pixel data; Restore the image to be steganographed according to the second spatial domain pixel data; Wherein, the quantum steganographed image is obtained by steganographing the image to be steganographed into the carrier image by using the quantum steganography method according to any one of claims 1-4.
6. The method of quantum anti-steganography according to claim 5, characterized in that, In the step of restoring the steganographic image to be hidden according to the second spatial domain pixel data, it includes: performing data filtering on the second spatial domain pixel data, and the data filtering specifically includes: setting a filtering threshold, if the pixel value in the second spatial domain pixel data is less than or equal to the filtering threshold, reset the corresponding pixel value to 0 or the minimum value, and if the pixel value in the second spatial domain pixel data is greater than the filtering threshold, reset the corresponding pixel value to 255 or the maximum value.
7. A device for quantum steganography, characterized in that, It includes: A data extraction unit configured to extract the pixel data of the carrier image and the steganographic image to be hidden respectively, obtaining first spatial domain pixel data and second spatial domain pixel data; A quantum Fourier transform unit configured to perform quantum Fourier transform on the first spatial domain pixel data and the second spatial domain pixel data respectively, obtaining first frequency domain pixel data and second frequency domain pixel data; An image fusion unit configured to perform a fusion process on the first frequency domain pixel data and the second frequency domain pixel data, obtaining third frequency domain pixel data; A quantum inverse Fourier transform unit configured to perform quantum inverse Fourier transform on the third frequency domain pixel data, obtaining third spatial domain pixel data; An image generation unit configured to generate a quantum steganographic image according to the third spatial domain pixel data.
8. A device for quantum anti-steganography, characterized in that, It includes: A data extraction unit configured to extract the pixel data of the carrier image and the quantum steganographic image respectively, obtaining first spatial domain pixel data and third spatial domain pixel data; A quantum Fourier transform unit configured to perform quantum Fourier transform on the first spatial domain pixel data and the third spatial domain pixel data respectively, obtaining first frequency domain pixel data and third frequency domain pixel data; An image separation unit configured to perform a separation process on the first frequency domain pixel data from the third frequency domain pixel data, obtaining second frequency domain pixel data; A quantum inverse Fourier transform unit configured to perform quantum inverse Fourier transform on the second frequency domain pixel data, obtaining second spatial domain pixel data; An image generation unit configured to restore the steganographic image to be hidden according to the second spatial domain pixel data; Wherein, the quantum steganographic image is obtained by hiding the steganographic image to be hidden into the carrier image by using the quantum steganographic method described in any one of claims 1-4.
9. A computer-readable storage medium storing a computer program, wherein, When the computer program is executed by a processor, it implements the quantum steganographic method described in any one of claims 1 to 4, or implements the quantum anti-steganographic method described in any one of claims 5 to 6.
10. A computing device, including: A processor; A memory storing a computer program, when the computer program is executed by the processor, it implements the quantum steganographic method described in any one of claims 1 to 4, or implements the quantum anti-steganographic method described in any one of claims 5 to 6.