Chaos-based bit-level audio encryption method

文档序号:1172709 发布日期:2020-09-18 浏览:11次 中文

阅读说明:本技术 基于混沌的位级音频加密方法 (Chaos-based bit-level audio encryption method ) 是由 张晓强 李泳锋 于 2020-06-05 设计创作,主要内容包括:一种基于混沌的位级加密算法,属于信息加密领域。目前,在网络上传递音频文件和用语音进行交流的活动日益频繁,为保护多个音频内容的安全性,本发明提出一种基于混沌的位级加密算法。首先,对音素整数化,然后利用密钥产生混沌序列,再进行整数化,然后进行音素级置乱和位级扩散,最后将音素小数化得到加密音频。实验表明:该算法可同时加密多个音频文件,且算法加密效果较好,密钥敏感性强,安全性高,高效。(A chaos-based bit-level encryption algorithm belongs to the field of information encryption. At present, activities of transmitting audio files and exchanging with voices are increasingly frequent on the network, and in order to protect the safety of a plurality of audio contents, the invention provides a chaos-based bit-level encryption algorithm. Firstly, performing integral treatment on phonemes, generating a chaotic sequence by using a key, performing integral treatment, performing phoneme-level scrambling and bit-level diffusion, and performing decimal treatment on phonemes to obtain encrypted audio. Experiments show that: the algorithm can encrypt a plurality of audio files simultaneously, and has the advantages of good encryption effect, strong key sensitivity, high safety and high efficiency.)

1. The chaos-based bit-level audio encryption method is characterized in that the encryption process comprises the following steps:

step 1: and (3) phoneme integer quantization: let the interactive audio file beA 1Of a size ofm×1,mIs the number of phonemes, 1 means that the audio file is mono;A 1the range of the middle element is [ -1, 1 [)]Adding 1 to all elements to make their range become [0, 2 ]]Then multiply by a specified coefficientdMaking each phoneme value availablenIs represented by a binary bit, i.e.

a i 2=(a i 1+1)×d,(1)

Wherein the content of the first and second substances,a i 1A 1A 2={a i 2is an integer matrix;

step 2: and (3) chaotic sequence generation: randomly selecting an initial valuew 0∈ (0, 1) and control parametersp 1∈ (0, 0.5), Piecewise Linear Chaotic Map (PWLCM) shown in iterative formula (2)nThen, a chaotic sequence can be generatedW 1={w i 1};

,(2)

Order control parametera=35,b=3 andc=38, randomly selecting initial valuex 0∈(0, 1),y 0∈(0, 1),z 0∈ (0, 1), iterative formula (3) showing the chaotic systemmNext, the process of the present invention,

Figure 525550DEST_PATH_IMAGE002

can generate three chaotic sequencesX 1={x i 1},Y 1={y i 1AndZ 1={z i 1};

and step 3: and (3) chaotic integer transformation: and (3) calculating:

w i 2=mod(floor(w i 1×1016),m),(4)

y i 2=mod(floor(y i 1×1016),n),(5)

z i 2=mod(floor(z i 1×1016), 2),(6)

wherein the content of the first and second substances,mod() Andfloor() Respectively a modulo and an integer function,w i 1W 1y i 1Y 1z i 1Z 1W 2={w i 2},Y 2={y i 2andZ 2={z i 2};

and 4, step 4: phoneme level scrambling: to pairX 1The element values are arranged in ascending order to obtain a new chaotic sequenceX 2By usingX 1AndX 2correspondence pairs of element positionsA 2Performing phoneme scrambling to obtain a scrambling matrixA 3

And 5: binarization of phonemes: will be provided withA 3Each element in (1)All usenA bit binary bit representation, which may be formed of a size ofm×nOf a binary bit matrixA 4

Step 6: bit-level scrambling: by usingY 2To, forA 4Bit-level row scrambling is performed to obtain a scrambled resultA 5(ii) a Reuse ofW 2To, forA 5Bit-level column scrambling is performed to obtain a scrambled resultA 6

And 7: bit-level diffusion:A 6can be decomposed intonA bit vector ofV 1 1,V 2 1, …,V n 1And calculating:

V 1 2=V 1 1Z 2V i 2=V i 1Z 2V i-1 2i=2, 3, …,n,(7)

where ⊕ denotes an exclusive-or operation,V 1 2,V 2 2, …,V n 2form a diffusion resultA 7

And 8: phonemic decimal transformation: to pairA 7Each row of elements in the Chinese character is represented by a decimal number and can form a decimal number with the size ofm× 1 decimal matrixA 8(ii) a Will be provided withA 8All elements in (1) divided bydThen decrease 1 to make its range to [ -1, 1 [)]I.e. by

a i 9=a i 8/d-1,(8)

Wherein the content of the first and second substances,a i 8A 8A 9={a i 9is encrypted audio.

2. The method of claim 1, wherein: in step 5, bit-level row scrambling means: if it isii=1, 2,…,m) Is an odd number of rowsThen pairA 4To (1) aiLine element go ony i 2Y 2Bit left cyclic shift operations; if it isiEven number of rows, then pairA 4To (1) aiLine element go ony i 2Bit is circularly shifted to the right.

3. The method of claim 1, wherein: in step 5, the bit-level column-set random finger: if it isjj=1, 2,…,n) Odd columns, then pairA 5To (1) ajColumn element to proceedw i 2W 2A bit-up cyclic shift operation; if it isiEven number of rows, then pairA 5To (1) ajColumn element to proceedw i 2A bit down cyclic shift operation.

Technical Field

This document relates to an audio encryption method, mainly for encrypting a single audio file.

Background

In recent years, with the development of big data technology and the popularization of 5G, people increasingly rely on tools such as mobile phones and networks for communication and communication. At the same time, there is a great risk in the network. The problems of information leakage, malicious tampering and the like are endless, so that information encryption technology is increasingly exploded. The audio encryption is to use the matrix characteristic of digital audio to scramble or diffuse according to a specific transformation rule, so as to change the information of the original audio into disorder.

The audio encryption mainly comprises two means of phoneme scrambling and phoneme diffusing. Wherein the purpose of phoneme scrambling is the location of the phoneme; the purpose of phoneme diffusion is to change the value of the phoneme. In order to improve the safety and efficiency of audio encryption and ensure the safe and efficient transmission of audio, a chaos-based bit-level audio encryption method is designed by utilizing the chaos theory and bit-level encryption. The method utilizes the good randomness and complexity of the chaos, and effectively protects the safety of network transmission and storage of the audio file.

Disclosure of Invention

The purpose of the invention is as follows: in order to solve the problem of the safety of an audio file in the transmission process, a chaos-based bit-level audio encryption method is provided.

The technical scheme of the invention is as follows: in order to achieve the aim of the invention, the adopted scheme is a chaos-based multi-audio encryption method.

The chaos-based bit-level audio encryption method is characterized in that the encryption process comprises the following steps:

step 1: and (3) phoneme integer quantization: let the interactive audio file beA 1Of a size ofm×1,mIs the number of phonemes, 1 means that the audio file is mono;A 1the range of the middle element is [ -1, 1 [)]Adding 1 to all elements to make their range become [0, 2 ]]Then multiply by a specified coefficientdMaking each phoneme value availablenIs represented by a binary bit, i.e.

a i 2=(a i 1+1)×d,(1)

Wherein the content of the first and second substances,a i 1A 1A 2={a i 2is an integer matrix;

step 2: and (3) chaotic sequence generation: randomly selecting an initial valuew 0∈ (0, 1) and control parametersp 1∈ (0, 0.5), Piecewise Linear Chaotic Map (PWLCM) shown in iterative formula (2)nThen, a chaotic sequence can be generatedW 1={w i 1};

Figure 538747DEST_PATH_IMAGE001

,(2)

Order control parametera=35,b=3 andc=38, randomly selecting initial valuex 0∈(0, 1),y 0∈(0, 1),z 0∈ (0, 1), iterative formula (3) showing the chaotic systemmNext, the process of the present invention,

Figure 871639DEST_PATH_IMAGE002

,(3)

can generate three chaotic sequencesX 1={x i 1},Y 1={y i 1AndZ 1={z i 1};

and step 3: and (3) chaotic integer transformation: and (3) calculating:

w i 2=mod(floor(w i 1×1016),m),(4)

y i 2=mod(floor(y i 1×1016),n),(5)

z i 2=mod(floor(z i 1×1016), 2),(6)

wherein the content of the first and second substances,mod() Andfloor() Respectively a modulo and an integer function,w i 1W 1y i 1Y 1z i 1Z 1W 2={w i 2},Y 2={y i 2andZ 2={z i 2};

and 4, step 4: phoneme level scrambling: to pairX 1The element values are arranged in ascending order to obtain a new chaotic sequenceX 2By usingX 1AndX 2correspondence pairs of element positionsA 2Performing phoneme scrambling to obtain a scrambling matrixA 3

And 5: binarization of phonemes: will be provided withA 3Each element in (1) is usednA bit binary bit representation, which may be formed of a size ofm×nOf a binary bit matrixA 4

Step 6: bit-level scrambling: by usingY 2To, forA 4Bit-level row scrambling is performed to obtain a scrambled resultA 5(ii) a Reuse ofW 2To, forA 5Bit-level column scrambling is performed to obtain a scrambled resultA 6

And 7: bit-level diffusion:A 6can be decomposed intonA bit vector ofV 1 1,V 2 1, …,V n 1And calculating:

V 1 2=V 1 1Z 2V i 2=V i 1Z 2V i-1 2i=2, 3, …,n,(7)

where ⊕ denotes an exclusive-or operation,V 1 2,V 2 2, …,V n 2form a diffusion resultA 7

And 8: phonemic decimal transformation: to pairA 7Each row of elements in the Chinese character is represented by a decimal number and can form a decimal number with the size ofm× 1 decimal matrixA 8(ii) a Will be provided withA 8All elements in (1) divided bydThen decrease 1 to make its range to [ -1, 1 [)]I.e. by

a i 9=a i 8/d-1,(8)

Wherein the content of the first and second substances,a i 8A 8A 9={a i 9is encrypted audio.

Further, the method described in the step 6 is characterized in that: bit-level row scrambling refers to: if it isii=1, 2,…,m) For odd rows, then pairA 4To (1) aiLine element go ony i 2Bit left cyclic shift operations; if it isiEven number of rows, then pairA 4To (1) aiLine element go ony i 2Bit is circularly shifted to the right. A

Further, the method described in step 6 is characterized in that: bit-level column-wise misleading: if it isjj=1, 2, …,n) Odd columns, then pairA 5To (1) ajColumn element to proceedw i 2A bit-up cyclic shift operation; if it isiEven number of rows, then pairA 5To (1) ajColumn element to proceedw i 2A bit down cyclic shift operation.

Has the advantages that: the invention provides a chaos-based bit-level audio encryption method aiming at the problem of poor security of the original audio encryption method. The main contributions are: (1) the chaotic sequence is utilized to realize phoneme level scrambling and bit level scrambling; (2) the bit-level diffusion is realized by using the idea of bit-level encryption. Therefore, the method has the characteristics of high efficiency, safety and good encryption effect, and can effectively protect the safety of network transmission and storage of the audio files.

Drawings

FIG. 1: a chaos-based multi-audio encryption flow chart;

FIG. 2: a time domain waveform of the original audio;

FIG. 3: a time domain waveform map of the encrypted audio.

Detailed Description

The following detailed description of the embodiments of the present invention is provided in connection with the accompanying drawings and examples.

Fig. 1 is an encryption flow diagram of the method.

The adopted programming software is Matlab R2016b, and 1 audio file with the size of 73113 x 1 is selected as original audio. The detailed process of encrypting the original image by using the method is described as follows.

Step 1: let the interactive audio file beA 1It is largeIs small asm×1,mIs the number of phonemes, 1 means that the audio file is mono;A 1the range of the middle element is [ -1, 1 [)]Adding 1 to all elements to make their range become [0, 2 ]]Then multiply by a specified coefficientdMaking each phoneme value availablenA binary bit representation;

step 2: and (3) chaotic sequence generation: selecting initial value of PWLCMx 0 1=0.203 and parametersp 1=0.190, iterate the mapping 16 times, and obtain a chaotic sequenceW 1={w i 1}16(ii) a Another parametera=35,b=3,c=38, parametersy 0=0.305,z 0 1=0.408, iterating the formula in formula (3) 73113 times to obtainX 1={x i 1}73113Y 1={y i 1}73113Z 1={z i 1}73113

And step 3: and (3) chaotic integer transformation: performing chaotic integer operation according to formulas (4) - (6)

And 4, step 4: phoneme level scrambling: to pairX 1The element values are arranged in ascending order to obtain a new chaotic sequenceX 2By usingX 1AndX 2correspondence pairs of element positionsA 2Performing phoneme scrambling to obtain a scrambling matrixA 3

And 5: binarization of phonemes: will be provided withA 3Each element in (1) is usednA bit binary bit representation, which may be formed of a size ofmnOf a binary bit matrixA 4

Step 6: bit-level scrambling: by usingY 2To, forA 4Bit-level row scrambling is performed to obtain a scrambled resultA 5(ii) a Reuse ofW 2To, forA 5Bit-level column scrambling is performed to obtain a scrambled resultA 6

And 8: phonemic decimal transformation: to pairA 7One for each row of elements inDecimal number representation, can be formed with a size ofm× 1 decimal matrixA 8(ii) a Will be provided withA 8All elements in (1) divided bydThen decrease 1 to make its range to [ -1, 1 [)]。

In the decryption process, the same chaotic sequence, chaotic matrix and corresponding decryption method are used for acting on the encrypted audio, so that a decrypted audio time domain waveform diagram can be obtained, as shown in fig. 2. The decryption process is the reverse of encryption.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于混沌的多音频高维加密方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!