An audio encryption method and system based on a seven-dimensional Hamiltonian conservative hyperchaotic system
By employing a two-layer scrambling and diffusion technique based on a seven-dimensional Hamiltonian conservative hyperchaotic system, the problem of insufficient computational and dynamic complexity in existing audio encryption methods is solved, achieving efficient and secure audio encryption effects suitable for real-time audio communication and storage.
Patent Information
- Application Number
- CN202611437707.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-16
- Publication Date
- 2026-11-10
AI Technical Summary
Existing audio encryption methods have high computational complexity when processing real-time audio streams, making it difficult to meet low latency requirements. They also lack the dynamic complexity of low-dimensional chaotic systems, are prone to periodicity, have limited key spaces, fail to fully exploit the potential of high-dimensional systems, and have insufficient diffusion effects and anti-attack capabilities. Furthermore, they do not take into account both real-time performance and reversibility.
A seven-dimensional Hamiltonian conservative hyperchaotic system is adopted, which uses seven chaotic sequences to drive two-layer scrambling and two-layer diffusion to generate multiple key streams. The temporal structure and amplitude information of the audio signal are combined to perform double perturbation, thereby enhancing encryption security and resistance to attacks.
It significantly improves the security, key sensitivity, and anti-attack capabilities of audio encryption, meets the needs of real-time audio communication and storage, and achieves efficient encryption results.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] This invention relates to the field of information security and multimedia signal encryption technology, specifically to an audio encryption method and system based on a seven-dimensional Hamiltonian conservative hyperchaotic system. Background Technology
[0002] With the rapid development of internet communication and intelligent voice technology, audio data is widely used in communication systems, smart devices, and multimedia platforms. However, audio signals are vulnerable to security threats such as eavesdropping, tampering, and illegal interception during transmission and storage. Therefore, strong encryption of audio data is of great significance.
[0003] Existing audio encryption methods mainly include traditional symmetric encryption algorithms and low-dimensional chaotic encryption methods. Although traditional encryption algorithms (such as AES and DES) have high security, their computational complexity is high when processing real-time audio streams, making it difficult to meet low-latency requirements. On the other hand, low-dimensional chaotic systems, due to insufficient dynamic complexity, are prone to periodic characteristics, thereby reducing encryption security.
[0004] Compared to low-dimensional chaotic systems, high-dimensional hyperchaotic systems, while possessing more complex dynamic behaviors and larger key spaces, and capable of generating multiple chaotic key streams, have, in existing audio encryption practices, failed to fully exploit their potential even with the introduction of high-dimensional systems, and generally suffer from the following design flaws: 1. Although some methods employ high-dimensional systems, they only use a few sequences or fail to effectively couple multi-dimensional sequences, resulting in the actual effective key space being limited to a low-dimensional level, making it difficult to resist phase space reconstruction and brute-force attacks. 2. Some methods simply XOR or scramble the audio sample values without fully considering the frame structure of the audio signal and the temporal correlation of the sampling points, resulting in insufficient diffusion and avalanche effects; 3. Existing methods are not very sensitive to plaintext audio. When the audio signal changes slightly, the ciphertext changes are not obvious enough, which is not conducive to resisting differential attacks. 4. Some encryption methods do not take into account the real-time nature and reversibility of audio encryption, making it difficult to meet the application requirements of voice communication, audio transmission and audio storage. Summary of the Invention
[0005] The purpose of this invention is to propose an audio encryption method and system based on a seven-dimensional Hamiltonian conservative hyperchaotic system. By coordinating the seven chaotic sequences to drive double-layer scrambling and double-layer diffusion, the method achieves dual perturbation of the temporal structure and amplitude information of the audio signal, thereby significantly improving encryption security, key sensitivity and anti-attack capability.
[0006] According to a first aspect of the present disclosure, an audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system is provided, comprising the following steps: Constructing a seven-dimensional Hamiltonian conservative hyperchaotic system; Read the audio file to be encrypted and convert it into an audio sample sequence; The audio sampling sequence is hashed, and seven perturbation components are constructed from the hash result. The seven perturbation components are then mixed with the initial vector input by the user to generate a system key. Using the system key as the initial value for the seven-dimensional Hamiltonian conservative hyperchaotic system, the system is iterated, and after discarding the initial transient sequence, a seven-way chaotic sequence is obtained. The seven chaotic sequences are sorted and quantized to generate a global scrambling index, a block scrambling index, and a diffusion key stream, respectively. The audio sampling sequence is scrambled globally using the global scrambling index to obtain the first-level scrambling result. The first-level scrambling result is dynamically scrambled in blocks using the block scrambling index to obtain a two-level scrambling result. ; The first-layer diffusion result is obtained by using the diffusion key stream to perform feedback diffusion processing on the two-layer scrambling result. The first-layer diffusion result is then subjected to bit-level XOR diffusion to obtain the ciphertext audio sequence. ; The encrypted audio sequence is output according to a preset format as the final encryption result.
[0007] In one embodiment, the mathematical model of the seven-dimensional Hamiltonian conservative hyperchaotic system is: in, For system variables, and These are the system parameters. This system exhibits Hamiltonian conservatism and hyperchaotic properties, and can be used to generate multi-path keystreams with complex dynamic behaviors.
[0008] In one embodiment, the audio sampling sequence is: in, This represents the total number of audio sample points; if the audio is stereo or multi-channel, the sample values of each channel are expanded sequentially and merged into a one-dimensional sample sequence; if the audio sample values are signed integers, they are mapped to non-negative integers. in, For audio sampling bit depth, These are the original sampled values. These are the mapped sampled values.
[0009] In one embodiment, the system key generation method involves performing a SHA-512 hash operation on the audio sampling sequence, dividing the hash sequence into seven sub-segments, converting each sub-segment to a decimal number, and then normalizing it to obtain the hash perturbation. in, This indicates that a single hexadecimal character is mapped to an integer between 0 and 15. Indicates the first The first hash segment in the hash subfield One character; add the perturbation component to the initial value of the seven-dimensional Hamiltonian system to obtain the key set. ; With key set As the initial value for a seven-dimensional Hamiltonian conservative hyperchaotic system.
[0010] In one embodiment, the method for obtaining the two-layer scrambling result is as follows: Let the global scrambling index be... The first-level global scrambling process is as follows: in, Indicates the first digit in the globally scrambled sequence. Each sample value, Indicates the index position in the audio sampling sequence. The sampled values; The result of scrambling the first layer According to the fixed block length Divide into several audio data blocks; let the total number of audio data blocks be... ,but Divide the first-level scrambling results into... , Indicates the first One audio data block, For the first One audio data block According to the chaotic sequence The generated block has a built-in scrambled index. For each audio data block, perform dynamic scrambling within the block; let the first... The built-in random index of the block corresponding to each audio data block is: , The block's built-in scrambling process can then be represented as: After performing intra-block scrambling on all audio data blocks, concatenate the scrambled audio data blocks sequentially according to their block numbers to obtain a double-layer scrambling result. This can be further represented as a one-dimensional sequence. .
[0011] In one embodiment, the diffusion key stream is obtained as follows: in, Indicates by the first The first chaotic sequence generated by the road One key stream element, For audio sampling bit depth, This indicates the floor function. This indicates the modulo operation.
[0012] In one embodiment, the diffusion process includes a first-layer feedback diffusion and a second-layer bit-level XOR diffusion; The first layer of feedback diffusion is as follows: in, For the second layer after scrambling Each sample value, For the first set of diffusion key streams, This is the result of the first layer of diffusion. This is the diffusion value at the previous position. Audio sampling bit depth; The second-level bit-level XOR diffusion method is as follows: in, For the second set of diffusion key streams, This is the final encrypted audio sample value.
[0013] According to a second aspect of the present disclosure, an audio encryption system based on a seven-dimensional Hamiltonian conservative hyperchaotic system is provided, comprising: The system establishes a module to construct a seven-dimensional Hamiltonian conservative hyperchaotic system; The audio preprocessing module reads the audio file to be encrypted and converts it into an audio sampling sequence. The key generation module performs hash calculation on the audio sampling sequence, constructs seven perturbation components from the hash result, and mixes the seven perturbation components with the initial vector input by the user to generate a system key. The chaotic sequence generation module uses the system key as the initial value of the seven-dimensional Hamiltonian conservative hyperchaotic system for iteration. After discarding the initial transient sequence, it obtains a seven-way chaotic sequence. The seven chaotic sequences are sorted and quantized to generate a global scrambling index, a block scrambling index, and a diffusion key stream, respectively. The scrambling module uses the global scrambling index to scramble the global sampling points of the audio sampling sequence to obtain the first-level scrambling result. The first-level scrambling result is dynamically scrambled in blocks using the block scrambling index to obtain a two-level scrambling result. ; The diffusion module uses the diffusion key stream to perform feedback diffusion processing on the two-layer scrambling result to obtain the first-layer diffusion result. The first-layer diffusion result is then subjected to bit-level XOR diffusion to obtain the ciphertext audio sequence. ; The ciphertext output module outputs the ciphertext audio sequence according to a preset format as the final encryption result.
[0014] According to a third aspect of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and running on the memory, wherein the processor executes the program to implement the audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system.
[0015] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the aforementioned audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system.
[0016] The advantages of the above technical solutions adopted in this invention compared with the prior art are as follows: 1. This invention employs a seven-dimensional Hamiltonian conservative hyperchaotic system to generate multi-path chaotic sequences. The Lyapunov exponent spectrum of this system has multiple positive exponents with the exponent sum approaching zero, exhibiting typical dual characteristics of high-dimensional hyperchaos and conservatism. Compared to low-dimensional chaotic systems and traditional dissipative hyperchaotic systems, the phase trajectory extends fully in more dimensions, possessing stronger pseudo-randomness and unpredictability, significantly improving the security of the keystream.
[0017] 2. This invention generates the system key by mixing the SHA-512 hash value with the user initialization vector. The hash value is highly sensitive to every bit change in the audio plaintext; even a tiny difference at any sampling point can trigger an avalanche effect, causing a significant change in the hash perturbation and thus completely altering the initial state of the chaotic system. This mechanism effectively enhances the encryption algorithm's resistance to chosen-plaintext attacks and differential attacks.
[0018] 3. This invention employs a two-layer scrambling structure that combines global sampling point scrambling with block-based dynamic scrambling. This structure can macroscopically disrupt the overall temporal arrangement of the audio signal and microscopically scramble the adjacency relationship of sampling points within local audio blocks, thereby achieving full confusion of the temporal structure.
[0019] 4. This invention employs a two-layer diffusion structure that combines feedback diffusion and bit-level XOR diffusion, enabling changes at any sampling point to propagate forward through the feedback mechanism, affecting all subsequent ciphertext sampling points, thus significantly improving the algorithm's avalanche effect and resistance to differential attacks. Attached Figure Description
[0020] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an undue limitation of this application.
[0021] Figure 1 The flowchart shows an audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system. Figure 2 A system energy analysis diagram for a seven-dimensional Hamiltonian conservative hyperchaotic system; Figure 3 The Lyapunov exponent spectrum of a seven-dimensional Hamiltonian conservative hyperchaotic system; Figure 4 For a seven-dimensional Hamiltonian conservative hyperchaotic system with respect to parameters and parameters Lyapunov exponent plot and bifurcation plot; Figure 5 A three-dimensional phase diagram of a seven-dimensional Hamiltonian conservative hyperchaotic system; Figure 6 Two-dimensional phase diagrams of a seven-dimensional Hamiltonian conservative hyperchaotic system on different planes; Figure 7 Poincaré cross-section of a seven-dimensional Hamiltonian conservative hyperchaotic system; Figure 8 This is a flowchart of the overall audio encryption process; Figure 9 This is a flowchart for two-layer scrambling and diffusion. Detailed Implementation
[0022] The present disclosure will be further described below with reference to the accompanying drawings and embodiments.
[0023] It should be noted that the following detailed descriptions are exemplary and intended to provide further explanation of this application. Unless otherwise specified, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.
[0024] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments according to this application. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0025] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and systems according to various embodiments of this disclosure. It should be noted that each block in a flowchart or block diagram may represent a module, segment, or portion of code, which may include one or more executable instructions for implementing the logical functions specified in the various embodiments. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutively represented blocks may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, may be implemented using a dedicated hardware-based system that performs the specified functions or operations, or using a combination of dedicated hardware and computer instructions.
[0026] Example 1: like Figure 1 As shown, this embodiment provides an audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system, including the following steps: S1. Construct a seven-dimensional Hamiltonian conservative hyperchaotic system; Specifically, a seven-dimensional Hamiltonian conservative hyperchaotic system is used as the audio encryption keystream generator. This system possesses a high-dimensional nonlinear coupling structure, Hamiltonian energy conservation properties, and hyperchaotic dynamics, enabling it to generate complex and unpredictable multi-path chaotic sequences. This provides the keystream foundation for subsequent audio scrambling and diffusion processes. Its mathematical model is shown below: in For system variables, and For system parameters; Get parameters The initial value is set to Take respectively and The constructed seven-dimensional system was numerically simulated using MATLAB. Figure 2The evolution curves of Hamiltonian energy and Casimir power of the system under two parameter conditions are presented. At this time, Hamiltonian energy remains conserved, while Casimir power oscillates irregularly around zero. This result verifies that the present invention can maintain the Hamiltonian conservative structure of the system and provide dynamic conditions for generating complex chaotic behavior. hour, Figure 3 The iteration of the Lyapunov exponent over time is shown, revealing multiple positive Lyapunov exponents and indicating significant hyperchaotic characteristics. Simultaneously, the sum of all Lyapunov exponents is 0. The results demonstrate that the constructed seven-dimensional system possesses both Hamiltonian conservatism and high-dimensional hyperchaotic complexity. The system parameters are set as follows: The initial value is set to .from Figure 4 (a)(b) It can be seen that when other parameters remain unchanged, the parameters When the parameters change, the bifurcation diagram exhibits a complex nonlinear structure, with the trajectories displaying alternating characteristics of localized order and dense distribution across different parameter ranges. The corresponding Lyapunov exponent spectrum shows that, under different parameter ranges... Within the scan range, the system exhibits a positive Lyapunov exponent, and the sum of the Lyapunov exponents is close to zero, indicating that the system as a whole exhibits conservative chaotic characteristics. The system parameters are set as follows: The initial value is System status parameters The bifurcation diagram and Lyapunov index spectrum are as follows: Figure 4 As shown in (c)(d), it can be seen that in the parameters During the transformation, the bifurcation diagram exhibits strong ergodicity, with dense and complex orbital distribution across a wide parameter range. The Lyapunov exponent spectrum indicates that the system consistently possesses multiple positive Lyapunov exponents throughout the entire parameter range, suggesting that the system maintains complex hyperchaotic dynamics across a wide parameter range. Figure 5 and Figure 6 The phase trajectory diagrams on different planes in different dimensions show that the system's orbit is always confined to a finite region, but it does not converge to a single closed curve or a fixed point. Instead, it forms a relatively thick and complex orbital band and shell structure in phase space, indicating that the system exhibits significant high-dimensional and complex dynamic behavior. Based on the set initial parameters, the system... Poincaré section of partial plane as shown Figure 7 As shown, the cross-sectional points are not concentrated into a finite number of isolated points, nor do they form a regular closed curve. Instead, they exhibit a discrete and irregular distribution within the cross-sectional area.
[0027] S2. Read the audio file to be encrypted and convert it into an audio sample sequence; Specifically, the audio file to be encrypted is read to obtain its basic information such as sampling rate, number of channels, and sampling bit depth, and the audio signal is converted into a discrete sampling sequence. Let the original audio sampling sequence be: in, Represents an audio sampling sequence. Indicates the first Each audio sample value, This indicates the total number of audio sampling points.
[0028] If the input audio is mono, it is directly represented as a one-dimensional sampling sequence; if the input audio is stereo or multi-channel, the sample values of each channel are expanded sequentially according to the channel order and merged into a one-dimensional sampling sequence so that scrambling and diffusion operations can be performed uniformly later.
[0029] For 16-bit audio, if the sample value range is Then map it to Within the range of non-negative integers; for audio with other sampling bit depths, the sample values can be uniformly mapped to... , This represents the audio sampling bit depth. If the original sample value is a signed integer, the mapping method can be represented as: in, These are the original sampled values. These are the non-negative integer sampled values after mapping.
[0030] Through the above processing, audio signals of different formats and bit depths can be uniformly converted into integer sampling sequences suitable for encryption calculations.
[0031] To facilitate the explanation of the encryption process of this invention, the following uses a short audio sampling sequence after 8-bit quantization as an example. The encryption process is as follows: Figure 8 As shown. Let the read audio sampling sequence... Its hexadecimal form Audio sampling sequence length Audio sampling depth Therefore, the range of sampled values is This example is a short mono audio sampling sequence, so multi-channel unpacking is unnecessary. If the actual input is stereo audio, the left and right channel sampling sequences can be unpacked sequentially, for example, by storing the left channel sampling points first and then the right channel sampling points, or by unpacking in an alternating sampling manner, and the channel structure can be restored according to the same rules during the ciphertext output stage.
[0032] S3. Perform hash calculation on the audio sampling sequence, construct seven perturbation components from the hash result, mix the seven perturbation components with the initial vector input by the user to generate a system key; use the system key as the initial value of the seven-dimensional Hamiltonian conservative hyperchaotic system for iteration, discard the initial transient sequence to obtain seven chaotic sequences, sort and quantize the seven chaotic sequences to generate a global scrambling index, a block scrambling index and a diffusion key stream respectively; Specifically, for audio sampling sequences Alternatively, perform a SHA-512 hash operation on the original audio file to obtain a hash string of 128 hexadecimal characters. Since this invention employs a seven-dimensional Hamiltonian conservative hyperchaotic system, the first 126 hexadecimal characters of the hash string are taken and divided into 7 sub-segments, each containing 18 hexadecimal characters. The remaining characters, from position 127 to 128, can be discarded. Let the 7 hash sub-segments be as follows: Convert each hexadecimal character in each sub-field to an integer between 0 and 15, and sum them to obtain: in, This indicates that a single hexadecimal character is mapped to an integer between 0 and 15. Indicates the first The first hash segment in the hash subfield Each sub-segment contains 1 character. The summation of each sub-segment is then normalized to obtain seven hash perturbation coefficients: in, For the first A normalized hash perturbation, satisfying .
[0033] Let the initial vector input by the user be... The system key is obtained by linearly mixing the initial vector input by the user with the normalized hash perturbation. Ultimately As the initial state of a seven-dimensional Hamiltonian conservative hyperchaotic system.
[0034] In the example of step 2, the original audio sampling sequence After performing a SHA-512 operation on the audio sample sequence, the hash string is obtained: Take the first 126 characters of HK=4283FEFC63F0CD0E873A0000C6D07EF7B77E90D3593AD699FC1F7CD5BB2E35CBF0F19C557067CBBE80C46D1FB6DFBDB0AE0755281220E087835B92558589EAFF and divide it into 7 segments of 18 characters each. Convert each character in each segment to a decimal integer and sum them up. Therefore, the normalized hash perturbation coefficient If the user inputs an initial vector The system key is This key serves as the initial state for the seven-dimensional Hamiltonian conservative hyperchaotic system and is used for the generation of subsequent chaotic sequences.
[0035] Because the SHA-512 hash value is directly related to the original audio plaintext, even a small change in any sample point in the original audio will result in a significant change in the hash value, thus affecting the initial state of the system. The change causes the subsequently generated chaotic sequences to be completely different.
[0036] Specifically, Used to generate a globally scrambled index sequence. Used to generate a block-based dynamically scrambled index sequence. Used to generate the diffusion key stream. To reduce the impact of system transient processes on the randomness of the encryption key stream, the preceding steps are discarded. At each iteration point, a segment of the remaining chaotic sequence is truncated to a length no less than the length of the audio sampling sequence. The valid sequence. Let the length of the original audio sampling sequence be... The audio sampling depth is The range of audio sample values is then: For common 16-bit audio, That is, the range of audio sample values is .
[0037] First, the chaotic sequence Cut length is Then sort them in ascending order to obtain a globally scrambled index sequence. : in, The range of values is This is used to perform a global rearrangement of the original audio sample sequence, resulting in the first level of scrambling. Secondly, the chaotic sequence Used to generate a block-based dynamic scrambling index. Assume each audio data block has a length of... Then for the first A block of audio data, from The length of the cut-off is subsequence of: right Sort in ascending order to get the first... The built-in random index of each audio data block: in, The range of values is Used to dynamically rearrange the sample points within each audio data block.
[0038] Then, the chaotic sequence The key is quantized into an integer key stream for subsequent feedback diffusion and bit-level XOR diffusion. The quantization method is as follows: in, , All are integer key streams, and their values range from 1 to 2. For 16-bit audio, the keystream value range is... .
[0039] In the specific encryption process, it can be and Combine to generate the first set of diffusion key streams Used for feedback diffusion: Will Combine to generate the second set of diffusion key streams Used for bit-level XOR diffusion: in, This indicates a bitwise XOR operation.
[0040] In this example, let's assume we obtain the key stream. The first key stream And set an initial feedback value. , It can be generated from a chaotic keystream, a user key, or a hash perturbation. Therefore, through the above processing, the global scrambling index, the block scrambling index, and the diffused keystream required for subsequent encryption can be obtained: in, Used for first-level global scrambling. Used for dynamic scrambling of blocks in the second layer. Used for the first layer of feedback diffusion. Used for second-level bit-level XOR diffusion. The above sequences are all generated by a seven-dimensional Hamiltonian conservative hyperchaotic system, which can provide a key basis with strong randomness and high plaintext correlation for subsequent audio encryption processes.
[0041] S4. Use the global scrambling index to scramble the global sampling points of the audio sampling sequence to obtain a first-level scrambling result; use the block scrambling index to perform block dynamic scrambling on the first-level scrambling result to obtain a double-level scrambling result; Specifically, let the global scrambling index be... The first-level global scrambling process is as follows: in, Represents the first element in the globally scrambled sequence. Each sample value, Indicates the index position in the audio sampling sequence. The sampled values.
[0042] Then, scramble the results of the first layer. According to the fixed block length The data is divided into several audio data blocks. Let the total number of audio data blocks be... ,but Divide the first-level scrambling results into... , Indicates the first One audio data block, If the last audio data block is not long enough If the length is too short, padding with zeros, repeated padding, or recording the effective length will be used to fill the gap. For the first... One audio data block Based on the chaotic sequence in step 3 Generated block scrambling index Each audio data block is dynamically scrambled within that block. Let the first... The built-in random index of the block corresponding to each audio data block is: , The block's built-in scrambling process can then be represented as: After performing block-level scrambling on all audio data blocks, concatenate the scrambled audio data blocks sequentially according to their block numbers to obtain a double-layer scrambling result. This can be further represented as a one-dimensional sequence. .
[0043] This step first disrupts the overall temporal structure of the audio signal by scrambling global sampling points, and then disrupts the adjacency relationship of sampling points within local audio segments by dynamically scrambling blocks.
[0044] The chaotic sequence is obtained from step 3. The globally scrambled index obtained by sorting is The global scrambling process is as follows: Substitute the original sampled values Its hexadecimal form is Let the block length be... The result of the first-level scrambling can then be divided into two audio data blocks. and For each audio data block, a chaotic sequence is used. Generate the corresponding block built-in scrambled index And rearrange the sampling points within the block. The first audio data block has a built-in garbled index. The second audio data block has a built-in garbled index. Then, perform block-based scrambling on the first audio data block. ,get Perform block-based scrambling on the second audio data block. ,get The scrambled audio data blocks are concatenated according to their block numbers to obtain a double-layer scrambling result. Its hexadecimal form is ,like Figure 9 As shown.
[0045] S5. The double-layer scrambling result is diffused using the diffused key stream to obtain a ciphertext audio sequence; Specifically, let the first set of diffusion key streams be... The second set of diffusion key streams is , First, a precursor ciphertext feedback mechanism is introduced to perform the first layer of feedback diffusion on the double-scrambled audio sample values: in, This indicates a bitwise XOR operation. The first layer of feedback diffusion Each sample value, This is the diffusion result from the previous position. This is the initial feedback value.
[0046] The initial feedback value Can be generated from chaotic key streams Then, using the second set of diffusion key streams Feedback diffusion results Perform bit-level XOR diffusion: in, This indicates the first ciphertext audio sequence. Each sample value.
[0047] The first set of diffusion key streams is obtained from step 3. Initial feedback value Because of the example , The feedback diffusion process of the first sampling point The feedback diffusion process at the second sampling point First-layer feedback diffusion results Its hexadecimal form The second set of diffusion key streams Then the first ciphertext sample value The second ciphertext sample value The final encrypted audio sequence hexadecimal format .
[0048] This step combines feedback diffusion and bit-level XOR diffusion to achieve diffusion at the amplitude level and perturbation at the bit level of the sampled value. As can be seen from the example above, the two-layer scrambling result... After diffusion, the sampled values have been further altered, ultimately resulting in a ciphertext sequence that differs significantly from the original audio sequence. .
[0049] S6. Output the ciphertext audio sequence according to a preset format as the final encryption result. .
[0050] Example 2: This embodiment provides an audio encryption system based on a seven-dimensional Hamiltonian conservative hyperchaotic system, including: The system establishes a module to construct a seven-dimensional Hamiltonian conservative hyperchaotic system; The audio preprocessing module reads the audio file to be encrypted and converts it into an audio sampling sequence. The key generation module performs hash calculation on the audio sampling sequence, constructs seven perturbation components from the hash result, and mixes the seven perturbation components with the initial vector input by the user to generate a system key. The chaotic sequence generation module uses the system key as the initial value of the seven-dimensional Hamiltonian conservative hyperchaotic system for iteration. After discarding the initial transient sequence, it obtains a seven-way chaotic sequence. The seven chaotic sequences are sorted and quantized to generate a global scrambling index, a block scrambling index, and a diffusion key stream, respectively. The scrambling module uses the global scrambling index to scramble the global sampling points of the audio sampling sequence to obtain the first-level scrambling result. The first-level scrambling result is dynamically scrambled in blocks using the block scrambling index to obtain a two-level scrambling result. ; The diffusion module uses the diffusion key stream to perform feedback diffusion processing on the two-layer scrambling result to obtain the first-layer diffusion result. The first-layer diffusion result is then subjected to bit-level XOR diffusion to obtain the ciphertext audio sequence. ; The ciphertext output module outputs the ciphertext audio sequence according to a preset format as the final encryption result.
[0051] The above modules can be deployed on the same device or distributed devices; the division of modules is only a functional logic description and does not limit the specific physical boundaries or implementation order.
[0052] Example 3: An electronic device is provided for running the aforementioned "Audio Encryption Method Based on a Seven-Dimensional Hamiltonian Conservative Hyperchaotic System". The electronic device includes a processor, a memory, and optional communication interfaces / display devices / input devices, etc.; the memory stores a computer program that can run on the processor, and when the processor executes the program, it implements steps S1 to S6 of the method described in Embodiment 1, specifically including but not limited to: S1. Construct a seven-dimensional Hamiltonian conservative hyperchaotic system; S2. Read the audio file to be encrypted and convert it into an audio sample sequence; The audio sampling sequence is hashed, and seven perturbation components are constructed from the hash result. The seven perturbation components are then mixed with the initial vector input by the user to generate a system key. S3. Using the system key as the initial value of the seven-dimensional Hamiltonian conservative hyperchaotic system, iterate and discard the initial transient sequence to obtain a seven-way chaotic sequence. The seven chaotic sequences are sorted and quantized to generate a global scrambling index, a block scrambling index, and a diffusion key stream, respectively. S4. Use the global scrambling index to scramble the audio sampling sequence at global sampling points to obtain the first-level scrambling result. The first-level scrambling result is dynamically scrambled in blocks using the block scrambling index to obtain a two-level scrambling result. ; S5. Use the diffusion key stream to perform feedback diffusion processing on the two-layer scrambling result to obtain the first-layer diffusion result. The first-layer diffusion result is then subjected to bit-level XOR diffusion to obtain the ciphertext audio sequence. ; S6. Output the encrypted audio sequence according to a preset format as the final encryption result.
[0053] The electronic device hardware can be one of a server, personal computer, workstation, industrial controller, edge computing device, or mobile terminal; the processor can be a general-purpose CPU, GPU, NPU, FPGA, or a combination thereof; the memory can be RAM, ROM, flash memory, or disk array. The device can interact with local / remote data storage via a communication interface. The above hardware configuration does not constitute a limitation of the present invention.
[0054] Example 4: A computer-readable storage medium storing a computer program, which, when run on a processor of an electronic device, causes the program to execute the method steps S1 to S6 described in Embodiment 1; the storage medium may be a disk, optical disk, flash memory, solid-state drive, read-only memory, random access memory, or any combination of the above media.
[0055] Those skilled in the art will understand that the modules or steps described above can be implemented using general-purpose computer devices. Optionally, they can be implemented using computer-executable program code, which can then be stored in a storage device for execution by a computer device. Alternatively, they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. This disclosure is not limited to any particular combination of hardware and software.
[0056] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
[0057] While the specific embodiments of this disclosure have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of this disclosure. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of this disclosure are still within the scope of protection of this disclosure.
Claims
1. An audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system, characterized in that, Includes the following steps: Constructing a seven-dimensional Hamiltonian conservative hyperchaotic system; Read the audio file to be encrypted and convert it into an audio sample sequence; The audio sampling sequence is hashed, and seven perturbation components are constructed from the hash result. The seven perturbation components are then mixed with the initial vector input by the user to generate a system key. Using the system key as the initial value for the seven-dimensional Hamiltonian conservative hyperchaotic system, the system is iterated, and after discarding the initial transient sequence, a seven-way chaotic sequence is obtained. The seven chaotic sequences are sorted and quantized to generate a global scrambling index, a block scrambling index, and a diffusion key stream, respectively. The audio sampling sequence is scrambled globally using the global scrambling index to obtain the first-level scrambling result. ; The first-level scrambling result is dynamically scrambled in blocks using the block scrambling index to obtain a two-level scrambling result. ; The first-layer diffusion result is obtained by using the diffusion key stream to perform feedback diffusion processing on the two-layer scrambling result. ; Bit-level XOR diffusion is performed on the first-layer diffusion result to obtain the ciphertext audio sequence. ; The encrypted audio sequence is output according to a preset format as the final encryption result.
2. The audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system according to claim 1, characterized in that, The mathematical model of the seven-dimensional Hamiltonian conservative hyperchaotic system is as follows: in, For system variables, and These are system parameters.
3. The audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system according to claim 1, characterized in that, The audio sampling sequence is: in, This represents the total number of audio sample points; if the audio is stereo or multi-channel, the sample values of each channel are expanded sequentially and merged into a one-dimensional sample sequence; if the audio sample values are signed integers, they are mapped to non-negative integers. in, For audio sampling bit depth, These are the original sampled values. These are the mapped sampled values.
4. The audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system according to claim 1, characterized in that, The system key generation method involves performing a SHA-512 hash operation on the audio sampling sequence, dividing the hash sequence into seven sub-segments, converting each sub-segment to a decimal number, and then normalizing the result to obtain the hash perturbation. in, This indicates that a single hexadecimal character is mapped to an integer between 0 and 15. Indicates the first The first hash segment in the hash subfield One character; add the perturbation component to the initial value of the seven-dimensional Hamiltonian system to obtain the key set. ; With key set As the initial value for a seven-dimensional Hamiltonian conservative hyperchaotic system.
5. The audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system according to claim 1, characterized in that, The method for obtaining the two-layer scrambling result is as follows: Let the global scrambling index be... The first-level global scrambling process is as follows: in, Represents the first element in the globally scrambled sequence. Each sample value, Indicates the index position in the audio sampling sequence. The sampled values; The result of scrambling the first layer According to the fixed block length Divide into several audio data blocks; let the total number of audio data blocks be... ,but Divide the first-level scrambling results into... , Indicates the first One audio data block, For the first One audio data block According to the chaotic sequence The generated block has a built-in scrambled index. For each audio data block, perform dynamic scrambling within the block; let the first... The built-in random index of the block corresponding to each audio data block is: , The block's built-in scrambling process is represented as: After performing intra-block scrambling on all audio data blocks, concatenate the scrambled audio data blocks sequentially according to their block numbers to obtain a double-layer scrambling result. This can be further represented as a one-dimensional sequence. .
6. The audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system according to claim 1, characterized in that, The diffusion key stream is obtained as follows: in, Indicates by the first The first chaotic sequence generated by the road One key stream element, For audio sampling bit depth, This indicates the floor function. This indicates the modulo operation.
7. The audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system according to claim 1, characterized in that, The diffusion process includes a first-layer feedback diffusion and a second-layer bit-level XOR diffusion; The first layer of feedback diffusion is as follows: in, For the second layer after scrambling Each sample value, For the first set of diffusion key streams, This is the result of the first layer of diffusion. This is the diffusion value at the previous position. Audio sampling bit depth; The second-level bit-level XOR diffusion method is as follows: in, For the second set of diffusion key streams, This is the final encrypted audio sample value.
8. An audio encryption system based on a seven-dimensional Hamiltonian conservative hyperchaotic system, characterized in that, include: The system establishes a module to construct a seven-dimensional Hamiltonian conservative hyperchaotic system; The audio preprocessing module reads the audio file to be encrypted and converts it into an audio sampling sequence. The key generation module performs hash calculation on the audio sampling sequence, constructs seven perturbation components from the hash result, and mixes the seven perturbation components with the initial vector input by the user to generate a system key. The chaotic sequence generation module uses the system key as the initial value of the seven-dimensional Hamiltonian conservative hyperchaotic system for iteration. After discarding the initial transient sequence, it obtains a seven-way chaotic sequence. The seven chaotic sequences are sorted and quantized to generate a global scrambling index, a block scrambling index, and a diffusion key stream, respectively. The scrambling module uses the global scrambling index to scramble the global sampling points of the audio sampling sequence to obtain the first-level scrambling result. ; The first-level scrambling result is dynamically scrambled in blocks using the block scrambling index to obtain a two-level scrambling result. ; The diffusion module uses the diffusion key stream to perform feedback diffusion processing on the two-layer scrambling result to obtain the first-layer diffusion result. The first-layer diffusion result is then subjected to bit-level XOR diffusion to obtain the ciphertext audio sequence. ; The ciphertext output module outputs the ciphertext audio sequence according to a preset format as the final encryption result.
9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and running thereon, characterized in that, When the processor executes the program, it implements the audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements an audio encryption method based on a seven-dimensional Hamiltonian conservative hyperchaotic system as described in any one of claims 1-7.
