Dynamic key generation method and device, storage medium and electronic device

By converting the data to be encrypted into the frequency parameters of the beam and using the Raman effect to generate a dynamic key, the risk of cracking caused by fixed key generation rules in the existing technology is solved, and higher data transmission security is achieved.

CN114268436BActive Publication Date: 2024-09-03CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111633661.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-09-03
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

In existing data encryption algorithms, the form of public key and private key pair is relatively simple, and the rules for key generation are relatively fixed, resulting in the risk of key cracking.

Method used

By converting the data to be encrypted into the frequency parameters of the beam, controlling the beam to illuminate the target inhomogeneous material, generating the type and amount of scattered light, dynamically generating keys for encryption based on these parameters, and utilizing the atomic simple harmonics in the Raman effect Vibrating and scattered light frequencies generate dynamic keys.

Benefits of technology

It improves the security and unpredictability of keys, reduces the risk of key cracking, and enhances the security of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114268436B
    Figure CN114268436B
Patent Text Reader

Abstract

The present invention discloses a method and device for generating a dynamic key, a storage medium and an electronic device, the method comprising: converting the data to be encrypted into the frequency parameter of a light beam, wherein the frequency parameter is within the frequency range of visible light; controlling the light beam to irradiate the target inhomogeneous material to obtain the type and amount of scattered light corresponding to the frequency light beam; and generating a dynamic key for encrypting the data to be encrypted according to the type and amount of scattered light. The above technical solution solves the problem in the prior art that the public key and private key pair of the data encryption algorithm are relatively single in form, the key generation rules are relatively fixed, and the key has the risk of being cracked.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a method and device for generating a dynamic key, a storage medium and an electronic device. Background Art

[0002] With the development of information society, the importance of maintaining data security in the information field is becoming increasingly important, especially the security of transmitted data. In order to ensure the security of transmitted data, a highly secure data encryption algorithm must be designed. Through the data encryption algorithm, data leakage can be effectively prevented and data security can be better maintained.

[0003] In traditional data encryption algorithms, before transmitting data, the data server and client must determine the key in advance, and then both the server and the client must keep the key. If the key of one party is leaked, the transmitted data information will be insecure. Figure 1 As shown, Figure 1 This is a flow chart of an existing encryption algorithm of an embodiment of the present invention. The form of the public key and private key pair is relatively simple, and the rules for key generation are relatively fixed. The key is either generated after symmetric encryption or asymmetric encryption, which leads to the risk of key cracking.

[0004] In the prior art, the public key and private key pairs of data encryption algorithms are relatively simple in form, and the rules for key generation are relatively fixed, which results in the risk of key cracking. Summary of the invention

[0005] The embodiments of the present invention provide a method and device for generating a dynamic key, a storage medium and an electronic device, so as to at least solve the problem in the prior art that the public key and private key pair of the data encryption algorithm are relatively simple in form, the rules for key generation are relatively fixed, and the key is at risk of being cracked.

[0006] According to one embodiment of the present invention, there is provided a method for generating a dynamic key, comprising: converting data to be encrypted into frequency parameters of a light beam, wherein the frequency parameters are within the frequency range of visible light; controlling the light beam to irradiate a target inhomogeneous material to obtain a type of scattered light and an amount of scattered light corresponding to the light beam; and generating a dynamic key for encrypting the data to be encrypted according to the type of scattered light and the amount of scattered light.

[0007] In an exemplary embodiment, a dynamic key for encrypting the data to be encrypted is generated based on the type of the scattered light and the amount of the scattered light, including: determining the frequency of the scattered light based on the simple harmonic vibration of atoms of the target inhomogeneous material after the light beam irradiates the target inhomogeneous material, and determining the total number of preset spectral lines in the scattered light based on the type of the scattered light and the amount of the scattered light; generating a dynamic key for encrypting the data to be encrypted based on the frequency of the scattered light and the total number of preset spectral lines in the scattered light.

[0008] In an exemplary embodiment, a dynamic key for encrypting the data to be encrypted is generated based on the frequency of the scattered light and the total number of preset spectral lines in the scattered light, including: obtaining atomic simple harmonic vibration coordinates corresponding to the simple harmonic vibration of atoms in the target inhomogeneous material; using the atomic simple harmonic vibration coordinates, the frequency of the scattered light and the total number of preset spectral lines as parameters of an encryption algorithm, and generating a dynamic key for the data to be encrypted through the encryption algorithm.

[0009] In an exemplary embodiment, the frequency of the scattered light is determined based on the simple harmonic vibration of the atoms of the target inhomogeneous material after the light beam is irradiated to the target inhomogeneous material, including: controlling the light beam to irradiate the target inhomogeneous material, wherein the atoms of the target inhomogeneous material perform simple harmonic vibration after irradiation; and determining the frequency of the scattered light by normal coordinates and the simple harmonic vibration of the atoms of the target inhomogeneous material.

[0010] In an exemplary embodiment, obtaining the atomic simple harmonic vibration coordinates corresponding to the simple harmonic vibration of the atoms of the target inhomogeneous material includes: describing the simple harmonic vibration of the atoms of the target inhomogeneous material through a coordinate system to obtain the atomic simple harmonic vibration coordinates, and using the frequency parameters as coordinate parameters of the atomic simple harmonic vibration.

[0011] In an exemplary embodiment, converting the data to be encrypted into the frequency parameters of the light beam includes: after converting the data to be encrypted into a numerical value, controlling the numerical value in a preset manner within the frequency range of visible light to obtain a target numerical value; and using the target numerical value as the frequency parameter of the light beam.

[0012] In an exemplary embodiment, after generating a dynamic key for encrypting the data to be encrypted according to the type of scattered light and the amount of scattered light, the method further includes: encrypting the data to be encrypted according to the dynamic key to obtain encrypted data to be encrypted; sending the encrypted data to be encrypted to a recipient of the data to be encrypted to instruct the recipient to decrypt the encrypted data to be encrypted according to the dynamic key received in advance.

[0013] According to another embodiment of the embodiments of the present invention, there is also provided a dynamic key generation device, comprising: a conversion module, used to convert the data to be encrypted into the frequency parameters of the light beam, wherein the frequency parameters are within the frequency range of visible light; a control module, used to control the light beam to irradiate the target inhomogeneous material to obtain the type of scattered light and the amount of scattered light corresponding to the light beam; and a generation module, used to generate a dynamic key for encrypting the data to be encrypted according to the type of scattered light and the amount of scattered light.

[0014] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for generating a dynamic key when running.

[0015] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for generating a dynamic key through the computer program.

[0016] In the embodiment of the present application, the data to be encrypted is converted into a frequency parameter of a light beam within the frequency range of visible light; the light beam is controlled to irradiate the target inhomogeneous material to obtain the type and amount of scattered light corresponding to the light beam; and a dynamic key for encrypting the data to be encrypted is generated according to the type and amount of scattered light. The above technical solution is used to solve the problem in the prior art that the public key and private key pair of the data encryption algorithm are relatively simple in form, the rules for key generation are relatively fixed, and the key has the risk of being cracked. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0018] Figure 1 is a flow chart of an existing encryption algorithm according to an embodiment of the present invention;

[0019] Figure 2 It is a hardware structure block diagram of a computer terminal of a method for generating a dynamic key according to an embodiment of the present invention;

[0020] Figure 3 is a flow chart of a method for generating a dynamic key according to an embodiment of the present invention;

[0021] Figure 4 is a schematic diagram of the principle of the Raman effect according to an embodiment of the present invention;

[0022] Figure 5 is a schematic diagram of a method for generating a dynamic key according to an embodiment of the present invention;

[0023] Figure 6 A structural block diagram of a device for generating a dynamic key according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 2 FIG. 1 is a hardware structure block diagram of a computer terminal of a method for generating a dynamic key according to an embodiment of the present invention, such as Figure 2 As shown, the computer terminal may include one or more ( Figure 2 Only one is shown in the figure) processor 202 (processor 202 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 204 for storing data. In an exemplary embodiment, the computer terminal may also include a transmission device 206 and an input / output device 208 for communication functions. It can be understood by those skilled in the art that Figure 2 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 2 More or fewer components as shown, or with Figure 2 Equivalent functions or comparisons shown Figure 2 A different configuration with more features is shown.

[0027] The memory 204 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for generating a dynamic key in the embodiment of the present invention. The processor 202 executes various functional applications and data processing by running the computer program stored in the memory 204, that is, to implement the above method. The memory 204 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 204 may further include a memory remotely arranged relative to the processor 202, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0028] The transmission device 206 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 206 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 206 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0029] In this embodiment, a method for generating a dynamic key is provided, which is applied to the above-mentioned computer terminal. Figure 3 : is a flow chart of a method for generating a dynamic key according to an embodiment of the present invention, the flow chart includes the following steps:

[0030] Step S302, converting the data to be encrypted into a frequency parameter of the light beam, wherein the frequency parameter is within the frequency range of visible light;

[0031] It should be noted that the above data to be encrypted is plain text data, that is, any data that has not been encrypted.

[0032] It should be noted that the above-mentioned light beam is a visible light beam, and the frequency parameter of this light beam is determined according to the data to be encrypted.

[0033] It should be noted that visible light refers to the part of the electromagnetic spectrum that can be perceived by the human eye, and the frequency range of visible light is 4.2*20^24~7.8*20^24Hz.

[0034] Step S304, controlling the light beam to irradiate the target inhomogeneous material to obtain the type and amount of scattered light corresponding to the light beam;

[0035] It should be noted that the above-mentioned inhomogeneous material is a material with inhomogeneous optical properties, that is, the optical properties of the material are not necessarily the same in all directions.

[0036] It should be noted that the above-mentioned inhomogeneous substances may be inhomogeneous substances of different types or inhomogeneous substances of the same type, and the present application does not impose any limitation on this.

[0037] To help understand this solution, the Raman effect is introduced below: There is a special effect in the scattering of light - the Raman effect, that is, the frequency of light changes after scattering. This is the result of the superposition of the vibration energy of the molecule and the energy of the photon when the incident photon collides with the molecule. Figure 4 As shown, Figure 4 : is a schematic diagram of the principle of the Raman effect according to an embodiment of the present invention. When a light beam is irradiated onto the surface of an inhomogeneous material at a fixed frequency U, energy transfer occurs when the constituent molecules or atoms in the material collide with the incident photons. Since molecules are composed of atoms, their atomic vibration states will change to varying degrees, and then light beams of various frequencies will be scattered. The frequency of the scattered light may be the same as the frequency of the incident light, such as the Rayleigh line, whose frequency is U, or it may be different, such as the Skotos line, whose frequency is U+ΔU. The change in the frequency of the scattered light depends on the characteristics of the inhomogeneous material. Since the vibration mode of different types of atomic groups is unique, the light is scattered after passing through the inhomogeneous material, and scattered light with a frequency difference from the incident light can be generated.

[0038] It should be noted that after the above-mentioned light beam passes through the target inhomogeneous material, the Raman effect occurs and scattered light is generated, and then the type and amount of the generated scattered light can be obtained.

[0039] Step S306: Generate a dynamic key for encrypting the data to be encrypted according to the type of the scattered light and the amount of the scattered light.

[0040] It should be noted that the above dynamic key is a two-factor authentication system using time synchronization technology, which uses a one-time password generated by two variables, time, event and key, to replace the traditional static password.

[0041] Through the above steps, the data to be encrypted is converted into the frequency parameters of the light beam, wherein the frequency parameters are within the frequency range of visible light; the light beam is controlled to irradiate the target inhomogeneous material to obtain the type and amount of scattered light corresponding to the frequency light beam; and a dynamic key for encrypting the data to be encrypted is generated according to the type and amount of scattered light. The above technical solution solves the problem in the prior art that the public key and private key pair of the data encryption algorithm are relatively single in form, the key generation rules are relatively fixed, and the key has the risk of being cracked.

[0042] Optionally, in this embodiment, in step S304, the light beam is controlled to irradiate the target inhomogeneous material to obtain the type and amount of scattered light corresponding to the light beam, including: controlling the light beam to irradiate the target inhomogeneous material, wherein the target inhomogeneous material includes different types of inhomogeneous materials; obtaining the type and amount of scattered light generated after the light beam irradiates each of the different types of inhomogeneous materials.

[0043] It should be noted that after the above-mentioned light beam irradiates different inhomogeneous materials, the atomic vibration states of the inhomogeneous materials will change, and different materials have different atomic vibration states.

[0044] In an exemplary embodiment, the frequency of the scattered light is determined based on the simple harmonic vibration of atoms of the target inhomogeneous material after the light beam is irradiated onto the target inhomogeneous material, and the total number of preset spectral lines in the scattered light is determined based on the type of the scattered light and the amount of the scattered light; and a dynamic key for encrypting the data to be encrypted is generated based on the frequency of the scattered light and the total number of preset spectral lines in the scattered light.

[0045] It should be noted that the above-mentioned simple harmonic vibration is simple harmonic motion, that is, an object moves back and forth according to the sinusoidal law near its equilibrium position under the action of a restoring force that is proportional to the displacement.

[0046] It should be noted that the above light beam generates a variety of scattered lights after passing through the inhomogeneous material, and the scattered lights have spectral lines of different frequencies.

[0047] Optionally, in this embodiment, the preset spectral lines may include but are not limited to: Rayleigh lines, Raman lines, Stokes lines and anti-Stokes lines in the scattered light.

[0048] In an exemplary embodiment, the atomic simple harmonic vibration coordinates corresponding to the simple harmonic vibration of the target inhomogeneous material are obtained; the atomic simple harmonic vibration coordinates, the frequency of the scattered light and the total number of the preset spectral lines are used as parameters of the encryption algorithm, and the dynamic key of the data to be encrypted is generated through the encryption algorithm.

[0049] It should be noted that the above-mentioned atomic simple harmonic vibration coordinates include but are not limited to: the amplitude of atomic simple harmonic vibration, the period of atomic simple harmonic vibration, the angular frequency of atomic simple harmonic vibration, etc.

[0050] It should be noted that the above encryption algorithm is an algorithm for generating a dynamic key for the data to be encrypted. This algorithm can be a dynamic key generation algorithm based on event counting or a dynamic key generation algorithm based on time counting. This application does not impose any restrictions on this.

[0051] In this embodiment, even if the encryption algorithm is cracked, the data is still encrypted by the Raman effect, which can effectively ensure the security of the data.

[0052] Optionally, in this embodiment, the dynamic key of the data to be encrypted is generated by the encryption algorithm, including: using HTOP (An hMAC-based one-time Password algorithm, a one-time password generation algorithm based on event counting) to generate the dynamic key of the data to be encrypted.

[0053] Optionally, in this embodiment, after obtaining the atomic simple harmonic vibration coordinates corresponding to the simple harmonic vibration of the target inhomogeneous material, the method also includes: using the atomic simple harmonic vibration coordinates, the frequency of the scattered light, the total number of the preset spectral lines and a random number of preset bits as parameters of the encryption algorithm, and generating a dynamic key for the data to be encrypted through the encryption algorithm.

[0054] It should be noted that the above-mentioned preset number of random numbers can be understood as the number of bits of the random number has been pre-set. For example, if the number of bits of the random number is preset to 16 bits, the atomic simple harmonic oscillation coordinates, the frequency of the scattered light, the total number of preset spectral lines and the 16-bit random number are used as parameters of the encryption algorithm, and this encryption algorithm is used to generate a dynamic key for the data to be encrypted.

[0055] In an exemplary embodiment, the light beam is controlled to irradiate the target inhomogeneous material, wherein atoms of the target inhomogeneous material perform simple harmonic vibration after irradiation; and the frequency of the scattered light is determined by the normal coordinates and the simple harmonic vibration of the target inhomogeneous material.

[0056] It should be noted that the above-mentioned normal coordinates are a coordinate system used to describe and calculate the internal motion of molecules or atoms. Each normal coordinate represents a combination of the internal motion of molecules or atoms. By examining the normal coordinates of molecules or atoms, we can understand the energy of the internal motion of molecules or atoms, and then predict the characteristic absorption peaks of molecules or atoms in the Raman effect. The normal coordinates are introduced here to analyze the frequency of scattered light based on the atomic simple harmonic vibration of inhomogeneous substances.

[0057] In an exemplary embodiment, the simple harmonic vibration of atoms of the target inhomogeneous material is described by a coordinate system to obtain the atomic simple harmonic vibration coordinates, and the frequency parameters are used as coordinate parameters of the atomic simple harmonic vibration.

[0058] It should be noted that, when the target inhomogeneous material includes multiple inhomogeneous materials, the simple harmonic vibration of atoms of each material is described by the above coordinate system.

[0059] Optionally, in this embodiment, the simple harmonic vibration of the atoms of the target inhomogeneous material is described by a coordinate system to obtain the atomic simple harmonic vibration coordinates, and the frequency parameters are used as coordinate parameters of the atomic simple harmonic vibration, including: describing the simple harmonic vibration of the atoms of the target inhomogeneous material by Cartesian coordinates to obtain the atomic simple harmonic vibration coordinates, and using the frequency parameters as the amplitude, period, and angular frequency of the simple harmonic vibration of the atoms of the target material.

[0060] In an exemplary embodiment, after the data to be encrypted is converted into a numerical value, the numerical value is controlled in a preset manner within the frequency range of visible light to obtain a target numerical value; and the target numerical value is used as the frequency parameter of the light beam.

[0061] Optionally, in this embodiment, the method of converting the data to be encrypted into a numerical value includes, but is not limited to: converting both Chinese and English in the encrypted data into decimal.

[0062] Optionally, in this embodiment, the numerical value is controlled within the frequency range of visible light in a preset manner to obtain a target numerical value, including: determining whether the numerical value obtained by converting the data to be encrypted is within the visible frequency range of light; if it is within this range, using the target numerical value as the frequency parameter of the light beam; if it is greater than the maximum value of the visible frequency, calculating the difference between the numerical value and the maximum value, subtracting the difference from the numerical value and then subtracting a random number as the frequency parameter, wherein the random number is less than the average value of the visible range; if it is less than the minimum value of the visible frequency, calculating the difference between the minimum value and the numerical value, adding the difference to the numerical value and then adding the random number as the frequency parameter, wherein the random number is less than the average value of the visible range.

[0063] In an exemplary embodiment, after generating a dynamic key for encrypting the data to be encrypted according to the type of scattered light and the amount of scattered light, the data to be encrypted is encrypted according to the dynamic key to obtain encrypted data; the encrypted data to be encrypted is sent to a recipient of the data to be encrypted to instruct the recipient to decrypt the encrypted data to be encrypted according to the dynamic key received in advance.

[0064] The dynamic key generation method in this scheme has been applied to a company's anti-harassment platform. After practical verification, the encryption method is reliable, efficient and highly secure.

[0065] In order to better understand the process of the above-mentioned method for generating a dynamic key, the implementation method flow of the above-mentioned dynamic key generation is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present invention.

[0066] In this embodiment, a method for generating a dynamic key is provided. Figure 5 is a schematic diagram of a method for generating a dynamic key according to an embodiment of the present invention, such as Figure 5 As shown, the specific steps are as follows:

[0067] Step S502: convert the data to be encrypted into a decimal value;

[0068] Step S504: determine whether the value is within the visible light frequency range; if it is within the visible light frequency range, continue to step S508; if it is not within the visible light frequency range, execute step S506;

[0069] Step S506: controlling the value within the visible light frequency range by a preset method;

[0070] Step S508: using this value as the frequency parameter of the light beam, and irradiating different inhomogeneous materials (equivalent to the target inhomogeneous materials) with the light beam;

[0071] Step S510: describing the simple harmonic vibration of atoms of the inhomogeneous material by Cartesian coordinates, and using the frequency parameter as the coordinate parameter of the simple harmonic vibration of the atoms;

[0072] Step S512: Analyze the frequency of the scattered light according to its simple harmonic vibration using normal coordinates;

[0073] Step S514: Analyze and record the number of Rayleigh lines, Raman lines, Stokes lines and anti-Stokes lines (equivalent to preset spectral lines) in the scattered light;

[0074] Step S516: using the atomic simple harmonic oscillation coordinates, the frequency of the scattered light, the total number of preset spectral lines (i.e., Rayleigh lines, Raman lines, Stokes and anti-Stokes lines) and a 16-bit random number (equivalent to the preset random number) as parameters of the encryption algorithm;

[0075] Step S518: Generate a dynamic key for the data to be encrypted through the encryption algorithm.

[0076] Through the above steps, the problem of the public key and private key pair of the data encryption algorithm in the prior art being relatively simple and the key generation rules being relatively fixed, which in turn causes the risk of key cracking, is solved. This solution simulates the Raman effect experiment, and uses the simple harmonic vibration of atoms after different materials are irradiated by light beams of different frequencies in the Raman effect, the frequency of scattered light, and the number of Rayleigh lines and Raman lines as encryption parameters to dynamically generate keys. The encryption parameters are unpredictable, highly random, safe and reliable, and the generated keys are highly secure, which can solve the key security problem of traditional encryption algorithms.

[0077] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.

[0078] In the present embodiment, a dynamic key generation device is also provided, and the dynamic key generation device is used to implement the above-mentioned embodiment and preferred implementation mode, and the description has been made no further. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0079] Figure 6 A structural block diagram of a device for generating a dynamic key according to an embodiment of the present invention; Figure 6 As shown, including:

[0080] A conversion module 62, used to convert the data to be encrypted into a frequency parameter of the light beam, wherein the frequency parameter is within the frequency range of visible light;

[0081] It should be noted that the above data to be encrypted is plain text data, that is, any data that has not been encrypted.

[0082] It should be noted that the above-mentioned light beam is a visible light beam, and the frequency parameter of this light beam is determined according to the data to be encrypted.

[0083] It should be noted that visible light refers to the part of the electromagnetic spectrum that can be perceived by the human eye, and the frequency range of visible light is 4.2*20^24~7.8*20^24Hz.

[0084] A control module 64, used to control the light beam to irradiate the target inhomogeneous material, and obtain the type and amount of scattered light corresponding to the frequency light beam;

[0085] It should be noted that the above-mentioned inhomogeneous material is a material with inhomogeneous optical properties, that is, the optical properties of the material are not necessarily the same in all directions.

[0086] It should be noted that the above-mentioned inhomogeneous substances may be inhomogeneous substances of different types or inhomogeneous substances of the same type, and the present application does not impose any limitation on this.

[0087] To help understand this solution, the Raman effect is introduced below: There is a special effect in the scattering of light - the Raman effect, that is, the frequency of light changes after scattering. This is the result of the superposition of the vibration energy of the molecule and the energy of the photon when the incident photon collides with the molecule. Figure 4 As shown, Figure 4 Schematic diagram of the principle of the Raman effect according to an embodiment of the present invention. When a light beam is irradiated onto the surface of an inhomogeneous material at a fixed frequency U, the constituent molecules or atoms in the material collide with the incident photons and energy transfer occurs. Since molecules are composed of atoms, their atomic vibration states will change to varying degrees, and then light beams of various frequencies will be scattered. The frequency of the scattered light may be the same as the frequency of the incident light, such as the Rayleigh line, whose frequency is U, or it may be different, such as the Skotos line, whose frequency is U+ΔU. The change in the scattered light frequency depends on the characteristics of the inhomogeneous material. Since the vibration mode of different types of atomic groups is unique, the light is scattered after passing through the inhomogeneous material, and scattered light with a frequency difference from the incident light can be generated.

[0088] It should be noted that after the above-mentioned light beam passes through the target inhomogeneous material, the Raman effect occurs and scattered light is generated, and then the type and amount of the generated scattered light can be obtained.

[0089] The generating module 66 is used to generate a dynamic key for encrypting the data to be encrypted according to the type of the scattered light and the amount of the scattered light.

[0090] It should be noted that the above dynamic key is a two-factor authentication system using time synchronization technology, which uses a one-time password generated by two variables, time, event and key, to replace the traditional static password.

[0091] Through the above device, the data to be encrypted is converted into the frequency parameter of the light beam, wherein the frequency parameter is within the frequency range of visible light; the light beam is controlled to irradiate the target inhomogeneous material to obtain the type and amount of scattered light corresponding to the frequency light beam; and a dynamic key for encrypting the data to be encrypted is generated according to the type and amount of scattered light. The above device solves the problem in the prior art that the public key and private key pair of the data encryption algorithm are relatively single in form, the key generation rules are relatively fixed, and the key has the risk of being cracked.

[0092] Optionally, in this embodiment, the control module 64 is also used to control the light beam to irradiate the target inhomogeneous material, wherein the target inhomogeneous material includes different types of inhomogeneous materials; and obtain the type and amount of scattered light generated after the light beam irradiates each of the different types of inhomogeneous materials.

[0093] It should be noted that after the above-mentioned light beam irradiates different inhomogeneous materials, the atomic vibration states of the inhomogeneous materials will change, and different materials have different atomic vibration states.

[0094] In an exemplary embodiment, the generation module 66 is also used to determine the frequency of the scattered light based on the simple harmonic vibration of atoms of the target inhomogeneous material after the light beam is irradiated onto the target inhomogeneous material, and determine the total number of preset spectral lines in the scattered light based on the type of the scattered light and the amount of the scattered light; and generate a dynamic key for encrypting the data to be encrypted based on the frequency of the scattered light and the total number of preset spectral lines in the scattered light.

[0095] It should be noted that the above-mentioned simple harmonic vibration is simple harmonic motion, that is, an object moves back and forth according to the sinusoidal law near its equilibrium position under the action of a restoring force that is proportional to the displacement.

[0096] It should be noted that the above light beam generates a variety of scattered lights after passing through the inhomogeneous material, and the scattered lights have spectral lines of different frequencies.

[0097] Optionally, in this embodiment, the generation module 66 is further configured to: the above-mentioned preset spectral lines may include but are not limited to: Rayleigh lines, Raman lines, Stokes lines and anti-Stokes lines in the scattered light.

[0098] In an exemplary embodiment, the generation module 66 is also used to obtain the atomic simple harmonic vibration coordinates corresponding to the simple harmonic vibration of the target inhomogeneous material; use the atomic simple harmonic vibration coordinates, the frequency of the scattered light and the total number of the preset spectral lines as parameters of the encryption algorithm, and generate a dynamic key for the data to be encrypted through the encryption algorithm.

[0099] It should be noted that the above-mentioned atomic simple harmonic vibration coordinates include but are not limited to: the amplitude of atomic simple harmonic vibration, the period of atomic simple harmonic vibration, the angular frequency of atomic simple harmonic vibration, etc.

[0100] It should be noted that the above encryption algorithm is an algorithm for generating a dynamic key for the data to be encrypted. This algorithm can be a dynamic key generation algorithm based on event counting or a dynamic key generation algorithm based on time counting. This application does not impose any restrictions on this.

[0101] In this embodiment, even if the encryption algorithm is cracked, the data is still encrypted by the Raman effect, which can effectively ensure the security of the data.

[0102] Optionally, in this embodiment, the generation module 66 is also used to generate a dynamic key for the data to be encrypted through the encryption algorithm, including: using HTOP (An hMAC-based one-time Password algorithm, a one-time password generation algorithm based on event counting) to generate a dynamic key for the data to be encrypted.

[0103] Optionally, in this embodiment, the generation module 66 is also used to, after obtaining the atomic simple harmonic vibration coordinates corresponding to the simple harmonic vibration of the target inhomogeneous material, use the atomic simple harmonic vibration coordinates, the frequency of the scattered light, the total number of the preset spectral lines and a random number of preset bits as parameters of the encryption algorithm, and generate a dynamic key for the data to be encrypted through the encryption algorithm.

[0104] It should be noted that the above-mentioned preset number of random numbers can be understood as the number of bits of the random number has been pre-set. For example, if the number of bits of the random number is preset to 16 bits, the atomic simple harmonic oscillation coordinates, the frequency of the scattered light, the total number of preset spectral lines and the 16-bit random number are used as parameters of the encryption algorithm, and this encryption algorithm is used to generate a dynamic key for the data to be encrypted.

[0105] In an exemplary embodiment, the control module 64 is further used to control the light beam to irradiate the target inhomogeneous material, wherein the atoms of the target inhomogeneous material perform simple harmonic vibration after irradiation; and determine the frequency of the scattered light by the normal coordinates and the simple harmonic vibration of the target inhomogeneous material.

[0106] It should be noted that the above-mentioned normal coordinates are a coordinate system used to describe and calculate the internal motion of molecules or atoms. Each normal coordinate represents a combination of the internal motion of molecules or atoms. By examining the normal coordinates of molecules or atoms, we can understand the energy of the internal motion of molecules or atoms, and then predict the characteristic absorption peaks of molecules or atoms in the Raman effect. The normal coordinates are introduced here to analyze the frequency of scattered light based on the atomic simple harmonic vibration of inhomogeneous substances.

[0107] In an exemplary embodiment, the control module 64 is further configured to describe the simple harmonic vibration of atoms of the target inhomogeneous material through a coordinate system to obtain the atomic simple harmonic vibration coordinates, and use the frequency parameters as coordinate parameters of the atomic simple harmonic vibration.

[0108] It should be noted that, when the target inhomogeneous material includes multiple inhomogeneous materials, the simple harmonic vibration of atoms of each material is described by the above coordinate system.

[0109] Optionally, in this embodiment, the control module 64 is also used to describe the simple harmonic vibration of the atoms of the target inhomogeneous material through a coordinate system to obtain the atomic simple harmonic vibration coordinates, and use the frequency parameters as the coordinate parameters of the atomic simple harmonic vibration, including: describing the simple harmonic vibration of the atoms of the target inhomogeneous material through Cartesian coordinates to obtain the atomic simple harmonic vibration coordinates, and using the frequency parameters as the amplitude, period, and angular frequency of the simple harmonic vibration of the atoms of the target material.

[0110] In an exemplary embodiment, the conversion module 62 is also used to, after converting the data to be encrypted into a numerical value, control the numerical value in a preset manner within the frequency range of visible light to obtain a target numerical value; and use the target numerical value as the frequency parameter of the light beam.

[0111] Optionally, in this embodiment, the conversion module 62 is further used to convert the data to be encrypted into numerical values ​​in the following manner: converting both Chinese and English in the encrypted data into decimal.

[0112] Optionally, in this embodiment, the above-mentioned device also includes: a judgment module, which is used to judge whether the numerical value obtained by converting the data to be encrypted is within the visible frequency range of the light. If it is within this range, the target numerical value is used as the frequency parameter of the light beam. If it is greater than the maximum value of the visible frequency, the difference between the numerical value and the maximum value is calculated, and the numerical value obtained by subtracting the difference from the numerical value and then subtracting the random number is used as the frequency parameter, wherein the random number is less than the average value of the visible range; if it is less than the minimum value of the visible frequency, the difference between the minimum value and the numerical value is calculated, and the numerical value obtained by adding the difference to the numerical value and then adding the random number is used as the frequency parameter, wherein the random number is less than the average value of the visible range.

[0113] In an exemplary embodiment, the generation module 66 is also used to generate a dynamic key for encrypting the data to be encrypted according to the type of scattered light and the amount of scattered light, and then encrypt the data to be encrypted according to the dynamic key to obtain encrypted data to be encrypted; and send the encrypted data to be encrypted to a recipient of the data to be encrypted to instruct the recipient to decrypt the encrypted data to be encrypted according to the dynamic key received in advance.

[0114] An embodiment of the present invention further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

[0115] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:

[0116] S1, converting the data to be encrypted into a frequency parameter of a light beam, wherein the frequency parameter is within the frequency range of visible light;

[0117] S2, controlling the light beam to irradiate the target inhomogeneous material to obtain the type and amount of scattered light corresponding to the frequency light beam;

[0118] S3: Generate a dynamic key for encrypting the data to be encrypted according to the type of the scattered light and the amount of the scattered light.

[0119] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0120] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0121] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0122] S1, converting the data to be encrypted into a frequency parameter of a light beam, wherein the frequency parameter is within the frequency range of visible light;

[0123] S2, controlling the light beam to irradiate the target inhomogeneous material to obtain the type and amount of scattered light corresponding to the frequency light beam;

[0124] S3: Generate a dynamic key for encrypting the data to be encrypted according to the type of the scattered light and the amount of the scattered light.

[0125] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0126] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0127] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0128] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for generating a dynamic key, characterized in that: include: Converting the data to be encrypted into frequency parameters of the light beam, wherein the frequency parameters are within the frequency range of visible light; Controlling the light beam to irradiate the target inhomogeneous material to obtain the type and amount of scattered light corresponding to the light beam; generating a dynamic key for encrypting the data to be encrypted according to the type of the scattered light and the amount of the scattered light; The step of generating a dynamic key for encrypting the data to be encrypted according to the type of the scattered light and the amount of the scattered light includes: Determine the frequency of the scattered light according to the simple harmonic vibration of atoms of the target inhomogeneous material after the light beam irradiates the target inhomogeneous material, and determine the total number of preset spectral lines in the scattered light according to the type of the scattered light and the number of the scattered light; generating a dynamic key for encrypting the data to be encrypted according to the frequency of the scattered light and the total number of preset spectral lines in the scattered light; Wherein, generating a dynamic key for encrypting the data to be encrypted according to the frequency of the scattered light and the total number of preset spectral lines in the scattered light includes: Acquiring atomic simple harmonic vibration coordinates corresponding to the simple harmonic vibration of the atoms of the target inhomogeneous material; wherein the atoms of the target inhomogeneous material perform simple harmonic vibration after being irradiated; The atomic simple harmonic oscillation coordinates, the frequency of the scattered light, and the total number of the preset spectral lines are used as parameters of an encryption algorithm, and a dynamic key for the data to be encrypted is generated by the encryption algorithm; Wherein, determining the frequency of the scattered light according to the simple harmonic vibration of atoms of the target inhomogeneous material after the light beam irradiates the target inhomogeneous material comprises: The frequency of the scattered light is determined by the normal coordinates and the simple harmonic vibration of the atoms of the target inhomogeneous material.

2. The method for generating a dynamic key according to claim 1, characterized in that: Obtaining atomic simple harmonic vibration coordinates corresponding to the simple harmonic vibration of atoms of the target inhomogeneous material includes: The simple harmonic vibration of atoms of the target inhomogeneous material is described by a coordinate system to obtain the atomic simple harmonic vibration coordinates, and the frequency parameters are used as coordinate parameters of the atomic simple harmonic vibration.

3. The method for generating a dynamic key according to claim 1, characterized in that: Convert the data to be encrypted into the frequency parameters of the light beam, including: After converting the data to be encrypted into a numerical value, the numerical value is controlled within the frequency range of visible light in a preset manner to obtain a target numerical value; The target value is used as the frequency parameter of the light beam.

4. The method for generating a dynamic key according to claim 1, characterized in that: After generating a dynamic key for encrypting the data to be encrypted according to the type of the scattered light and the amount of the scattered light, the method further includes: Encrypting the data to be encrypted according to the dynamic key to obtain encrypted data to be encrypted; The encrypted data to be encrypted is sent to a recipient of the data to be encrypted, so as to instruct the recipient to decrypt the encrypted data to be encrypted according to the dynamic key received in advance.

5. A device for generating a dynamic key, characterized in that: include: A conversion module, used for converting the data to be encrypted into a frequency parameter of the light beam, wherein the frequency parameter is within the frequency range of visible light; A control module, used for controlling the light beam to irradiate the target inhomogeneous material, and obtaining the type and amount of scattered light corresponding to the light beam; A generating module, used for generating a dynamic key for encrypting the data to be encrypted according to the type of the scattered light and the amount of the scattered light; The generating module is further used to determine the frequency of the scattered light according to the simple harmonic vibration of the atoms of the target inhomogeneous material after the light beam is irradiated to the target inhomogeneous material, and determine the total number of preset spectral lines in the scattered light according to the type of the scattered light and the number of the scattered light; generate a dynamic key for encrypting the data to be encrypted according to the frequency of the scattered light and the total number of preset spectral lines in the scattered light; wherein the atoms of the target inhomogeneous material perform simple harmonic vibration after being irradiated; The generation module is further used to obtain atomic simple harmonic vibration coordinates corresponding to the simple harmonic vibration of atoms of the target inhomogeneous material; using the atomic simple harmonic vibration coordinates, the frequency of the scattered light and the total number of the preset spectral lines as parameters of the encryption algorithm, and generating a dynamic key for the data to be encrypted through the encryption algorithm; The generating module is further used to determine the frequency of the scattered light through normal coordinates and simple harmonic vibration of atoms of the target inhomogeneous material.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 4 when executed.

7. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 4 through the computer program.