Data encryption method and device, electronic equipment and computer storage medium
The phase hologram is generated through Fourier variation and designed a metasurface. Combined with the honeypot encryption idea, the security problems of existing encryption technology under the threat of quantum computing are solved, and higher data security and anti-quantum cracking capabilities are achieved.
Patent Information
- Application Number
- CN202510613604.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2025-08-29
AI Technical Summary
Existing encryption technologies are challenged in the face of quantum computing threats and are easily cracked.
By performing Fourier changes to the encrypted data and the preset key, a phase hologram is generated, and a metasurface is designed based on the phase hologram. The metasurface is used to record the phase information of the data to be encrypted and the preset key. Combined with the honeypot encryption idea, a false phase hologram is generated when using the wrong decryption key, confusing the attacker.
It enhances the security of encrypted data, can effectively resist brute-force cracking of quantum computing, and improves the confidentiality and integrity of data.
Smart Images

Figure CN120567408A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data encryption technology, and in particular to a data encryption method, device, electronic equipment and computer storage medium. Background Art
[0002] With the rapid development of digital communication technology, the importance of data security in various fields has become increasingly prominent.
[0003] Traditional encryption technologies, such as the Advanced Encryption Standard and the Rivest-Shamir-Adleman (RSA) algorithm, have long served as cornerstones of data security. These technologies rely on computationally challenging problems such as integer factorization and discrete logarithms, providing effective encryption in classical computing environments. However, the rapid development of quantum computing poses a significant threat to these traditional encryption methods. Quantum algorithms can solve these challenges at an exponential rate, exposing systems based on traditional encryption to the risk of being cracked. This poses a serious challenge to data confidentiality and integrity, necessitating the urgent need for new encryption technologies to address this threat.
[0004] This shows that the security of existing encryption technology is challenged and easily cracked when facing the threat of quantum computing. Summary of the Invention
[0005] In view of this, it is necessary to provide a data encryption method, device, electronic device and computer storage medium to solve the problem that the security of existing encryption technology is challenged and easily cracked when facing the threat of quantum computing.
[0006] In order to solve the above problems, in a first aspect, the present invention provides a data encryption method, comprising: Perform Fourier transform on the data to be encrypted and the preset secret key to obtain phase information of the data to be encrypted and the preset secret key; A phase hologram is generated based on the phase information of the data to be encrypted and the preset key, and a metasurface is designed based on the phase hologram. The metasurface is used to record the phase information of the data to be encrypted and the preset key; When the secret key used to decrypt the metasurface is different from the preset secret key, a false phase hologram that does not contain the phase information of the data to be encrypted is output based on the metasurface.
[0007] In a possible implementation of the present invention, performing Fourier transform on the data to be encrypted and the preset key to obtain phase information of the data to be encrypted and the preset key includes: Perform Fourier transform on the data to be encrypted, the preset key and the preset initial phase image to obtain the phase information of the data to be encrypted and the preset key.
[0008] In one possible implementation of the present invention, generating a phase hologram based on phase information of data to be encrypted and a preset key includes: Acquire the amplitude information of the data to be encrypted, and combine the amplitude information with the phase information to generate the frequency domain information to be encrypted; The frequency domain information to be encrypted is subjected to an inverse Fourier transform to obtain a phase hologram containing the time domain information of the data to be encrypted and the preset secret key.
[0009] In a possible implementation of the present invention, when there are multiple data to be encrypted and multiple preset keys, generating a phase hologram based on phase information of the data to be encrypted and the preset key includes: Iterative encryption is performed based on the amplitude information of each data to be encrypted and the phase information of each preset secret key. The encryption formula of iterative encryption is:
[0010] in, Encrypt the result for the current iteration, is the encryption result of the previous iteration, A is the current data to be encrypted, and k is the preset feedback indicator.
[0011] In one possible embodiment of the present invention, designing a metasurface based on a phase hologram includes: A metasurface whose basic structural unit is a cylinder is used to record the phase information of a phase hologram, wherein different phases are modulated by the radius of the cylinder.
[0012] In one possible embodiment of the present invention, outputting a false phase hologram that does not contain phase information of data to be encrypted based on a metasurface includes: The phase information of the cylinder on the metasurface is obtained and randomly chaotically processed to obtain a false phase hologram that is different from the phase information of the data to be encrypted.
[0013] In a possible implementation of the present invention, before performing Fourier transform on the encrypted data and the preset key, the process includes: Convert the format of the data to be encrypted into the preset format to be encrypted.
[0014] In a second aspect, the present invention further provides a data encryption device, comprising: A phase information acquisition module is used to perform Fourier transform on the data to be encrypted and the preset secret key to obtain phase information of the data to be encrypted and the preset secret key; A metasurface design module, configured to generate a phase hologram based on the phase information of the data to be encrypted and the preset key, and to design a metasurface based on the phase hologram, wherein the metasurface is configured to record the phase information of the data to be encrypted and the preset key; The honeypot encryption module is used to output a false phase hologram that does not contain the phase information of the data to be encrypted based on the metasurface when the secret key for decrypting the metasurface is different from the preset secret key.
[0015] In a third aspect, the present invention further provides an electronic device comprising a memory and a processor, wherein: Memory, used to store programs; The processor is coupled to the memory and is configured to execute the program stored in the memory to implement the steps in the data encryption method of any of the above embodiments.
[0016] In a fourth aspect, the present invention further provides a computer-readable storage medium for storing computer-readable programs or instructions, which, when executed by a processor, can implement the steps in the data encryption method of any of the above-mentioned embodiments.
[0017] The beneficial effects of the present invention are: the data encryption method provided by the present invention obtains the phase information of the data to be encrypted and the preset key by performing Fourier transform on the data to be encrypted and the preset key; generates a phase hologram based on the phase information of the data to be encrypted and the preset key, and designs a metasurface based on the phase hologram, and the metasurface is used to record the phase information of the data to be encrypted and the preset key. The holographic coding technology based on the metasurface generates a difficult-to-copy holographic pattern by controlling the phase distribution of light, thereby providing higher security for the encrypted information. When the key for decrypting the metasurface is different from the preset key, a false phase hologram that does not contain the phase information of the data to be encrypted is output based on the metasurface. Combined with the idea of honeypot encryption, when an incorrect decryption key is used, a seemingly reasonable but misleading plaintext is generated to confuse attackers, thereby enhancing the security of the encrypted data, effectively overcoming the brute force cracking of quantum computing, and more effectively protecting data. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 A schematic diagram of a data encryption method according to an embodiment of the present invention; Figure 2 A schematic flow chart of a phase hologram generation method provided in an embodiment of the present invention; Figure 3 A schematic diagram of generating a phase hologram provided by an embodiment of the present invention; Figure 4 A schematic diagram of iterative data encryption provided by an embodiment of the present invention; Figure 5 A schematic diagram of multiple data encryption provided by an embodiment of the present invention; Figure 6 A schematic diagram of a metasurface configuration provided by an embodiment of the present invention; Figure 7 A schematic structural diagram of a data encryption device provided by an embodiment of the present invention; Figure 8 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, and are not used to limit the scope of the present invention.
[0021] The terms "first," "second," and so on, used in the embodiments of the present invention are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, technical features designated as "first" or "second" may explicitly or implicitly include at least one such feature.
[0022] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0023] A specific embodiment of the present invention, as Figure 1 As shown, a data encryption method is disclosed, comprising: S101, performing Fourier transform on the data to be encrypted and the preset secret key to obtain phase information of the data to be encrypted and the preset secret key.
[0024] In the embodiments of the present invention, the data to be encrypted can be any information that requires encryption, such as text, image, or audio information. The preset key is data set by the encryptor that can be combined with the data to be encrypted, such as text, image, or code. Generally, the data to be encrypted and the preset key are both time-domain information. When encrypting the data to be encrypted, a Fourier transform can be performed on the data to be encrypted and the preset key to obtain frequency-domain information of the data to be encrypted and the preset key. This frequency-domain information includes phase information of the data to be encrypted and the preset key.
[0025] S102, generating a phase hologram based on the phase information of the data to be encrypted and the preset key, and designing a metasurface based on the phase hologram, where the metasurface is used to record the phase information of the data to be encrypted and the preset key.
[0026] In an embodiment of the present invention, after obtaining the phase information of the data to be encrypted and the preset key, a phase hologram is generated based on this phase information. Specifically, the phase hologram is an image used to record the time domain information of the data to be encrypted and the preset key. It can be obtained by performing an inverse Fourier transform on the phase information of the data to be encrypted and the preset key. A metasurface is then designed based on the phase information in the phase hologram. A metasurface is a two-dimensional artificial material structure composed of basic structural units at subwavelength scales. These meta-atoms can precisely control the phase, amplitude, and polarization characteristics of electromagnetic waves, breaking through the limitations of traditional optical components. By carefully designing the metasurface structure, flexible light control, such as focusing, deflection, and holographic imaging, can be achieved. Integrating a metasurface into an encryption system can directly encode information into the physical properties of light, forming an additional layer of security. For example, holographic encoding technology based on metasurfaces generates difficult-to-replicate holographic patterns by controlling the phase distribution of light, providing higher security for encrypted information.
[0027] S103 , when the secret key for decrypting the metasurface is different from the preset secret key, outputting a false phase hologram that does not contain phase information of the data to be encrypted based on the metasurface.
[0028] In an embodiment of the present invention, the encryption of encrypted data also adopts the honey encryption concept. As an emerging encryption concept, honey encryption provides a new approach for data protection. Its core principle is to generate seemingly reasonable but misleading plaintext when using an incorrect decryption key to confuse attackers, thereby enhancing the security of encrypted data. Specifically, when decrypting the metasurface generated by this application, if the input secret key does not match the preset secret key, a false phase hologram can be generated based on the metasurface by combining appropriate Fourier transform, binarization, interpolation, and phase recovery operations. The false phase hologram is then provided to the attacker, which can effectively confuse the attacker and more effectively protect the data.
[0029] The data encryption method provided by the present invention obtains the phase information of the data to be encrypted and the preset key by performing Fourier transform on the data to be encrypted and the preset key; generates a phase hologram based on the phase information of the data to be encrypted and the preset key, and designs a metasurface based on the phase hologram, and the metasurface is used to record the phase information of the data to be encrypted and the preset key. The holographic coding technology based on the metasurface generates a difficult-to-copy holographic pattern by controlling the phase distribution of light, thereby providing higher security for the encrypted information. When the key used to decrypt the metasurface is different from the preset key, a false phase hologram that does not contain the phase information of the data to be encrypted is output based on the metasurface. Combined with the honeypot encryption idea, when an incorrect decryption key is used, a seemingly reasonable but misleading plaintext is generated to confuse attackers, thereby enhancing the security of the encrypted data, being able to effectively overcome the brute force cracking of quantum computing, and more effectively protecting data.
[0030] In some possible embodiments of the present invention, performing Fourier transform on the data to be encrypted and the preset key to obtain phase information of the data to be encrypted and the preset key includes: Perform Fourier transform on the data to be encrypted, the preset key and the preset initial phase image to obtain the phase information of the data to be encrypted and the preset key.
[0031] In an embodiment of the present invention, when obtaining the phase information of the data to be encrypted and the preset key, the data to be encrypted and the preset initial phase matrix can be combined first, and then the combined information can be Fourier transformed to obtain amplitude information and phase information, and then the amplitude information is discarded, and the phase information is combined with the phase information of the preset key, and the collected phase information is combined with the amplitude information of the data to be encrypted to obtain the combined frequency domain information of the data to be encrypted and the preset key, and the combined frequency domain information is inverse Fourier transformed to obtain the time domain information of the data to be encrypted and the preset key. Furthermore, the time domain information can be phase modulated to obtain a phase modulation diagram, which contains the phase information of the data to be encrypted and the preset key.
[0032] The embodiment of the present invention provides a technical solution for performing Fourier encryption on data to be encrypted, thereby improving the complexity of data encryption and ensuring the reliability of encryption.
[0033] In some possible embodiments of the present invention, Figure 2 As shown, a phase hologram is generated based on the phase information of the data to be encrypted and the preset secret key, including: S201, obtaining amplitude information of data to be encrypted, and combining the amplitude information with phase information to generate frequency domain information to be encrypted; S202, performing an inverse Fourier transform on the frequency domain information to be encrypted to obtain a phase hologram containing the time domain information of the data to be encrypted and a preset secret key.
[0034] In the embodiment of the present invention, Figure 3 As shown, a schematic diagram of generating a phase hologram is shown, wherein, is the phase information of the data to be encrypted, is the phase information of the preset secret key, 1 is the amplitude of the preset initial phase matrix, the amplitude does not record information, and is used to combine with the phase information of the data to be encrypted and the preset secret key to obtain information A, and perform Fourier transform (FFT) on information A to obtain the amplitude information of the data to be encrypted , as well as the phase information of the confidential data and the preset key , the phase information and the amplitude information of the data to be encrypted Collect and generate data , for this data Perform an inverse Fourier transform ( ), obtain the phase hologram containing the time domain information of the data to be encrypted and the preset secret key .
[0035] The embodiment of the present invention combines the data to be encrypted and the preset key and performs an inverse Fourier transform in the frequency domain to obtain a phase hologram containing the time domain information of the data to be encrypted and the preset key.
[0036] In some possible embodiments of the present invention, when there are multiple data to be encrypted and multiple preset keys, generating a phase hologram based on phase information of the data to be encrypted and the preset key includes: Iterative encryption is performed based on the amplitude information of each data to be encrypted and the phase information of each preset secret key. The encryption formula of iterative encryption is:
[0037] in, Encrypt the result for the current iteration, is the encryption result of the previous iteration, A is the current data to be encrypted, and k is the preset feedback indicator.
[0038] In the embodiment of the present invention, Figure 4 As shown, for different data to be encrypted A, B, ..., X, different preset keys are used. 、 ,..., When performing encryption, the strategy of bone-breaking encryption can be adopted, and Fourier transform can be applied to the input part to obtain frequency domain information. Subsequently, phase modulation is performed to combine the amplitude information with the phase information in the frequency domain to form a new phase-modulated image. This step further increases the complexity of the image representation through phase modulation. Then, an inverse Fourier transform is performed on the phase-modulated image to obtain a result represented as time domain information. This step converts the frequency domain information back to the time domain, thereby achieving encryption. In each iterative encryption, the above steps are repeated, and iterative encryption is performed based on the above encryption formula, such as Figure 5 As shown, a phase hologram can be combined with multiple different keys to generate different holographic images. When decryption is required, the decryption process is the opposite of the encryption process to recover the original information. The encryption process includes initial phase modulation, Fourier transform, phase modulation, inverse Fourier transform, and iterative update to generate a complex phase-modulated image. The decryption process follows the same steps, recovering the original image through inverse phase modulation and iterative update. For example, the encryption process is designed to implement seven independent channels. Therefore, seven random phase plates are first generated and used as keys. Then, an iterative optimization algorithm adjusts the phases and combines these phases with the key to generate the decrypted image.
[0039] The embodiment of the present invention uses an iterative confidentiality strategy to encrypt multiple data to be encrypted using multiple preset keys. One key corresponds to one data to be encrypted. When decrypting the metasurface, the decryptor can use different keys to obtain the corresponding data to be encrypted.
[0040] In some possible embodiments of the present invention, a metasurface is designed based on a phase hologram, including: A metasurface whose basic structural unit is a cylinder is used to record the phase information of a phase hologram, wherein different phases are modulated by the radius of the cylinder.
[0041] In an embodiment of the present invention, a metasurface is designed and manufactured based on the phase distribution obtained by iterative optimization. A transmissive all-dielectric cylindrical cylinder is used as the basic structural unit of the metasurface. The substrate material is silicon dioxide, and the cylinder material is crystalline silicon. At a wavelength of 633 nanometers, the refractive index is 3.88, the extinction coefficient is 0.02, the height is 270 nanometers, and the period is 220 nanometers. During the design process, a full-wave electromagnetic simulation is performed, the incident wave is set to a vertical plane wave with a wavelength of 633 nanometers, and an open boundary condition is adopted. The phase of the outgoing wave can be modulated by changing the radius r of the cylindrical cylinder, and the relationship is as follows: Figure 6 (a) is a schematic diagram of the metasurface. Figure 6As shown in (b), when r varies between 20 nanometers and 90 nanometers, a phase shift of nearly 2π can be achieved, and the transmittance can be maintained at a high level (about 90%). At this time, the encrypted information is encoded in the specific phase distribution generated by the interaction between light and the metasurface.
[0042] The embodiment of the present invention records the phase information of the data to be encrypted through a metasurface. Based on the holographic encoding technology of the metasurface, a holographic pattern that is difficult to copy is generated by controlling the phase distribution of light, thereby providing higher security for the encrypted information.
[0043] In some possible embodiments of the present invention, outputting a false phase hologram that does not contain phase information of data to be encrypted based on a metasurface includes: The phase information of the cylinder on the metasurface is obtained and randomly chaotically processed to obtain a false phase hologram that is different from the phase information of the data to be encrypted.
[0044] In an embodiment of the present invention, when the attacker's key for decrypting the metasurface is not a preset key, in order to prevent the attacker from forcibly destroying the metasurface using quantum computing technology, a false phase hologram can be returned to the attacker. Specifically, this can be achieved by combining appropriate Fourier transform, binarization, interpolation, and phase recovery operations, and using a random phase map. From the design idea of the metasurface, it can be seen that the design process of the metasurface can include various possible phase information. Therefore, it is only necessary to randomly select phase information on the metasurface for combination, and then perform random chaos processing to obtain a false phase hologram, so that the decrypted false data is logically similar to the real information, confusing the attacker and increasing the difficulty of cracking.
[0045] In some possible embodiments of the present invention, before performing Fourier transform on the encrypted data and the preset key, the process includes: Convert the format of the data to be encrypted into the preset format to be encrypted.
[0046] In an embodiment of the present invention, before encrypting the data to be encrypted, it is necessary to process the data to be encrypted and convert it into a format suitable for encryption processing, such as converting the image data into a grayscale image, and adjusting the image size through interpolation or the like according to the target size of the metasurface to ensure that the image size meets the target size of the metasurface.
[0047] The embodiment of the present invention integrates honeypot encryption with metasurface technology, utilizes an iterative algorithm based on fast Fourier transform to optimize the metasurface phase distribution, realizes fast encryption and decryption, and improves encryption efficiency; at the same time, it constructs a multi-layer encryption system, enhances resistance to various threats such as quantum computing attacks, makes up for the defects of honeypot encryption and metasurface when used separately, and improves the overall security of the encryption system.
[0048] In order to better implement the data encryption method in the embodiment of the present invention, based on the data encryption method, correspondingly, Figure 7 As shown, an embodiment of the present invention further provides a data encryption device, the data encryption device 700 includes: Phase information acquisition module 701, used to perform Fourier transform on the data to be encrypted and the preset key to obtain phase information of the data to be encrypted and the preset key; A metasurface design module 702 is configured to generate a phase hologram based on the phase information of the data to be encrypted and the preset key, and to design a metasurface based on the phase hologram, wherein the metasurface is configured to record the phase information of the data to be encrypted and the preset key; The honeypot encryption module 703 is configured to output a false phase hologram that does not contain phase information of the data to be encrypted based on the metasurface when the secret key for decrypting the metasurface is different from the preset secret key.
[0049] The data encryption device 700 provided in the above embodiment can implement the technical solution described in the above data encryption method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above data encryption method embodiment, which will not be repeated here.
[0050] like Figure 8 As shown, the present invention also provides an electronic device 800. The electronic device 800 includes a processor 801, a memory 802 and a display 803. Figure 8 Only some of the components of the electronic device 800 are shown, but it should be understood that implementation of all of the shown components is not required, and more or fewer components may be implemented instead.
[0051] In some embodiments, the processor 801 may be a central processing unit (CPU), a microprocessor, or other data processing chip, configured to execute program codes stored in the memory 802 or process data, such as the data encryption method of the present invention.
[0052] In some embodiments, processor 801 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, processor 801 may be local or remote. In some embodiments, processor 801 may be implemented on a cloud platform. In some embodiments, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, multiple clouds, or any combination thereof.
[0053] In some embodiments, the memory 802 may be an internal storage unit of the electronic device 800, such as a hard disk or memory of the electronic device 800. In other embodiments, the memory 802 may also be an external storage device of the electronic device 800, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 800.
[0054] Furthermore, the memory 802 may include both an internal storage unit of the electronic device 800 and an external storage device. The memory 802 is used to store application software installed in the electronic device 800 and various data.
[0055] In some embodiments, display 803 can be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. Display 803 is used to display information about electronic device 800 and to display a visual user interface. Components 801-803 of electronic device 800 communicate with each other via a system bus.
[0056] In some embodiments, when the processor 801 executes the data encryption program in the memory 802, the following steps may be implemented: Perform Fourier transform on the data to be encrypted and the preset secret key to obtain phase information of the data to be encrypted and the preset secret key; A phase hologram is generated based on the phase information of the data to be encrypted and the preset key, and a metasurface is designed based on the phase hologram. The metasurface is used to record the phase information of the data to be encrypted and the preset key; When the secret key used to decrypt the metasurface is different from the preset secret key, a false phase hologram that does not contain the phase information of the data to be encrypted is output based on the metasurface.
[0057] It should be understood that, when the processor 801 executes the data encryption program in the memory 802 , in addition to the above functions, it can also implement other functions. For details, please refer to the description of the corresponding method embodiment above.
[0058] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 800 mentioned. The electronic device 800 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, or the like. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices equipped with IOS, Android, Microsoft, or other operating systems. The above-mentioned portable electronic devices may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 800 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0059] Accordingly, an embodiment of the present application also provides a computer-readable storage medium, which is used to store computer-readable programs or instructions. When the program or instructions are executed by a processor, the steps or functions in the data encryption method provided in the above-mentioned method embodiments can be implemented.
[0060] Those skilled in the art will appreciate that all or part of the process steps of the above-described embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a magnetic disk, an optical disk, a read-only memory, or a random access memory.
[0061] The above description is only a preferred specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with this technical field within the technical scope disclosed by the present invention should be covered by the scope of protection of the present invention.
Claims
1. A data encryption method, characterized in that: include: Performing Fourier transform on the data to be encrypted and the preset secret key to obtain phase information of the data to be encrypted and the preset secret key; Generating a phase hologram based on the phase information of the data to be encrypted and the preset key, and designing a metasurface based on the phase hologram, wherein the metasurface is used to record the phase information of the data to be encrypted and the preset key; When the secret key for decrypting the metasurface is different from the preset secret key, a false phase hologram that does not contain the phase information of the data to be encrypted is output based on the metasurface.
2. The data encryption method according to claim 1, wherein: The performing Fourier transform on the data to be encrypted and the preset key to obtain phase information of the data to be encrypted and the preset key includes: Fourier transform is performed on the data to be encrypted, the preset key and the preset initial phase image to obtain phase information of the data to be encrypted and the preset key.
3. The data encryption method according to claim 1, wherein: The generating of a phase hologram based on the phase information of the data to be encrypted and the preset key includes: Acquiring amplitude information of the data to be encrypted, and combining the amplitude information with the phase information to generate frequency domain information to be encrypted; An inverse Fourier transform is performed on the frequency domain information to be encrypted to obtain a phase hologram containing the time domain information of the data to be encrypted and the preset secret key.
4. The data encryption method according to claim 3, wherein: When there are multiple data to be encrypted and multiple preset keys, generating a phase hologram based on phase information of the data to be encrypted and the preset keys includes: Iterative encryption is performed based on the amplitude information of each data to be encrypted and the phase information of each preset key. The encryption formula of the iterative encryption is: in, Encrypt the result for the current iteration, is the encryption result of the previous iteration, A is the current data to be encrypted, and k is the preset feedback indicator.
5. The data encryption method according to claim 1, wherein: The method of designing a metasurface based on the phase hologram comprises: A metasurface whose basic structural unit is a cylinder is used to record the phase information of the phase hologram, wherein different phases are modulated by the radius of the cylinder.
6. The data encryption method according to claim 5, characterized in that: The method of outputting a false phase hologram based on the metasurface that does not contain phase information of the data to be encrypted includes: Phase information of the cylinder on the metasurface is obtained, and the phase information is randomly chaotically processed to obtain a false phase hologram that is different from the phase information of the data to be encrypted.
7. The data encryption method according to claim 1, wherein: Before performing Fourier transform on the encrypted data and the preset secret key, the method includes: The format of the data to be encrypted is converted into a preset format to be encrypted.
8. A data encryption device, characterized in that: include: A phase information acquisition module is used to perform Fourier transform on the data to be encrypted and the preset secret key to obtain phase information of the data to be encrypted and the preset secret key; a metasurface design module, configured to generate a phase hologram based on the phase information of the data to be encrypted and the preset key, and design a metasurface based on the phase hologram, wherein the metasurface is configured to record the phase information of the data to be encrypted and the preset key; A honeypot encryption module is used to output a false phase hologram that does not contain the phase information of the data to be encrypted based on the metasurface when the secret key for decrypting the metasurface is different from the preset secret key.
9. An electronic device, characterized in that: comprising a memory and a processor, wherein, The memory is used to store programs; The processor is coupled to the memory and is configured to execute the program stored in the memory to implement the steps in the data encryption method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps of the data encryption method described in any one of claims 1 to 7.