Thermal control optical encryption method and device, equipment, storage medium and computer program product
By adjusting the temperature on the terahertz metasurface to generate an encrypted password and encrypting confidential information, the problem of reducing security of existing encryption algorithms is solved, and the encryption effect of high flexibility and security is achieved.
Patent Information
- Application Number
- CN202510166112.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-06-13
AI Technical Summary
With the enhancement of the computing power of the equipment, the security of the algorithm gradually decreases, making it difficult to effectively protect data security.
Thermal control optical encryption method is used to emit terahertz light waves on the terahertz metasurface, adjust the temperature of the metasurface according to the encryption requirements, generate the original password and encrypt the confidential information to obtain encrypted data.
By changing the transmittance of terahertz light on the metasurface by precise temperature control, rapid modulation of terahertz signals is achieved, and optical information is encrypted based on the modulation results, greatly improving the flexibility and security of encryption.
Smart Images

Figure CN120150986A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical encryption technology, and particularly to a thermal control optical encryption method, device, equipment, storage medium and computer program product. Background Art
[0002] With the rapid development of information technology, the secure transmission and storage of audio and video data have become an important research field. Traditional encryption technologies, such as software-based encryption algorithms, although can protect data security to a certain extent, but with the enhancement of computing power, the security of the algorithms gradually decreases. Summary of the Invention
[0003] The main purpose of the present application is to provide a thermal control optical encryption method, device, equipment, storage medium and computer program product, aiming to solve the technical problem that the security of the existing software-based encryption algorithm gradually decreases with the enhancement of the computing power of the device.
[0004] To achieve the above purpose, the present application proposes a thermal control optical encryption method, and the thermal control optical encryption method includes:
[0005] When receiving a confidential information and an encryption requirement, emitting terahertz light waves in a specific frequency range to a terahertz metasurface to obtain a first terahertz signal;
[0006] Adjusting the temperature of the terahertz metasurface according to the encryption requirement, and collecting a second terahertz signal generated after the first terahertz signal is modulated by the terahertz metasurface based on the adjustment result;
[0007] Generating an original password according to the first terahertz signal and the second terahertz signal, and encrypting the confidential information with the original password to obtain encrypted data.
[0008] Optionally, a phase change material is covered on the terahertz metasurface, and the phase change material has different electromagnetic characteristics at different temperatures;
[0009] The step of adjusting the temperature of the terahertz metasurface according to the encryption requirement, and collecting the second terahertz signal generated after the first terahertz signal is modulated by the terahertz metasurface based on the adjustment result includes:
[0010] Judging the encryption level of the confidential information according to the encryption requirement, and selecting a corresponding temperature adjustment strategy based on the encryption level;
[0011] Adjusting the temperature of the terahertz metasurface through the temperature adjustment strategy, and in the process of temperature adjustment, collecting the second terahertz signal modulated by the terahertz metasurface in real time.
[0012] Optionally, the step of determining the encryption level of the confidential information according to the encryption requirement and selecting a corresponding temperature adjustment strategy based on the encryption level includes:
[0013] Determine the encryption level of the confidential information according to the encryption requirement;
[0014] If the encryption level is low, use the characteristic temperature point of the terahertz metasurface as the temperature adjustment point and perform temperature adjustment according to a preset adjustment period;
[0015] If the encryption level is medium, divide the temperature adjustment range according to the characteristic temperature point and perform segmented adjustment based on the division result;
[0016] If the encryption level is high, determine a temperature adjustment function according to a preset encryption time and perform temperature adjustment based on the temperature adjustment function.
[0017] Optionally, the step of generating an original password according to the first terahertz signal and the second terahertz signal and encrypting the confidential information with the original password to obtain encrypted data includes:
[0018] Extract the first characteristic information of the first terahertz signal and the second characteristic information of the second terahertz signal;
[0019] Generate an analog electrical signal according to the first characteristic information and the second characteristic information, and convert the analog electrical signal into a data signal through an analog-to-digital conversion processing circuit to obtain an original password;
[0020] Determine an encryption algorithm according to the data type of the confidential information;
[0021] Use the original password as the key of the encryption algorithm to encrypt the confidential information to obtain encrypted data.
[0022] Optionally, the step of generating an analog electrical signal according to the first characteristic information and the second characteristic information, and converting the analog electrical signal into a data signal through an analog-to-digital conversion processing circuit to obtain an original password includes:
[0023] Quantize the first characteristic information and the second characteristic information to obtain quantized third characteristic information;
[0024] Establish a mapping relationship between the third characteristic information and a voltage value, and generate an analog electrical signal according to the mapping relationship;
[0025] Convert the analog electrical signal into a data signal based on an analog-to-digital conversion processing circuit and perform encoding processing on the data signal to obtain an original password.
[0026] Optionally, after the step of generating an original password according to the first terahertz signal and the second terahertz signal, and encrypting the confidential information with the original password to obtain encrypted data, the method further includes:
[0027] Obtaining temperature parameters recorded when adjusting the temperature of the terahertz metasurface;
[0028] Establishing a mapping relationship between the encrypted data and the temperature parameters, and adding the mapping relationship to the header of the encrypted data through encrypted metadata to generate an encrypted data packet to be sent.
[0029] In addition, to achieve the above object, the present application further provides a thermally controlled optical encryption device, which includes:
[0030] A signal generation module, configured to emit terahertz light waves in a specific frequency range onto the terahertz metasurface when receiving confidential information and an encryption requirement, to obtain a first terahertz signal;
[0031] A signal modulation module, configured to adjust the temperature of the terahertz metasurface according to the encryption requirement, and collect a second terahertz signal generated after the first terahertz signal is modulated by the terahertz metasurface based on the adjustment result;
[0032] An information encryption module, configured to generate an original password according to the first terahertz signal and the second terahertz signal, and encrypt the confidential information with the original password to obtain encrypted data.
[0033] In addition, to achieve the above object, the present application further provides a thermally controlled optical encryption device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the thermally controlled optical encryption method as described above.
[0034] In addition, to achieve the above object, the present application further provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the thermally controlled optical encryption method as described above are implemented.
[0035] In addition, to achieve the above object, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the thermally controlled optical encryption method as described above are implemented.
[0036] In the present application, when receiving confidential information and encryption requirements, a terahertz light wave within a specific frequency range is emitted onto a terahertz metasurface to obtain a first terahertz signal; the temperature of the terahertz metasurface is adjusted according to the encryption requirements, and based on the adjustment result, a second terahertz signal generated after the first terahertz signal is modulated by the terahertz metasurface is collected; an original password is generated according to the first terahertz signal and the second terahertz signal, and the confidential information is encrypted with the original password to obtain encrypted data. The present application changes the transmittance of terahertz light on the metasurface through precise temperature control, realizes fast modulation of terahertz signals, and completes the encryption of optical information according to the modulation result, greatly improving the flexibility and security of encryption. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0039] Figure 1 It is a schematic flowchart of the first embodiment of the thermal control optical encryption method of the present application;
[0040] Figure 2 It is a schematic flowchart of the second embodiment of the thermal control optical encryption method of the present application;
[0041] Figure 3 It is a schematic flowchart of the third embodiment of the thermal control optical encryption method of the present application;
[0042] Figure 4 It is a schematic diagram of the module structure of the thermal control optical encryption device in the embodiment of the present application;
[0043] Figure 5 It is a schematic diagram of the device structure of the hardware operating environment involved in the thermal control optical encryption method in the embodiment of the present application.
[0044] The implementation, functional features, and advantages of the object of the present application will be further described in combination with the embodiments with reference to the drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0045] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0046] To better understand the technical solution of this application, the following will be described in detail in conjunction with the accompanying drawings of the specification and specific embodiments.
[0047] The main solution of the embodiment of this application is: when receiving confidential information and an encryption requirement, emit terahertz light waves in a specific frequency range onto a terahertz metasurface to obtain a first terahertz signal; adjust the temperature of the terahertz metasurface according to the encryption requirement, and collect the second terahertz signal generated after the first terahertz signal is modulated by the terahertz metasurface based on the adjustment result; generate an original password according to the first terahertz signal and the second terahertz signal, and encrypt the confidential information with the original password to obtain encrypted data.
[0048] With the rapid development of information technology, the secure transmission and storage of audio-visual data have become an important research field. Traditional encryption technologies, such as software-based encryption algorithms, although can protect data security to a certain extent, but with the enhancement of computing power, the security of these algorithms has been gradually challenged. Therefore, developing a physical principle-based encryption method has become an urgent need. And terahertz metasurface technology is an emerging artificial electromagnetic material technology that regulates electromagnetic waves at the sub-wavelength scale, and it shows broad application potential in fields such as medical imaging, broadband communication, and radar detection. The electromagnetic waves in the terahertz band have the characteristics of strong penetrability, short wavelength, and rich spectral information, making it particularly important in the field of optical encryption. In particular, terahertz metasurfaces can precisely control the amplitude, phase, and polarization of electromagnetic waves by adjusting the unit structure, providing new possibilities for the development of dynamically tunable metasurfaces. These metasurfaces can dynamically adjust their optical properties according to changes in external conditions (such as temperature, electric field, etc.) to realize the encryption and decryption of optical information.
[0049] Therefore, this application provides a thermally controlled optical encryption method based on terahertz metasurfaces. This method utilizes the interaction between terahertz optical electromagnetic waves and specific materials to achieve the encryption and decryption of optical information through temperature control.
[0050] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program running functions, such as a computer, etc., or an electronic device capable of implementing the above functions. The following takes the terahertz optical encryption device as an example to illustrate this embodiment and the following embodiments.
[0051] Based on this, the embodiment of this application provides a thermally controlled optical encryption method, referring to Figure 1 , Figure 1 is a schematic flowchart of the first embodiment of the thermally controlled optical encryption method of this application.
[0052] In this embodiment, the thermal control optical encryption method includes:
[0053] Step S10, when receiving the confidential information and encryption requirements, emit terahertz light waves in a specific frequency range onto the terahertz metasurface to obtain a first terahertz signal.
[0054] It should be noted that terahertz light waves are electromagnetic waves with frequencies ranging from 0.1 to 10 terahertz (THz), in the frequency band between microwaves and infrared rays, and have characteristics such as strong penetrability, short wavelengths, and rich spectral information. The terahertz metasurface is a two-dimensional material structure of a human, whose thickness is much smaller than the wavelength of terahertz light waves. By adjusting the microscopic structure of the metasurface, the amplitude, phase, polarization and other characteristics of terahertz light waves can be flexibly regulated to achieve optical functions that are difficult to achieve with traditional materials, such as beam manipulation, imaging, invisibility, etc. The first terahertz signal is the initial electromagnetic signal generated by the interaction between the terahertz light wave emitted onto the terahertz metasurface and the light wave through the metasurface.
[0055] It should be understood that the confidential information can be information that needs to be kept confidential obtained through specific communication interfaces, storage device readings, or other data input methods. These information can come from various data sources, such as data collected by sensors, confidential content input by users, key files transmitted over the network, etc. Encryption requirements include specific encryption objectives, requirements, and constraints, and can provide information such as determining the type of encryption algorithm, encryption intensity requirements, applicable communication protocols, signal transmission methods, etc. according to the encryption requirements.
[0056] It can be understood that the encryption requirements can be an encryption combination selected by the user according to the default options provided by the device, or a specific requirement combination manually configured by the user.
[0057] It can be understood that when the terahertz light waves in the selected frequency range are emitted onto the terahertz metasurface, the terahertz metasurface will regulate the incident terahertz light waves based on its special microscopic structure and design. This regulation can change the propagation characteristics of the light wave, such as changing the propagation direction, phase distribution, or amplitude size of the light wave. After being regulated by the terahertz metasurface, the initial optical information can be obtained, which is convenient for providing a reference for subsequent modulation.
[0058] Step S20, adjust the temperature of the terahertz metasurface according to the encryption requirements, and collect the second terahertz signal generated after the first terahertz signal is modulated by the terahertz metasurface based on the adjustment result.
[0059] It should be noted that the second terahertz signal is the signal generated after the first terahertz signal is modulated again by the terahertz metasurface after temperature adjustment. Compared with the first terahertz signal, the second terahertz signal has more complex modulation information due to the temperature change of the metasurface.
[0060] It should be understood that the terahertz metasurface is covered with a phase change material, and the phase change material has different electromagnetic properties at different temperatures, such as vanadium dioxide (VO 2 2). A metasurface structure based on a phase change material is adopted. The unit design of the metasurface can realize the regulation of the reflectivity, absorptivity or phase of terahertz waves.
[0061] It can be understood that different encryption requirements may correspond to different temperature adjustment methods. For example, a high encryption strength requirement may require a large temperature change to introduce more complex signal modulation. After adjusting the temperature of the metasurface, its modulation characteristics for terahertz light waves change. At this time, let the first terahertz signal pass through the terahertz metasurface again. The metasurface performs secondary modulation on the first terahertz signal to generate a second terahertz signal carrying more encrypted information.
[0062] In one example, a quantum cascade laser can be used as the terahertz wave emission source. The terahertz metasurface is covered with a phase change material, such as vanadium oxide, which has different electromagnetic properties at different temperatures. An accurate temperature controller, such as a PID controller, is used to achieve precise control of the temperature of the terahertz metasurface. After the terahertz wave is emitted onto the terahertz metasurface, the terahertz signal modulated by the metasurface is collected and received. Subsequently, the temperature of the terahertz metasurface is adjusted through the temperature control system, the change in the electromagnetic properties of the phase change material is observed, and the modulated optical information is received through an optical information receiver for encryption. After the encryption is completed, the temperature setting of the temperature control system can be changed to restore the electromagnetic properties of the phase change material to the original state to verify the decryption effect.
[0063] Step S30, generate an original password according to the first terahertz signal and the second terahertz signal, and encrypt the confidential information with the original password to obtain encrypted data.
[0064] It should be noted that the original password is the core key for the encryption process of encrypting confidential information generated according to the first terahertz signal and the second terahertz signal, and needs to be obtained through specific algorithms according to the characteristics of the terahertz signal (such as the change rules of frequency, phase, amplitude, etc.). The encrypted data is the ciphertext data obtained after the confidential information is encrypted with the original password.
[0065] In one example, a high-sensitivity resonant tunneling diode (RTD) detector or a terahertz detection array is used to receive the terahertz signal after being modulated by the metasurface, which triggers the formation of electron flow by the carriers inside the detector. The peripheral analog-to-digital conversion processing circuit is connected to collect the electron flow to form an analog electrical signal, which is further converted into a digital signal to form the final password. Suppose the device extracts through a signal analysis device that the frequency change range of the first terahertz signal is [0.5 THz - 0.6 THz], and there is a specific fluctuation law of the phase change between 0 and 2π; the amplitude of the second terahertz signal changes between [1 mV - 3 mV], and there is a specific frequency modulation mode. First, using a pre-set password generation algorithm, information such as the boundary values of the frequency range, the key nodes of the phase fluctuation, and the extreme values of the amplitude are combined and encoded to generate an original password composed of numbers and letters, such as "AbC345Thz01". At the same time, the AES (Advanced Encryption Standard) symmetric encryption algorithm is selected, and the generated "AbC345Thz01" is used as the key to encrypt the registration information. The encryption algorithm will perform complex mathematical transformations on each data block in the transaction record according to the AES algorithm rules in combination with the original password, and finally convert the transaction record into a string of seemingly random encrypted data and store it in the database.
[0066] Furthermore, in order to trace or verify the encrypted data when needed, the specific situation of the encryption process can be understood through the temperature parameters to ensure the authenticity and integrity of the encrypted data. After the step S30, the following steps are further included:
[0067] Obtain the temperature parameters recorded when adjusting the temperature of the terahertz metasurface; establish a mapping relationship between the encrypted data and the temperature parameters, and add the mapping relationship to the head of the encrypted data through encrypted metadata to generate an encrypted data packet to be sent.
[0068] It should be noted that the temperature parameters are the specific temperature values recorded during the process of adjusting the temperature of the terahertz metasurface, and these parameters reflect the temperature conditions of the metasurface in different states. Such as heating time, temperature nodes, etc. The mapping relationship refers to the corresponding connection between the encrypted data and the corresponding temperature parameters, which clarifies at what temperature state of the terahertz metasurface each piece of encrypted data is generated, and helps to restore the encryption process during decryption. Encrypted metadata is data used to describe the characteristics and relevant information of encrypted data, and is special data used to add the mapping relationship between encrypted data and temperature parameters to the head of the encrypted data, which contains information such as the structure and length of the mapping relationship to ensure that the receiving party can correctly parse it. The encrypted data packet is the overall data unit finally used for transmission, and the receiving party can perform decryption operations according to the information in the packet after receiving the packet.
[0069] Specifically, first obtain the temperature parameters recorded when adjusting the temperature of the terahertz metasurface, then establish a mapping relationship between the encrypted data and the temperature parameters to clarify the corresponding relationship between the encrypted data and the temperature state of the metasurface. Next, use the encrypted metadata to add the mapping relationship to the header of the encrypted data, integrate the encrypted data with the related decryption key information, and generate the encrypted data packet to be sent. After receiving the encrypted data packet, the receiving party can decrypt it accurately based on the mapping relationship and encrypted metadata in the header.
[0070] In this embodiment, when receiving the confidential information and the encryption requirement, emit terahertz light waves in a specific frequency range onto the terahertz metasurface to obtain a first terahertz signal; adjust the temperature of the terahertz metasurface according to the encryption requirement, and collect the second terahertz signal generated after the first terahertz signal is modulated by the terahertz metasurface based on the adjustment result; generate an original password according to the first terahertz signal and the second terahertz signal, and encrypt the confidential information with the original password to obtain encrypted data. By controlling the temperature, change the transmittance of terahertz light on the metasurface, realize the fast modulation of terahertz signals, and complete the encryption of optical information according to the modulation result.
[0071] Refer to Figure 2 , Figure 2 FIG. is a schematic flowchart of the second embodiment of the thermal control optical encryption method of the present application. Based on the above first embodiment, the second embodiment of the thermal control optical encryption method of the present application is proposed.
[0072] In the second embodiment, the step S20 includes:
[0073] Step S201, judge the encryption level of the confidential information according to the encryption requirement, and select a corresponding temperature adjustment strategy based on the encryption level.
[0074] It should be noted that the temperature adjustment strategy is a scheme for adjusting the temperature of the terahertz metasurface in the application for different encryption levels. It includes parameter settings such as the temperature change range, adjustment frequency, heating and cooling rates, etc.
[0075] It should be understood that the encryption level can be the encryption degree of the confidential information determined by the device according to the encryption requirement. Commonly, such as low, medium, and high levels, which respectively correspond to different intensities of encryption processing to match the security requirements of different confidential information. A high encryption level may require a more complex temperature change pattern, including a larger temperature change range and more frequent adjustments; a low encryption level can adopt a relatively simple temperature adjustment method, such as a smaller temperature change range and a lower adjustment frequency. In this way, the temperature adjustment is adapted to the encryption requirement to achieve the best encryption effect.
[0076] Further, in order to adopt different temperature adjustment methods for confidential information of different importance levels, ensure high-security encryption of high-level information, avoid resource waste caused by over-encryption of low-level information, and improve encryption efficiency and cost-effectiveness. The step S201 may include:
[0077] Judging the encryption level of the confidential information according to the encryption requirement; if the encryption level is low, using the characteristic temperature point of the terahertz metasurface as the temperature adjustment point and performing temperature adjustment according to a preset adjustment period; if the encryption level is medium, dividing the temperature adjustment range into regions according to the characteristic temperature point and performing segmented adjustment based on the division result; if the encryption level is high, determining a temperature adjustment function according to a preset encryption time and performing temperature adjustment based on the temperature adjustment function.
[0078] It should be noted that the characteristic temperature point is a specific temperature value in the terahertz metasurface that is closely related to the property change of the phase change material. Taking vanadium oxide (VO 2 ) as an example, when the temperature is lower than the phase change temperature of VO 2 (about 67 °C), the metasurface based on VO 2 can achieve a reflectivity of more than 90% at low temperature. At this time, the signal intensity received by the terahertz detector is relatively high, and the phase and polarization state of the signal remain unchanged. When the temperature rises above the phase change temperature of VO 2 (about 67 °C), the reflectivity of the metasurface decreases significantly and the absorption rate increases. At this time, the signal intensity received by the terahertz detector weakens significantly and even approaches zero. The preset adjustment period is a preset time interval for temperature adjustment of the terahertz metasurface, such as adjusting the temperature every 5 minutes. The temperature adjustment range is the temperature interval set when adjusting the temperature of the terahertz metasurface. The temperature adjustment function is a mathematical function determined according to the encryption requirement and the characteristics of the confidential information, and is used to precisely control the change law of the terahertz metasurface temperature with time, such as a trigonometric function.
[0079] In an example, an e-commerce company wants to encrypt the ordinary browsing records (confidential information) of users. Since the sensitivity of this type of information is relatively low (encryption requirement), it is judged to use low-level encryption after judgment. It is known that the characteristic temperature point of the phase change material in the terahertz metasurface is 67 °C, and the preset adjustment period is 10 minutes. Then, during the encryption process, the temperature of the terahertz metasurface is adjusted to 67 °C every 5 minutes.
[0080] If an e-commerce company wants to encrypt users' payment information (confidential information), due to its high sensitivity related to financial security (encryption requirement), it is determined to be medium-level encryption. The set temperature adjustment range is 50°C - 80°C. Taking the characteristic temperature point of 67°C as the boundary, it is divided into two regions: 50°C - 67°C and 67°C - 80°C. In the 50°C - 67°C region, the temperature rises by 1°C per minute; in the 67°C - 80°C region, the temperature drops by 1.5°C per minute, and segmented adjustment is carried out accordingly.
[0081] For the core business strategic planning documents of an e-commerce company (confidential information), due to their extremely critical nature (encryption requirement), they are determined to be high-level encryption. Assuming the preset encryption time is 1 hour, the calculated temperature adjustment function is T(t) = 60 + 10sin(10t), where T is the temperature and t is the time, with the unit of minute. Within the preset encryption time, the temperature of the terahertz metasurface is continuously changed according to this function to achieve high-strength encryption.
[0082] Step S202: Adjust the temperature of the terahertz metasurface through the temperature adjustment strategy, and during the temperature adjustment process, collect in real time the second terahertz signal modulated by the terahertz metasurface.
[0083] It can be understood that during the temperature adjustment process, terahertz light waves are continuously emitted to the terahertz metasurface. Due to the change in the temperature of the metasurface, the electromagnetic properties of the phase change material change, and the modulation effect on the terahertz light waves also changes accordingly, thus generating the second terahertz signal. Using special signal collection devices, such as high-sensitivity resonant tunneling diode (RTD) detectors or terahertz detection arrays, collect these modulated second terahertz signals in real time. The collected signals will show different characteristics with temperature changes, and these changes contain the key information required for encryption.
[0084] In this embodiment, judge the encryption level of the confidential information according to the encryption requirement, and select the corresponding temperature adjustment strategy based on the encryption level; adjust the temperature of the terahertz metasurface through the temperature adjustment strategy, and during the temperature adjustment process, collect in real time the second terahertz signal modulated by the terahertz metasurface. By adjusting the temperature to change the electromagnetic properties of the phase change material, and then modulating the terahertz signal, diverse encryption keys can be generated according to different encryption requirements, improving the flexibility of encryption.
[0085] Refer to Figure 3 , Figure 3 which is the flowchart of the third embodiment of the thermal control optical encryption method of this application. Based on the above second embodiment, the third embodiment of the thermal control optical encryption method of this application is proposed.
[0086] In the third embodiment, the step S30 includes:
[0087] Step S301, extract the first feature information of the first terahertz signal and the second feature information of the second terahertz signal.
[0088] It can be understood that the first feature information and the second feature information are the information extracted from the first terahertz signal and the second terahertz signal, which are representative and can reflect the characteristics of the signal, including the frequency components, amplitude magnitudes, phase changes, polarization characteristics, etc. of the signal.
[0089] It should be understood that after obtaining the signal, it is necessary to preprocess the signal according to the characteristics of the signal and the requirements of subsequent extraction operations, filter out noise, and amplify the signal intensity to more accurately extract the feature information.
[0090] Step S302, generate an analog electrical signal according to the first feature information and the second feature information, and convert the analog electrical signal into a data signal through an analog-to-digital conversion processing circuit to obtain the original password.
[0091] It needs to be understood that an analog electrical signal is a continuously varying electrical signal, and its parameters such as the amplitude, frequency, and phase of the electrical signal can simulate the characteristics of the original signal. The analog signal can be converted into a digital signal through an analog-to-digital conversion processing circuit. The analog-to-digital conversion processing circuit converts the continuously varying analog quantity into a discrete digital quantity through operations such as sampling, quantization, and encoding of the analog signal, so as to be processed and stored by a computer or other digital devices.
[0092] Furthermore, in order to ensure the one-to-one correspondence between the analog electrical signal and the feature information and reduce the errors and uncertainties in the signal generation process. The step S302 may include:
[0093] Quantize the first feature information and the second feature information to obtain the quantized third feature information; establish a mapping relationship between the third feature information and the voltage value, and generate an analog electrical signal according to the mapping relationship; based on the analog-to-digital conversion processing circuit, convert the analog electrical signal into a data signal, and perform encoding processing on the data signal to obtain the original password.
[0094] In one example, a quantum cascade laser emits terahertz light waves in a specific frequency range to a terahertz metasurface, generating a first terahertz signal. After detection and analysis, its first characteristic information shows that at a certain moment, the signal frequency is 0.8 THz, the amplitude is 2 mV, the phase is at an initial phase offset of 0.2π radians, and the polarization direction is horizontal polarization. Subsequently, the temperature of the terahertz metasurface is adjusted to obtain a second terahertz signal. Its second characteristic information shows that the frequency becomes 0.75 THz, the amplitude drops to 1.5 mV, the phase offset reaches 0.5π radians, and the polarization direction becomes right-handed circular polarization. According to the established rules, the frequency information is encoded as a change in voltage amplitude. For example, it is set that for every 0.05 THz decrease in frequency, the voltage amplitude decreases by 0.5 V; the phase information is reflected by adjusting the phase of the electrical signal. For every 0.1π radian offset of the initial phase, the phase of the electrical signal is correspondingly offset by 5°. According to the rules, when the generated analog electrical signal changes in frequency, the voltage amplitude changes from 4 V corresponding to 0.8 THz to 3.5 V as the frequency drops to 0.75 THz; the phase changes from the initial 0° to 10° as the phase of the first terahertz signal is offset by 0.2π radians, and at the same time, the phase of the second terahertz signal is offset to 0.5π radians and finally becomes 25°, obtaining an analog electrical signal. Then the generated analog electrical signal is input into an analog-to-digital conversion processing circuit. The circuit samples the amplitude of the analog electrical signal at a sampling interval of 1 microsecond and quantizes the sampled amplitude into 8 levels. For example, a voltage amplitude of 4 V is quantized into level 6, and 3.5 V is quantized into level 5. After sampling and quantization, the results are encoded, converting these quantization levels into binary digital codes, and then processing the obtained data signal according to an encryption algorithm to obtain the original password.
[0095] Step S303, determine the encryption algorithm according to the data type of the confidential information.
[0096] It can be understood that an encryption algorithm is a set of mathematical methods or rules used to convert plaintext (the original confidential information) into ciphertext (encrypted data), such as symmetric encryption algorithms, asymmetric encryption algorithms, hash algorithms, etc.
[0097] It should be understood that for different data types, their characteristics and structures vary. For example, text data is stored in the form of character encoding, image data consists of pixel matrices, audio data is represented as the digital form of sound waves, and video data is a combination of image sequences and audio. The data type is determined by analyzing features such as the file format, header information, and data structure of the data. Of course, the corresponding data type can also be selected in advance in the encryption requirements. For example, for text data, the AES symmetric encryption algorithm can be selected. For image data, an image encryption algorithm based on chaotic mapping is adopted, and the randomness and initial value sensitivity of the chaotic system are used to double-encrypt the pixel positions and gray values of the image. For audio data, considering the real-time requirements of audio data, a lightweight stream encryption algorithm can be selected. This algorithm encrypts each bit sequentially according to the stream order of the audio data, ensuring the encryption effect while ensuring the real-time nature of the audio data during the encryption and decryption processes and not affecting subsequent playback and processing.
[0098] Step S304: Use the original password as the key of the encryption algorithm to encrypt the confidential information to obtain encrypted data.
[0099] It can be understood that by changing the temperature setting of the temperature control system, the electromagnetic characteristics of the phase change material can be restored to the original state to verify the decryption effect. There are also two ways to decrypt the encrypted data. First, the recorded temperature parameters can be obtained from the pre-set storage module of the temperature control system, and then the original key is generated in the above steps to perform the reverse operation to decrypt the encrypted data. Second, the generated original password can be directly recorded, and when decryption is required, the reverse operation is performed on the encrypted data to decrypt it.
[0100] In this embodiment, the first characteristic information of the first terahertz signal and the second characteristic information of the second terahertz signal are extracted; an analog electrical signal is generated according to the first characteristic information and the second characteristic information, and the analog electrical signal is converted into a data signal through an analog-to-digital conversion processing circuit to obtain the original password; the encryption algorithm is determined according to the data type of the confidential information; the original password is used as the key of the encryption algorithm to encrypt the confidential information to obtain encrypted data. By using the characteristic information of the extracted first terahertz signal and second terahertz signal as the basis for generating the original password, the differences of terahertz signals in different states are fully utilized, making the generated original password unique and random, and increasing the complexity of the password.
[0101] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the thermal control optical encryption method of this application. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.
[0102] The present application also provides a thermal control optical encryption device. Please refer to Figure 4 and the thermal control optical encryption device includes:
[0103] A signal generation module 10, configured to emit terahertz light waves in a specific frequency range onto a terahertz metasurface when receiving a confidential information and an encryption requirement, so as to obtain a first terahertz signal;
[0104] A signal modulation module 20, configured to adjust the temperature of the terahertz metasurface according to the encryption requirement, and collect a second terahertz signal generated after the first terahertz signal is modulated by the terahertz metasurface based on the adjustment result;
[0105] An information encryption module 30, configured to generate an original password according to the first terahertz signal and the second terahertz signal, and encrypt the confidential information with the original password to obtain encrypted data.
[0106] The thermal control optical encryption device provided by the present application adopts the thermal control optical encryption method in the above embodiment, and can solve the technical problem that the security of the existing software-based encryption algorithm gradually decreases as the computing power of the device increases. Compared with the prior art, the beneficial effects of the thermal control optical encryption device provided by the present application are the same as those of the thermal control optical encryption method provided by the above embodiment, and other technical features in the thermal control optical encryption device are the same as those disclosed in the method of the above embodiment, which will not be elaborated here.
[0107] The present application provides a thermal control optical encryption device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the thermal control optical encryption method in the first embodiment above.
[0108] Next, refer to Figure 5 , which shows a schematic structural diagram of a thermal control optical encryption device suitable for implementing the embodiments of the present application. The thermal control optical encryption device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5The illustrated thermal control optical encryption device is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
[0109] As Figure 5 shown, the thermal control optical encryption device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to a program stored in the read-only memory 1002 or a program loaded from the storage device 1003 into the random access memory 1004. In the random access memory 1004, various programs and data required for the operation of the thermal control optical encryption device are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. The input / output interface 1006 is also connected to the bus. Generally, the following systems may be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the thermal control optical encryption device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a thermal control optical encryption device having various systems, it should be understood that it is not required to implement or have all the shown systems. More or fewer systems may be alternatively implemented or had.
[0110] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of the embodiments disclosed in the present application are executed.
[0111] The thermal control optical encryption device provided by the present application adopts the thermal control optical encryption method in the above-mentioned embodiments, and can solve the technical problem that the security of the existing software-based encryption algorithm gradually decreases as the computing power of the device increases. Compared with the prior art, the beneficial effects of the thermal control optical encryption device provided by the present application are the same as those of the thermal control optical encryption method provided by the above-mentioned embodiments, and other technical features in the thermal control optical encryption device are the same as the features disclosed in the method of the previous embodiment, and will not be elaborated here.
[0112] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.
[0113] As mentioned above, the above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed in this application can easily think of changes or substitutions, which should all be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
[0114] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the thermal control optical encryption method in the above embodiments.
[0115] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or combined with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0116] The above computer-readable storage medium can be included in the thermal control optical encryption device; or it can exist separately without being assembled into the thermal control optical encryption device.
[0117] The above computer-readable storage medium carries one or more programs which, when executed by the thermal control optical encryption device, cause the thermal control optical encryption device to perform the thermal control optical encryption method described above.
[0118] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0119] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks can occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0120] The modules described in the embodiments of this application can be implemented in software or in hardware. In some cases, the name of the module does not constitute a limitation on the unit itself.
[0121] The readable storage medium provided by this application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned thermal control optical encryption method, which can solve the technical problem that the security of existing software-based encryption algorithms gradually decreases as the computing power of devices increases. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this application are the same as those of the thermal control optical encryption method provided by the above embodiment, and will not be elaborated here.
[0122] This application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the steps of the thermal control optical encryption method as described above.
[0123] The computer program product provided by this application can solve the technical problem that the security of existing software-based encryption algorithms gradually decreases as the computing power of devices increases. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as those of the thermal control optical encryption method provided by the above embodiment, and will not be elaborated here.
[0124] The above are only partial embodiments of this application, and thus do not limit the patent scope of this application. Any equivalent structural transformation made under the technical concept of this application by using the content of the specification and drawings of this application, or any direct / indirect application in other related technical fields, is included in the patent protection scope of this application.
Claims
1. A thermal control optical encryption method, characterized in that: The thermal control optical encryption method comprises: Upon receiving confidential information and encryption requirements, terahertz light waves in a specific frequency range are emitted onto the terahertz metasurface to obtain a first terahertz signal; Adjusting the temperature of the terahertz metasurface according to the encryption requirement, and collecting a second terahertz signal generated after the first terahertz signal is modulated by the terahertz metasurface based on the adjustment result; An original password is generated according to the first terahertz signal and the second terahertz signal, and the confidential information is encrypted by the original password to obtain encrypted data.
2. The thermal control optical encryption method according to claim 1, characterized in that: The terahertz super surface is covered with a phase change material, and the phase change material has different electromagnetic properties at different temperatures; The step of adjusting the temperature of the terahertz metasurface according to the encryption requirement, and collecting a second terahertz signal generated after the first terahertz signal is modulated by the terahertz metasurface based on the adjustment result, comprises: Determining the encryption level of the confidential information according to the encryption requirement, and selecting a corresponding temperature adjustment strategy based on the encryption level; The temperature of the terahertz metasurface is adjusted by the temperature adjustment strategy, and during the temperature adjustment process, a second terahertz signal modulated by the terahertz metasurface is collected in real time.
3. The thermal control optical encryption method according to claim 2, characterized in that: The step of determining the encryption level of the confidential information according to the encryption requirement and selecting a corresponding temperature adjustment strategy based on the encryption level includes: Determining the encryption level of the confidential information according to the encryption requirement; If the encryption level is a low level, the characteristic temperature point of the terahertz metasurface is used as a temperature adjustment point, and the temperature is adjusted according to a preset adjustment period; If the encryption level is medium, the temperature adjustment range is divided into regions according to the characteristic temperature points, and segmented adjustment is performed based on the division results; If the encryption level is a high level, a temperature adjustment function is determined according to a preset encryption time, and temperature adjustment is performed based on the temperature adjustment function.
4. The thermal control optical encryption method according to claim 1, characterized in that: The step of generating an original password according to the first terahertz signal and the second terahertz signal, and encrypting the confidential information by the original password to obtain encrypted data comprises: extracting first characteristic information of the first terahertz signal and second characteristic information of the second terahertz signal; Generate an analog electrical signal according to the first characteristic information and the second characteristic information, and convert the analog electrical signal into a data signal through an analog-to-digital conversion processing circuit to obtain an original password; Determining an encryption algorithm according to the data type of the confidential information; The original password is used as the key of the encryption algorithm to encrypt the confidential information to obtain encrypted data.
5. The thermal control optical encryption method according to claim 4, characterized in that: The step of generating an analog electrical signal according to the first characteristic information and the second characteristic information, and converting the analog electrical signal into a data signal through an analog-to-digital conversion processing circuit to obtain the original password includes: quantizing the first feature information and the second feature information to obtain quantized third feature information; Establishing a mapping relationship between the third characteristic information and the voltage value, and generating an analog electrical signal according to the mapping relationship; The analog electrical signal is converted into a data signal based on an analog-to-digital conversion processing circuit, and the data signal is encoded to obtain an original password.
6. The thermal control optical encryption method according to any one of claims 1 to 5, characterized in that: After the step of generating an original password according to the first terahertz signal and the second terahertz signal, and encrypting the confidential information by the original password to obtain encrypted data, the method further includes: Acquiring temperature parameters recorded when adjusting the temperature of the terahertz metasurface; A mapping relationship between the encrypted data and the temperature parameter is established, and the mapping relationship is added to the header of the encrypted data through encryption metadata to generate an encrypted data packet to be sent.
7. A thermally controlled optical encryption device, characterized in that: The device comprises: A signal generation module, used for transmitting a terahertz light wave in a specific frequency range onto the terahertz metasurface to obtain a first terahertz signal when receiving confidential information and encryption requirements; A signal modulation module, configured to adjust the temperature of the terahertz metasurface according to the encryption requirement, and collect a second terahertz signal generated after the first terahertz signal is modulated by the terahertz metasurface based on the adjustment result; The information encryption module is used to generate an original password according to the first terahertz signal and the second terahertz signal, and encrypt the confidential information by using the original password to obtain encrypted data.
8. A thermally controlled optical encryption device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the thermal-controlled optical encryption method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the thermal-controlled optical encryption method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the thermally controlled optical encryption method according to any one of claims 1 to 6 are implemented.
