Encryption method and system, electronic equipment and readable storage medium

By using deep super-chaotic neural network and life game model to generate key sequences in the underwater wireless optical communication system, and encrypting them in combination with DNA encoding rules, the problems of low encryption dimensions and weak security in the underwater wireless optical communication system are solved, and higher key space and anti-cracking capabilities are achieved.

CN120090786APending Publication Date: 2025-06-03NINGBO INST OF TECH ZHEJIANG UNIV ZHEJIANG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510175302.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-18
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

Underwater wireless optical communication systems have problems with low encryption dimensions and weak security during long-distance transmission, especially in water bodies with high scattering coefficients, which are prone to illegal eavesdropping or malicious attacks.

Method used

The encryption method based on deep hyperchaotic neural network generates key sequences, combined with the life game model and DNA encoding rules, the bitstream signal and key basis sequence are encoded into base sequences, and the encrypted base sequence is obtained through DNA calculations and converted into a transmittable binary bit sequence.

Benefits of technology

The key space is significantly increased and the resistance to brute-force cracking is improved. The original bit information is submerged in the huge DNA base sequence through DNA encryption, which has powerful information diffusion and hidden effects. The diffusion base sequence used for DNA encryption has dynamic update ability, which is difficult to predict and has strong anti-cracking ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120090786A_ABST
    Figure CN120090786A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication encryption, and particularly provides an encryption method which comprises the following steps: generating a key sequence required by an encryption system based on a deep hyper-chaos neural network, the key sequence comprising a key # imgabs0 #; the life game model generates a key base sequence based on evolution rules and iteration times determined by # imgabs1 # and # imgabs2 #; encoding a bit stream signal into a signal base sequence on the basis of a DNA encoding rule determined by # imgabs3 #, and encoding a key base sequence into a diffusion base sequence on the basis of a DNA encoding rule determined by # imgabs4 #; performing DNA calculation on the signal base sequence and the diffusion base sequence based on a DNA operation rule determined by # imgabs5 # to obtain an encrypted base sequence; based on a DNA decoding rule determined by # imgabs6 #, the encrypted base sequence is converted into an encrypted binary bit sequence which can be transmitted in an actual channel; the method has a larger key space, and the capability of resisting brute force cracking is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication encryption technologies, and in particular, to an encryption method, system, electronic device, and readable storage medium. Background Art

[0002] Due to the directivity and anti-electromagnetic interference characteristics of light beams, underwater wireless optical communication has always been considered a secure communication method. However, in the actual communication environment, the non-zero beam divergence angle and seawater scattering will cause the light spot to become larger as the transmission distance increases, and the gradually spreading light beam gives eavesdroppers the opportunity to steal the transmitted information when using high-sensitivity detectors. This security vulnerability is particularly obvious when transmitting in long-distance or high-scattering coefficient water bodies. In particular, with the rapid development of various eavesdropping devices, underwater wireless optical communication links are becoming increasingly vulnerable to illegal eavesdropping or malicious attacks.

[0003] Chaotic encryption systems have become a promising encryption scheme due to their extremely high sensitivity to initial conditions. Due to the influence of seawater absorption, scattering, and turbulence, optical signals suffer serious losses and distortions during long-distance transmission. On-off keying (OOK) modulation has the advantages of strong anti-noise ability and simple structure, and is a commonly used modulation method in long-distance underwater optical communication systems. However, the low-dimensional modulation characteristics of long-distance underwater optical communication often limit the communication system to only adopt a one-dimensional chaotic encryption strategy, and the key space is very limited. The low encryption dimension and small key space are the main problems faced by long-distance underwater wireless optical communication systems in terms of security. Therefore, the present application proposes an encryption method and system. Summary of the Invention

[0004] The purpose of the present invention is to provide an encryption method, system, electronic device, and readable storage medium to solve the problems of low encryption dimension and weak security of current underwater wireless optical communication systems.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] An encryption method, the encryption method includes the following steps:

[0007] Generating a key sequence required for the encryption system based on a deep hyperchaotic neural network, wherein the key sequence contains keys ;

[0008] The Game of Life model generates a key base sequence based on the evolution rules and iteration times determined by and ;

[0009] Based on the DNA coding rules determined by encoding the bit stream signal into a signal base sequence and based on The determined DNA coding rule encodes the key base sequence into a diffusion base sequence;

[0010] Based on The determined DNA algorithm performs DNA calculations on the signal base sequence and the diffusion base sequence to obtain an encrypted base sequence;

[0011] Based on The determined DNA decoding rule converts the encrypted base sequence into an encrypted binary bit sequence that can be transmitted in an actual channel.

[0012] Preferably, the weight matrix between layers in the deep hyperchaotic neural network is shown in formula (1):

[0013] ; Formula (1)

[0014] Wherein, and respectively represent the number of nodes connected between the upper layer and the lower layer. In this embodiment, the number of input layers and output layers is six. In each iteration of the deep hyperchaotic neural network, the sequence output by the output layer is used as an input part for the next iteration and transmitted to the input layer, and the corresponding value is .

[0015] Preferably, the deep hyperchaotic neural network includes an input layer, a chaotic core, three hidden layers, and an output layer. The activation functions of different layers in the deep hyperchaotic neural network are each dimension of a five-dimensional hyperchaotic mapping system. The five-dimensional hyperchaotic mapping system is shown in formula (2):

[0016] ; Formula (2)

[0017] Wherein, , , , , , and are the control parameters of the five-dimensional hyperchaotic mapping system; , , , and are the variables of the five-dimensional hyperchaotic mapping system; , , , and represent taking the first-order partial derivative.

[0018] Preferably, the key sequence generated by the deep hyperchaotic neural network is shown in formula (3):

[0019] ; Formula (3)

[0020] Wherein, represents the modulo operation; represents the ceiling operation; the six keys respectively determine the DNA coding rule, the key base coding rule, the DNA decoding rule, the DNA algorithm rule, the evolution rule of the Game of Life, and the evolution period.

[0021] Preferably, the rules of the Game of Life model are defined as shown in Formula (4):

[0022] ; Formula (4)

[0023] Wherein, represents survival, represents death, and are the rule numbers for the survival and death evolutions, and satisfy the balance rule, that is can be obtained according to ; means that if the number of adjacent living cells belongs to the subset determined by the rule number then the dead cell can be reborn in the next generation, otherwise it remains dead; means that if the number of adjacent living cells appears in the subset determined by the rule number then the living cell will die in the next generation, otherwise it remains alive;

[0024] Based on Formula (5), through calculate to obtain :

[0025] ; Formula (5).

[0026] Preferably, the generation process of the key base sequence is as follows:

[0027] ; Formula (6)

[0028] Wherein, is the key base sequence, represents the evolution rule of the Game of Life, represents that the cell with the position coordinate is in the survival or death state at the th evolution, and the total number of iterations is determined by the key .

[0029] Preferably, the specific method for encoding the transmitted bit signal and the key base sequence into the signal base sequence and the diffusion base sequence respectively includes the following steps:

[0030] Perform DNA base pairing, pairing the base pairs 'A' and 'T', 'C' and 'G' with each other;

[0031] Establish encoding and decoding pairing rules;

[0032] Perform DNA encoding. The transmitted bit signal is converted into the signal base sequence required for encryption according to the DNA encoding rule determined by the key sequence The key base sequence generated by the Game of Life model, after serial-to-parallel conversion, is converted into the diffusion base sequence required for encryption according to the DNA encoding rule determined by the key sequence Determined DNA encoding rules.

[0033] Preferably, the specific steps of the DNA calculation are as follows:

[0034] Establish DNA algorithms, and the DNA algorithms include addition (+), subtraction (-), and exclusive OR (XOR);

[0035] Perform DNA operations. According to the key sequence generated by the deep hyperchaotic neural network Determine the algorithm, and the encrypted base sequence can be obtained by performing the selected DNA operations on the signal base sequence and the diffusion base sequence.

[0036] The present invention also discloses an encryption system, characterized in that the system includes:

[0037] An acquisition unit for acquiring data to be encrypted;

[0038] An encryption unit, which converts the data to be encrypted into an encrypted binary bit sequence that can be transmitted in an actual channel based on the above encryption method;

[0039] A sending unit for sending the encrypted binary bit sequence.

[0040] The present invention also discloses an electronic device, which includes a processor, and the processor implements the above encryption method when executing a computer program stored in a memory.

[0041] The present invention also discloses a readable storage medium, storing a computer program, and when the computer program is executed by a processor, it enables the processor to implement the above encryption method when running the computer program.

[0042] In summary, the present invention has the following beneficial effects compared with the prior art:

[0043] The encryption method disclosed in the embodiments of the present invention generates six groups of keys through a hyperchaotic neural network, generates a key base sequence using one of the keys through the Game of Life model, and combines the DNA coding rules and DNA algorithms determined by the remaining keys to encode the key base sequence and the bit stream signal containing information into a base sequence. Compared with traditional encryption methods, the present invention has a larger key space and stronger resistance to brute-force cracking. At the same time, DNA encryption is used to submerge the original bit information in a huge DNA base sequence, with a powerful information diffusion and hiding effect. In addition, the present invention also uses the Game of Life model, making the diffusion base sequence used in DNA encryption have a powerful dynamic update ability, with an unpredictable evolution method and strong anti-cracking ability. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a flowchart of the encryption method disclosed in the embodiments of the present invention.

[0045] Figure 2 It is a schematic diagram of DNA encoding and decoding in the encryption method disclosed in the embodiments of the present invention.

[0046] Figure 3 It is an overall structure diagram of the deep hyperchaotic neural network structure in the encryption method disclosed in the embodiments of the present invention.

[0047] Figure 4 It is a schematic diagram of the activation of a single neuron in the encryption method disclosed in the embodiments of the present invention.

[0048] Figure 5 It is a relationship diagram in the three-dimensional variable topology diagram of the five-dimensional hyperchaotic system in the encryption method disclosed in the embodiments of the present invention among them.

[0049] Figure 6 It is a relationship diagram in the three-dimensional variable topology diagram of the five-dimensional hyperchaotic system in the encryption method disclosed in the embodiments of the present invention among them.

[0050] Figure 7 It is a schematic diagram of different evolution periods in the Game of Life model in the encryption method disclosed in the embodiments of the present invention.

[0051] Figure 8 It is an experimental structure diagram of a high-speed underwater wireless optical communication system using the encryption method of the present invention in the embodiments of the present invention.

[0052] Figure 9 It is a curve of the change of the system bit error rate with the received optical power at different transmission rates in the experiment of the high-speed underwater wireless optical communication system disclosed in the embodiments of the present invention.

[0053] Figure 10This is the curve of the bit error rate of the underwater wireless optical communication system varying with the transmission distance in the experiment of the high-speed underwater wireless optical communication system disclosed in the embodiments of the present invention. Detailed implementation manners

[0054] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0055] To facilitate the understanding of the present invention, the following briefly explains the proprietary terms that appear in the present invention.

[0056] Hyperchaotic neural network, a new type of intelligent information processing system that combines neural network and chaos theory. It utilizes the non-linear dynamic characteristics of the neural network and the irregularity, ergodicity, randomness, etc. of the chaotic system to achieve complex behavioral patterns and dynamic characteristics. Its principle is to endow each neuron with chaotic properties, realize the chaotic properties through explicit or implicit iteration, associate the internal state variables of the neuron at continuous discrete moments, and consider the weighted sum of the outputs of other neurons as the input.

[0057] Chaotic core, in the hyperchaotic neural network, the chaotic core is a key concept. It refers to the part of the network that can generate chaotic behaviors, and these behaviors have characteristics such as non-linearity, quasi-randomness, and extremely sensitive to the initial value. The chaotic core can be one or more neurons in the network, or a specific structure of the network, and they generate chaotic dynamics through mutual interaction.

[0058] Game of Life model, which belongs to a kind of cellular automaton. It simulates a simple biological ecosystem and shows complex behaviors and patterns through a set of very simple rules. It is a classic model for studying complex systems and self-organization phenomena. The Game of Life model can be used to construct pseudo-random numbers, and the pseudo-random numbers are used to generate keys, initialization vectors, and as a source of randomness in some encryption algorithms.

[0059] Embodiment 1

[0060] As Figure 1 shown, an encryption method provided by an embodiment of the present invention includes the following steps:

[0061] Step S100: Generate the key sequence required for the encryption system based on the deep hyperchaotic neural network, where the key sequence contains keys ;

[0062] Step S200: The Game of Life model is based on and Generate a key base sequence according to the determined evolution rule and number of iterations;

[0063] Step S300, based on the determined DNA coding rule, encode the bit stream signal into a signal base sequence and, based on the determined DNA coding rule, encode the key base sequence into a diffusion base sequence;

[0064] Step S400, based on the determined DNA algorithm, perform DNA calculation on the signal base sequence and the diffusion base sequence to obtain an encrypted base sequence;

[0065] Step S500, based on the determined DNA decoding rule, convert the encrypted base sequence into a binary bit sequence that can be transmitted in an actual channel.

[0066] In this embodiment, when performing underwater communication encryption, the encryption system generates a key sequence required by the encryption system through a set hyperchaotic neural network. Among them, the key sequence is multiple pseudo-random arrays generated by the hyperchaotic neural network, corresponding to the keys , and the Game of Life model generates a key base sequence by selecting a preset evolution rule and number of iterations according to and , and then, based on the determined DNA coding rule, encode the bit stream signal into a signal base sequence. The generation of the signal base sequence and the key base sequence can be synchronized. After generating the key base sequence, based on the determined DNA coding rule, encode the key base sequence into a diffusion base sequence, and then, based on the determined DNA algorithm, perform DNA calculation on the signal base sequence and the diffusion base sequence to obtain an encrypted base sequence. Finally, based on the determined DNA decoding rule, convert the encrypted base sequence into an encrypted binary bit sequence that can be transmitted in an actual channel. The signal transmitting unit connected to the encryption system sends the generated binary bit sequence to the receiving end through an underwater optical communication device.

[0067] After receiving the encrypted binary sequence, the receiving end inversely calculates the received transmission sequence through six stored keys ( ) to obtain a binary bit sequence and complete decryption communication.

[0068] The encryption method disclosed in the embodiments of the present invention generates six groups of keys through a hyperchaotic neural network, generates a key base sequence through the keys involved in the Game of Life model, and combines the DNA coding rules and DNA algorithms determined by the remaining keys to encode the key base sequence and the bit stream signal containing information into a base sequence. Compared with traditional encryption methods, the present invention has a larger key space and stronger resistance to brute force cracking. At the same time, DNA encryption is adopted to submerge the original bit information in a huge DNA base sequence, with a powerful information diffusion and hiding effect. In addition, the present invention also adopts the Game of Life model, making the diffusion base sequence used in DNA encryption have a powerful dynamic update ability, an unpredictable evolution method, and strong anti-cracking ability.

[0069] Specifically, in step S100 of this embodiment, the key sequence is iteratively generated by a deep hyperchaotic neural network assisted by a chaotic kernel (subsequently referred to as CK-DHNN), as Figure 3 and Figure 4 shown. CK-DHNN consists of a multi-layer neural network, including an input layer, a chaotic kernel, three hidden layers, and an output layer. For the activation process of a single neuron, in a complete cycle, the output of each layer is the input of the same neuron, and the output of the network is passed to the input layer of the next cycle. Among them, the weight matrix between layers is shown in formula (1):

[0070] ; Formula (1)

[0071] Among them, and respectively represent the number of nodes connected between the upper layer and the lower layer. In this embodiment, the number of both the input layer and the output layer is six. In each iteration of CK-DHNN, the sequence output by the output layer is used as a part of the input for the next iteration and passed to the input layer, and the corresponding value is

[0072] As a preferred implementation manner in this embodiment, in order to further improve the security of the system, a five-dimensional hyperchaotic mapping (5D-HCM) system is established, and the system model is shown in formula (2):

[0073] ; Formula (2)

[0074] Among them, , , , , , and are the control parameters of the 5D-HCM system; , , , and are variables of the 5D - HCM system; , , , and denotes taking the first - order partial derivative. Each dimension of the five - dimensional hyper - chaotic equation of the 5D - HCM system is used as the activation function of different layers in the CK - DHNN (as shown in Figure 2 ), that is, the function corresponding equation is used as the kernel function of the chaotic kernel in the CK - DHNN, and the remaining four function equations are used as the activation functions of three hidden layers and one input layer in the CK - DHNN respectively.

[0075] After several iterations, the six different sequences output by the output layer of the CK - DHNN correspond to six keys respectively . In this embodiment, to simplify the computational complexity, the evolution period of the CK - DHNN is set to 150, and the generated key sequence is as shown in formula (3):

[0076] ; formula (3)

[0077] wherein, represents the remainder operation; represents the ceiling operation; the six keys respectively determine the DNA coding rule, the key - base coding rule, the DNA decoding rule, the DNA algorithm rule, the life - game evolution rule, and the evolution period.

[0078] From Figure 5 and Figure 6 , it can be seen that the motion trajectory of the CK - DHNN established in this embodiment is complex, and the cross - layer is messy, showing strong chaotic characteristics.

[0079] It should be noted that before generating the key sequence of the CK - DHNN, the user needs to input control parameters, such as , , , , , and , and , , , and , where the control parameters have no special restrictions.

[0080] As a preferred implementation manner in this embodiment, in step S200, the key base sequence is iteratively generated based on the Game of Life model, and the key and respectively determine the evolution rules and the evolution period of the Game of Life. Each cell in the Game of Life has two possible states: survival and death, which are represented by 0 and 1 respectively; the state of the central cell is jointly determined by the states of its surrounding eight cells and its own state; the rules of the Game of Life model are defined as shown in formula (4):

[0081] ; Formula (4)

[0082] Among them, represents the Game of Life rule, represents survival, represents death, and are the rule numbers for the evolution of survival and death, and satisfy the balance rule, such as ; means that if the number of surviving adjacent cells belongs to the subset determined by the rule number , then the dead cell can be reborn in the next generation, otherwise it remains in the dead state; means that if the number of surviving adjacent cells appears in the subset determined by the rule number , then the live cell will die in the next generation, otherwise it remains alive. To facilitate the understanding of the Game of Life model, take as an example to illustrate the Game of Life model. The implementation process is as follows: First, convert the rule numbers 16 and 100 into binary bit sequences and respectively, and the corresponding cell number subsets are and respectively; the evolution process of the Game of Life cells is that if the position number of the surviving adjacent cells is 4, the dead cell can be reborn, and the live cell may die because the position numbers of the surviving adjacent cells are 2, 5, and 6. The different evolution periods of the Game of Life model with the parameter are as shown in Figure 7 .

[0083] Based on formula (5), through calculate to obtain :

[0084] ; Formula (5)

[0085] Therefore, given an initial cell matrix, a pseudo-random binary matrix , which is used as the key base sequence of the DNA encryption system, and the execution process is shown in formula (6):

[0086] ; Formula (6)

[0087] Among them, represents the evolution rule of the Game of Life, represents that the cell with the position coordinate of is in the survival or death state at the th evolution, and the total number of iterations is determined by the value represented by the key . For example, , then the total number of iterations of the Game of Life is 123 times.

[0088] In step S300, according to the DNA coding rule determined by the key sequence, the transmitted bit signal and the key base sequence are respectively encoded into a signal base sequence and a diffusion base sequence, and the operation steps are as follows:

[0089] Step S310: Perform DNA base pairing, pair the base pairs 'A' and 'T', 'C' and 'G' with each other; group the input binary bit sequence, with every two as a group. After grouping, the bit sequence has four combination forms, namely "00", "01", "10" and "11", which respectively correspond to four different bases;

[0090] Step S320: Establish the encoding and decoding pairing rule. Since binary bit encoding has complementarity, that is, "00" is complementary to "11", and "10" is complementary to "01", in order to enable the DNA sequence to be correctly encoded and decoded, a base pairing rule that satisfies complementarity is established, as shown in Table 1:

[0091] Table 1 DNA coding rule

[0092]

[0093] Among them, Rule1, Rule2,..., Rule8 represent eight base pair pairing rules;

[0094] Step S330: Perform DNA encoding. The selection of the encoding rule is determined by the key sequence generated by the deep hyperchaotic neural network (i.e., the 5D-HCM system in this embodiment). The transmitted bit signal is converted into the signal base sequence required for encryption according to the DNA encoding rule determined by the key sequence. For example, , then Rule1 is selected. The key base sequence generated by the Game of Life model, after serial-to-parallel conversion, is converted into the diffusion base sequence required for encryption according to the DNA encoding rule determined by the key sequence. For example, , then the DNA encoding rule selects Rule1.

[0095] It should be noted that in this embodiment, ; .

[0096] In step S400, according to the DNA algorithm determined by the key sequence, the signal base sequence and the diffusion base sequence are subjected to DNA calculation to obtain the encrypted base sequence. The specific steps are as follows:

[0097] Step S410: Establish a DNA algorithm. To meet the reversibility of the algorithm, there are three eligible DNA algorithms: addition (+), subtraction (-), and exclusive OR (XOR), as shown in Table 2:

[0098] Table 2. DNA Algorithms (+: addition; -: subtraction; XOR: exclusive OR)

[0099]

[0100] Step S420: Perform DNA operations. The DNA algorithm is determined by the key sequence generated by the deep hyperchaotic neural network decided. For example, sequence 1 represents the selection of addition, sequence 2 represents the selection of subtraction, and sequence 3 represents the selection of exclusive OR operation. The signal base sequence and the diffusion base sequence can obtain the encrypted base sequence through DNA operation. , then the DNA algorithm selection sequence 2 is selected. Among them, when performing DNA operations, the bases contained in the signal base sequence and the diffusion base sequence are respectively selected from the horizontal or vertical in Table 2 for operation. Exemplarily, one segment of the signal base sequence is A, T, G, C, and one segment of the diffusion base sequence is A, T, G, C. , then the base sequence A, C, C, A after DNA operation.

[0101] It should be noted that in this embodiment, .

[0102] In step S500, refer to Table 1 for DNA decoding. According to the key sequence select the corresponding DNA decoding rule to convert the encrypted base sequence into an encrypted binary bit sequence that can be transmitted in the actual channel.

[0103] In this embodiment, in order to verify the encryption method disclosed in this application, an experiment on a long-distance high-speed underwater wireless optical communication system is designed. Its experimental structure is as Figure 8As shown in the figure, at the information sending end, the binary bits input by the information source are encrypted and modulated by DNA encryption in the encryption system (DSP, which incorporates the encryption method described in this embodiment), generating an encrypted OOK signal. Then, the signal undergoes digital-to-analog conversion by an arbitrary waveform generator (AWG) and is loaded onto a semiconductor laser (LD) for optical signal transmission. The optical signal is incident on the receiving end after multiple reflections by mirrors in the water tank. At the receiving end, the legitimate user decrypts the received signal using the pre-stored key to restore the original bit information. Although an illegal user can steal a certain intensity of optical information from the scattered light or diffused light beam, without the correct key, the original information cannot be accurately restored. Among them, the role of the reflection of the optical signal in the water tank is to simulate the long-distance propagation process of light underwater, and the beam splitter is for the illegal user to steal a certain intensity of optical information from the scattered light or diffused light beam.

[0104] The results of the above experiment are as Figure 9 and Figure 10 shown:

[0105] Figure 9 is the curve of the system bit error rate versus the received optical power at different transmission rates. Among them, w / o represents the curve of the communication system without encryption, w / e represents the curve of the communication system with encryption and the receiving end having the correct key, and w / i represents the curve of the communication system with encryption but the receiving end having an incorrect key. From the experimental results, it can be seen that the bit error performance of the underwater wireless optical communication system using the encryption method described in this embodiment is almost the same as that of the system without the encryption scheme, indicating that DNA encryption does not affect the transmission performance of the underwater wireless optical communication system. However, for eavesdroppers, even if the initial key value of the hyperchaotic system they carry only differs from the correct key value by 10^-15, their bit error rate (BER) is still close to 0.5, indicating that illegal eavesdroppers cannot steal any information from the transmission link, verifying the effectiveness of the encryption method proposed in this embodiment;

[0106] Figure 10 is the curve of the bit error rate of the underwater wireless optical communication system versus the transmission distance. From the figure, it can be seen that at different transmission distances, the BER of the illegal receiving end always remains at 0.5, verifying the effectiveness of the encryption method described in this embodiment in a long-distance high-speed underwater wireless optical communication system.

[0107] Embodiment 2

[0108] The present invention also discloses an encryption system for implementing the encryption method described in Embodiment 1. The system includes:

[0109] An acquisition unit for acquiring the data to be encrypted;

[0110] An encryption unit, which converts the data to be encrypted into an encrypted binary bit sequence that can be transmitted in an actual channel based on the above encryption method;

[0111] A sending unit, which is used to send the encrypted binary bit sequence.

[0112] Specifically, the obtaining unit can be an input device of a computer or an input module set on the computer. The encryption end converts the obtained encrypted data into a binary bit stream for encryption by the encryption unit. The encryption unit executes the encryption method described in Embodiment 1. The sending end is used to send signals, such as optical signals, electrical signals, etc. The encryption end is located in the sending unit. In this embodiment, the sending unit is an information processing device, which can convert user information into a bit stream signal and convert the base sequence into a transmissible electrical signal or optical signal, such as the sending end in the long-distance high-speed underwater wireless optical communication system experiment of Embodiment 1.

[0113] As a preferred implementation manner in this embodiment, the encryption system further includes:

[0114] A receiving unit, which is used to receive and process signals, such as the receiving end in the long-distance high-speed underwater wireless optical communication system experiment of Embodiment 1. The receiving unit is built-in with a decryption algorithm, that is, based on the DNA encryption method described in Embodiment 1 and six built-in keys ( ) to invert the received transmission sequence to obtain a binary bit sequence.

[0115] Embodiment 3

[0116] The present invention also discloses an electronic device, which includes a processor, and the processor realizes the encryption method described in Embodiment 1 when executing a computer program stored in a memory.

[0117] Embodiment 4

[0118] The present invention also discloses a readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor realizes the encryption method described in Embodiment 1 when running the computer program.

[0119] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections between each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms.

[0120] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0121] In addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of a combination of hardware and software functional units.

[0122] In a typical configuration of an embodiment of the present invention, an electronic device includes one or more processors (CPUs), an input / output interface, a network interface, and a memory.

[0123] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM), and / or non-volatile memory in the form of, for example, read-only memory (ROM) or flash memory (flash-RAM). The memory is an example of a computer-readable medium.

[0124] The readable storage medium includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data.

[0125] Examples of storage media for electronic devices include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic disk storage or other magnetic storage devices, or any other non-transitory medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.

[0126] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the above-mentioned division of each functional module is used as an example for illustration. In actual applications, the above-mentioned functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the foregoing method embodiment and will not be elaborated herein.

Claims

1. An encryption method, characterized in that: The following steps are involved: The key sequence required for the encryption system is generated based on a deep hyperchaotic neural network, wherein the key sequence contains a key ; The Game of Life model is based on and Determine the evolution rules and the number of iterations to generate the key base sequence; based on The DNA coding rules determined by the bit stream signal are encoded into a signal base sequence and based on The determined DNA encoding rules encode the key base sequence into a diffuse base sequence; based on The determined DNA algorithm performs DNA calculation on the signal base sequence and the diffuse base sequence to obtain an encrypted base sequence; based on The determined DNA decoding rules convert the encrypted base sequence into an encrypted binary bit sequence that can be transmitted in the channel.

2. The encryption method according to claim 1, characterized in that: The deep hyperchaotic neural network includes an input layer, a chaotic core, three hidden layers and an output layer. The activation functions of different layers in the deep hyperchaotic neural network are each dimension of a five-dimensional hyperchaotic mapping system. The five-dimensional hyperchaotic mapping system is shown in formula (2): Formula (2) in, , , , , , and is the control parameter of the five-dimensional hyperchaotic mapping system; , , , and are the variables of the five-dimensional hyperchaotic mapping system; , , , and It means taking the first-order partial derivative.

3. The encryption method according to claim 2, characterized in that: The key sequence generated by the deep hyperchaotic neural network is shown in formula (3): Formula (3) in, Represents the remainder operation; Indicates a round-up operation; the six keys respectively determine the DNA encoding rules, key base encoding rules, DNA decoding rules, DNA operation rules, life game evolution rules and evolution cycle.

4. The encryption method according to claim 1, characterized in that: The rule definition of the Game of Life model is shown in formula (4): ;Formula (4) in, Represents survival, Represents death, and is the order of rules for the evolution of life and death, and Satisfy the balance rule, that is According to get; Meaning: If the number of surviving adjacent cells belongs to a regular number If the determined subset, then the dead cell can be reborn in the next generation, otherwise it remains dead; Meaning: If the number of surviving adjacent cells appears in the regular number In the determined subset, the live cell will die in the next generation, otherwise it will still survive; Based on formula (5), Calculated : ;Formula (5).

5. The encryption method according to claim 4, characterized in that: The generation process of the key base sequence is as follows: ;Formula (6) in, is the key base sequence, represents the evolution rules of the Game of Life, The position coordinates are The cell in The survival or death state of the evolution, the total number of iterations is determined by the key Decide.

6. The encryption method according to claim 1, characterized in that: The specific method of encoding the transmitted bit signal and the key base sequence into a signal base sequence and a diffusion base sequence respectively comprises the following steps: Performs DNA base pairing, pairing base pairs 'A' and 'T', 'C' and 'G' with each other; Establish codec pairing rules; DNA encoding is performed, and the transmitted bit signal is based on the key sequence The determined DNA coding rules are converted into the signal base sequence required for encryption. The key base sequence generated by the Game of Life model is converted into a key sequence according to the key sequence after parallel-to-serial conversion. The determined DNA coding rules are converted into the diffuse base sequence required for encryption.

7. The encryption method according to claim 6, characterized in that: The specific steps of DNA calculation are as follows: Establishing DNA algorithms, wherein the DNA algorithms include addition (+), subtraction (-), and exclusive OR (XOR); Perform DNA calculations based on the key sequence generated by the deep hyperchaotic neural network The algorithm is determined, and the signal base sequence and the diffusion base sequence can be used to obtain the encrypted base sequence through the selected DNA operation.

8. An encryption system, characterized in that: The system comprises: An acquisition unit, used for acquiring data to be encrypted; An encryption unit, which converts the data to be encrypted into an encrypted binary bit sequence that can be transmitted in an actual channel based on the encryption method according to any one of claims 1 to 7; The sending unit is used to send the encrypted binary bit sequence.

9. An electronic device, characterized in that: The electronic device comprises a processor, and the processor implements the encryption method according to any one of claims 1 to 7 when executing a computer program stored in a memory.

10. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor implements the encryption method according to any one of claims 1 to 7 when running the computer program.