CN104809685B - A kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems - Google Patents
A kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems Download PDFInfo
- Publication number
- CN104809685B CN104809685B CN201510242546.2A CN201510242546A CN104809685B CN 104809685 B CN104809685 B CN 104809685B CN 201510242546 A CN201510242546 A CN 201510242546A CN 104809685 B CN104809685 B CN 104809685B
- Authority
- CN
- China
- Prior art keywords
- image
- dna
- sequence
- row
- encryption
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Complex Calculations (AREA)
Abstract
The present invention relates to image procossings and information security field, and in particular to a kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems.The present invention is .bmp formats for plaintext colour element image P, and picture size is M × N, and the three chrominance channel matrixes for extracting image respectively constitute the matrix P of three M × NR, PG, PB;A random number R is generated, 32 hexadecimal image hash value MD5, MD5=MD (P, R) are sought;MD5 is divided into 8 parts, MD is normalized between (0,0.01).The present invention provides a kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems.Hashed value and absolute error concept are introduced, so that Encryption Algorithm is associated in plain text with image, effectively improves algorithm security;Invention introduces the adjustment of DNA sequence dna pixel value and image three channel coupled operationals, effectively reduce Encryption Algorithm complexity, greatly reduce the correlation between ciphertext pixel value, improve ciphertext attack resistance characteristic, cipher round results are good, safe.
Description
Technical field
The present invention relates to image procossings and information security field, and in particular to a kind of cromogram based on 6 dimension chaos systems
As one time key DNA encryption methods.
Background technology
In recent years, with the fast development of network technology and digital technology, digital communication technology is greatly improved.Mutually
The transmission of networked multimedia information becomes more and more frequently, and which includes text information and image informations.These information can
Confidential information of the energy comprising personal privacy information, company, even nation's security information.The diversity of network determines letter
The presence of security threat is ceased, about 70% is occurred in the form of digital image information in these information.These image informations
It is often artificially attacked by information stealth, data tampering etc. in transmission process, information transmitter and information receiver is made to meet with
By huge loss.
Image information itself has data volume big, the features such as degree of correlation is high between data, traditional for plain text information
Encryption method, such as data encryption standards (DES), international data encryption algorithm, rivest, shamir, adelman RSA, are not fully fitted
Close image encryption.Since chaos system has key space big, initial value sensitivity, aperiodicity, non-linear and unpredictable
Property the features such as, based on the image encryption method of chaos in safety, adaptability have advantage, obtained widely grinding in recent years
Study carefully.
Currently, resume image mainly has the Encryption Algorithm based on chaos system, the Encryption Algorithm based on spatial domain, base
In the Encryption Algorithm of transform domain.Using general algorithm, directly image is operated, encryption key is unrelated with cleartext information, difficult
To resist known plain text attack.Using a secondary key, i.e. hashed value MD5, effectively encryption key can be established with plaintext and contacted, carried
High security of system.It is adjusted and is operated using general pixel value, degree of parallelism is not high, is subject to attack.Picture is carried out using DNA sequence dna
Element value adjustment, can effectively improve system in parallel degree, realize huge concurrent operation, the lifting system speed of service;DNA is stored
Capacity is huge, can effectively promote key space, improves system attack tolerant.
In addition, common chaos encryption algorithm mostly uses Low-dimensional Chaotic Systems or multi-chaos system is used in combination, there are key spaces
The shortcomings of small or Encryption Algorithm is not strong to key sensibility can effectively overcome this disadvantage using high-dimension chaotic system.
Invention content
The purpose of the present invention is to provide a kind of encryption sides coloured image one time key DNA based on 6 dimension chaos systems
Method.
The object of the present invention is achieved like this:
(1) it is .bmp formats for plaintext colour element image P, picture size is M × N, extracts three chrominance channels of image
Matrix respectively constitutes the matrix P of three M × NR, PG, PB;
(2) random number R is generated, 32 hexadecimal image hash value MD5 are sought,
MD5=MD (P, R);
(3) MD5 is divided into 8 parts, i.e. MD (j)={ dj1dj2dj3dj4, j=1 ..., 8, MD is normalized to (0,
0.01) between,
D (i)=hex2dec (MD (i)), i=1 ..., 8;
(4) 4 numbers { D (1), D (3), D (6), D (7) } are arbitrarily chosen from D and are summed obtains
s1=D (1)+D (3)+D (6)+D (7),
And so on seek s2,s3,s4,s5,s6, obtain absolute error sequence ε={ ε1,ε2,ε3,ε4,ε5,ε6, if si
× 100mod2=0, then εiTake+;Otherwise, εiTake-,
(5) updated 6 dimension chaos system initial parameter x ' is obtainedi0, it is mixed to substitute into 6th-CNN high-orders i=1,2 ..., 6
Ignorant system iteration m+3MN times, m value obtains chaos sequence Y={ y before removal1,y2,y3,y4,y5,y6,
xi'=xi0+εi, i=1,2 ..., 6,
yi=xi×1014Mod256, i=1,2 ..., 6;
(6) it uses last position MD5 to calculate t=MD5 (32) mod6+1, takes ytPreceding 3M obtain 1 × 3M of line shuffle sequence
TN1;Take yt+1mod6+1Obtain the TN of row scrambling sequence M × 3N2;Take yt+2mod6+1Preceding M N-bit and obtain plaintext DNA decoding rule
The then TN of 1 × MN of sequence3;Take yt+3mod6+1, yt+4mod6+1And yt+5mod6+1Preceding 2M × N, odd term obtain decoding rule 1 ×
The TN of MN41,TN51,TN61, the TN of 1 × MN of even item acquisition triple channel chaos encryption preprocessing sequence42,TN52,TN62
TN=ymod8+1;
(7) by plaintext PR,PG,PBEach pixel point value be converted into 8 bits, by its every 2 be one group, foundation
TN3Progress DNA decodings, 7.1) if TN3(i)=1, then 00=A, 11=T, 10=C, 01=G;If 7.2) TN3(i)=2, then 00
=A, 11=T, 01=C, 10=G;If 7.3) TN3(i)=3, then 11=A, 00=T, 10=C, 01=G;If 7.4) TN3(i)=
4, then 11=A, 00=T, 01=C, 10=G;If 7.5) TN3(i)=5, then 10=A, 01=T, 00=C, 11=G;If 7.6)
TN3(i)=6, then 01=A, 10=T, 00=C, 11=G;If 7.7) TN3(i)=7, then 10=A, 01=T, 11=C, 00=G;
If 7.8) TN3(i)=8, then 01=A, 10=T, 11=C, 00=G, respectively obtain plaintext DNA encoding after decodingTriple channel chaos encryption preprocessing sequence TN42、TN52、TN62According to coding sequence TN41, TN51,
TN61DNA decodings are carried out, triple channel chaos encryption DNA sequence dna is obtained after one yard
(8) line shuffle:It willIt is sequentially connected the matrix P for constituting a 3M × N1, obtain sequence TN1
In element be arranged in TN by ascending order1In position sequence TN1', by P1The first row be moved to P1TN1' (1) row, P1's
Second row is moved to P1TN1' (2) row ..., and so on, until P13M rows be moved to P1TN1' (3M) behaviors
Only, matrix P after line shuffle is obtained1out;
TN '=sort (TN) (1)
(9) row scramble:By P1outIt is converted to the matrix P of M × 3N2, obtain sequence TN2In each row element by ascending order arrange
It is listed in TN2In position sequence TN2', by P2The i-th row jth row element be moved to P1The i-th row TN2' (i, j) is arranged, until
P1M rows 3N row be moved to P1M rows TN2' (M, 3N) behaviors stop, and obtain matrix P after row scramble2out;
(11) willWithIt is converted to decimal number and compound, finally obtains ciphertext image Cout.bmp lattice
Formula.
The beneficial effects of the present invention are:
The present invention provides a kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems.It introduces scattered
Train value and absolute error concept make Encryption Algorithm be associated in plain text with image, effectively improve algorithm security;Present invention introduces
The adjustment of DNA sequence dna pixel value and image three channel coupled operational, effectively reduce Encryption Algorithm complexity, greatly reduce
Correlation between ciphertext pixel value improves ciphertext attack resistance characteristic, and cipher round results are good, safe.
The present invention is adjusted using DNA sequence dna pixel value and triple channel coupled operational, and algorithm is simple and occupies little space, system
Degree of parallelism is high, and Encryption Algorithm operational efficiency is high, greatly reduces the correlation between ciphertext pixel value.That is phase between original image pixel
Closing property is 90% or more, and image slices vegetarian refreshments correlation is reduced to 1% or less after present invention encryption.
Present invention utilizes high-order chaos systems to have the advantages that increasingly complex kinetic characteristics and greater security,
Overcome Low-dimensional Chaotic Systems carry out image encryption key space is small, disadvantage that safety is low.Use 6th-CNN chaos system
It unites (cipher key number 8), precision 10-15, key space is 1.5 × 10131, it is much larger than 2256, key space is resisted known bright enough
The various attacks such as text or selection plaintext.
Present invention introduces hashing information value MD5 and absolute error concept, and Encryption Algorithm is made to be associated with cleartext information, effectively
Increase the safety of Encryption Algorithm.
Description of the drawings
Fig. 1 is encryption method encryption flow figure;
Fig. 2 a are Lena original images;
Fig. 2 b are the R channel images of Fig. 2 a;
Fig. 2 c are the G channel images of Fig. 2 a;
Fig. 2 d are the channel B image of Fig. 2 a;
Fig. 3 a are the encrypted image of Fig. 2 a;
Fig. 3 b are the R channel images of Fig. 3 a;
Fig. 3 c are the G channel images of Fig. 3 a;
Fig. 3 d are the channel B image of Fig. 3 a;
Fig. 4 a are the correct decrypted image of Fig. 3 a;
Fig. 4 b are the wrong deciphering parameter x of Fig. 3 a10Decrypt the image of gained;
Fig. 4 c are the image of Fig. 3 a mistake deciphering parameters m decryption gained;
Fig. 4 d are the image of Fig. 3 a mistake deciphering parameters MD5 decryption gained;
Fig. 5 a are that Fig. 2 a only change corresponding ciphertext image after a pixel;
Fig. 5 b difference images between Fig. 5 a and Fig. 3 a;
Fig. 6 is the correlation detection figure of Fig. 2 a and Fig. 3 a;
The gray value detection that Fig. 7 is Fig. 2 a and Fig. 3 a is schemed;
Specific implementation mode
Invention is further described in detail below in conjunction with the accompanying drawings, and embodiments of the present invention are not limited thereto.
The present invention adopts the following technical scheme that:
A kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems, include the following steps:
S1:Known-plaintext colour element image P (.bmp formats), picture size are M × N, extract three chrominance channels of image
Matrix respectively constitutes the matrix P of three M × NR, PG, PB。
S2:A random number R is generated, 32 hexadecimal image hash value MD5 are sought using formula (1).
MD5=MD (P, R) (2)
S3:MD5 is divided into 8 parts, i.e. MD (j)={ dj1dj2dj3dj4, j=1 ..., 8, and apply formula (2) by MD
It is normalized between (0,0.01).
D (i)=hex2dec (MD (i)), i=1 ..., 8 (3)
S4:4 numbers such as { D (1), D (3), D (6), D (7) } are arbitrarily chosen from D and are summed obtains s1=D (1)+D (3)+D
(6) (7)+D, and so on seek s2,s3,s4,s5,s6.Absolute error sequence ε={ ε is obtained using formula (3)1,ε2,ε3,ε4,
ε5,ε6}.Wherein if si× 100mod2=0, then εiTake+;Otherwise, εiTake-.
S5:Updated 6 dimension chaos system initial parameter x ' is obtained using formula (4)i0, i=1,2 ..., 6, substitution
6th-CNN high-order chaos systems iteration m+3MN times, m value obtains chaos sequence Y={ y using formula (5) before removal1,y2,y3,
y4,y5,y6}。
xi'=xi0+εi, i=1,2 ..., 6 (5)
yi=xi×1014Mod256, i=1,2 ..., 6 (6)
S6:T=MD5 (32) mod6+1 is calculated with last position MD5, takes ytPreceding 3M obtain 1 × 3M of line shuffle sequence
TN1;Take yt+1mod6+1Obtain the TN of row scrambling sequence M × 3N2;Take yt+2mod6+1Preceding M N-bit and application formula (6) obtain it is bright
The TN of 1 × MN of literary DNA decoding rules sequence3;Take yt+3mod6+1, yt+4mod6+1And yt+5mod6+1Preceding 2M × N, odd term application
Formula (6) obtains the TN of 1 × MN of decoding rule41,TN51,TN61, even item acquisition triple channel chaos encryption preprocessing sequence 1 ×
The TN of MN42,TN52,TN62。
TN=ymod8+1 (7)
S7:By plaintext PR,PG,PBEach pixel point value be converted into 8 bits, such as (128)10=
(10000000)2, it is one group by its every 2, such as (10000000)2=(10 | 00 | 00 | 00)2, according to TN3DNA decodings are carried out,
Decoding principle is:If 1) TN3(i)=1, then 00=A, 11=T, 10=C, 01=G;If 2) TN3(i)=2, then 00=A, 11=
T, 01=C, 10=G;If 3) TN3(i)=3, then 11=A, 00=T, 10=C, 01=G;If 4) TN3(i)=4, then 11=A, 00
=T, 01=C, 10=G;If 5) TN3(i)=5, then 10=A, 01=T, 00=C, 11=G;If 6) TN3(i)=6, then 01=A,
10=T, 00=C, 11=G;If 7) TN3(i)=7, then 10=A, 01=T, 11=C, 00=G;If 8) TN3(i)=8, then 01=
A, 10=T, 11=C, 00=G.Plaintext DNA encoding is respectively obtained after decodingTriple channel chaos encryption
Preprocessing sequence TN42、TN52、TN62According to coding sequence TN41, TN51, TN61The above process is copied to carry out DNA decodings, after one yard
Obtain triple channel chaos encryption DNA sequence dna
S8:Line shuffle:It willIt is sequentially connected the matrix P for constituting a 3M × N1, using formula (7)
Obtain sequence TN1In element be arranged in TN by ascending order1In position sequence TN1′.By P1The first row be moved to P1TN1′
(1) row, P1The second row be moved to P1TN1' (2) row ..., and so on, until P13M rows be moved to P1
TN1' (3M) behaviors stop, and obtain matrix P after line shuffle1out。
TN '=sort (TN) (8)
S9:Row scramble:By P1outIt is converted to the matrix P of M × 3N2, sequence TN is obtained using formula (8)2In every a line member
Element is arranged in TN by ascending order2In position sequence TN2′.By P2The i-th row jth row element be moved to P1The i-th row TN2′
(i, j) is arranged, by this operation, until P1M rows 3N row be moved to P1M rows TN2' (M, 3N) behaviors stop, and obtain row and set
Matrix P after unrest2out。
S11:It willWithIt is converted to decimal number and compound, finally obtains ciphertext image Cout(.bmp lattice
Formula).
1. introducing the hashed value MD5 by image and generating random number in step S2, the MD5 that encryption generates every time is different,
Effectively increase the key safety of encryption system.
2. introducing absolute error concept in step S4, encryption system is made to be associated with plaintext image, improves system peace
Quan Xing.
3. increasing system key space using 6 dimension chaos systems in step S5, improving safety.
4. being decoded using DNA in step S10, and application DNA additions, subtraction and XOR operation, to image three channel pixel
Value carries out coupling encrypted method, solves the low defect of the former independent cryptographic security of algorithm triple channel pixel value, reduces
Correlation between encrypted image pixel improves safety, the attack tolerant of image encryption.
Embodiment
A kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems as shown in Figure 1, including it is as follows
Step:
S1:Known-plaintext colour element image P (.bmp formats), picture size are M × N, extract three chrominance channels of image
Matrix respectively constitutes the matrix P of three M × NR, PG, PB。
S2:A random number R is generated, 32 hexadecimal image hash value MD5 are sought using formula (2).
MD5=MD (P, R) (10)
S3:MD5 is divided into 8 parts, i.e. MD (j)={ dj1dj2dj3dj4, j=1 ..., 8, and apply formula (3) by MD
It is normalized between (0,0.01).
D (i)=hex2dec (MD (i)), i=1 ..., 8 (11)
S4:4 numbers such as { D (1), D (3), D (6), D (7) } are arbitrarily chosen from D and are summed obtains s1=D (1)+D (3)+D
(6) (7)+D, and so on seek s2,s3,s4,s5,s6.Absolute error sequence ε={ ε is obtained using formula (4)1,ε2,ε3,ε4,
ε5,ε6}.Wherein if si× 100mod2=0, then εiTake+;Otherwise, εiTake-.
S5:Updated 6 dimension chaos system initial parameter x ' is obtained using formula (5)i0, i=1,2 ..., 6, substitution
6th-CNN high-order chaos systems iteration m+3MN times, m value obtains chaos sequence Y={ y using formula (6) before removal1,y2,y3,
y4,y5,y6}。
xi'=xi0+εi, i=1,2 ..., 6 (13)
yi=xi×1014Mod256, i=1,2 ..., 6 (14)
S6:T=MD5 (32) mod6+1 is calculated with last position MD5, takes ytPreceding 3M obtain 1 × 3M of line shuffle sequence
TN1;Take yt+1mod6+1Obtain the TN of row scrambling sequence M × 3N2;Take yt+2mod6+1Preceding M N-bit and application formula (7) obtain it is bright
The TN of 1 × MN of literary DNA decoding rules sequence3;Take yt+3mod6+1, yt+4mod6+1And yt+5mod6+1Preceding 2M × N, odd term application
Formula (7) obtains the TN of 1 × MN of decoding rule41,TN51,TN61, even item acquisition triple channel chaos encryption preprocessing sequence 1 ×
The TN of MN42,TN52,TN62。
TN=ymod8+1 (15)
S7:By plaintext PR,PG,PBEach pixel point value be converted into 8 bits, such as (128)10=
(10000000)2, it is one group by its every 2, such as (10000000)2=(10 | 00 | 00 | 00)2, according to TN3DNA decodings are carried out,
Decoding principle is:If 1) TN3(i)=1, then 00=A, 11=T, 10=C, 01=G;If 2) TN3(i)=2, then 00=A, 11=
T, 01=C, 10=G;If 3) TN3(i)=3, then 11=A, 00=T, 10=C, 01=G;If 4) TN3(i)=4, then 11=A, 00
=T, 01=C, 10=G;If 5) TN3(i)=5, then 10=A, 01=T, 00=C, 11=G;If 6) TN3(i)=6, then 01=A,
10=T, 00=C, 11=G;If 7) TN3(i)=7, then 10=A, 01=T, 11=C, 00=G;If 8) TN3(i)=8, then 01=
A, 10=T, 11=C, 00=G.Plaintext DNA encoding is respectively obtained after decodingTriple channel chaos encryption
Preprocessing sequence TN42、TN52、TN62According to coding sequence TN41, TN51, TN61The above process is copied to carry out DNA decodings, after one yard
Obtain triple channel chaos encryption DNA sequence dna
S8:Line shuffle:It willIt is sequentially connected the matrix P for constituting a 3M × N1, using formula (8)
Obtain sequence TN1In element be arranged in TN by ascending order1In position sequence TN1′.By P1The first row be moved to P1TN1′
(1) row, P1The second row be moved to P1TN1' (2) row ..., and so on, until P13M rows be moved to P1
TN1' (3M) behaviors stop, and obtain matrix P after line shuffle1out。
TN '=sort (TN) (16)
S9:Row scramble:By P1outIt is converted to the matrix P of M × 3N2, sequence TN is obtained using formula (8)2In every a line member
Element is arranged in TN by ascending order2In position sequence TN2′.By P2The i-th row jth row element be moved to P1The i-th row TN2′
(i, j) is arranged, by this operation, until P1M rows 3N row be moved to P1M rows TN2' (M, 3N) behaviors stop, and obtain row and set
Matrix P after unrest2out。
S11:It willWithIt is converted to decimal number and compound, finally obtains ciphertext image Cout(.bmp lattice
Formula).
Image encryption method proposed by the present invention is emulated using MATLAB softwares, the test of plaintext image selection standard
Coloured image Parrot (picture size 256 × 256) as shown in Figure 2 a, carries out it coloured image based on 6 dimension chaos systems
One secondary key DNA encryptions, key parameter x10=0.31, x20=0.63, x30=0.76, x40=0.26, x50=0.38, x60=
0.49, m=1280 encryption, and analytical performance.
It is as shown in Figure 3a to be obtained into ciphertext image according to step S1-S11 for plaintext image first.
Key sensitivity analysis is tested:Use correct key MD5, x10=0.31, x20=1.63, x30=-0.76, x40=
0.66, x50=0.48, x60=0.77, m=1135 are decrypted, and obtain plaintext image such as Fig. 4 a, use false key x respectively10=
0.31+10-15, m=1280+1, MD5=MD5+1 obtain plaintext result images such as Fig. 4 b, Fig. 4 c, Fig. 4 d.It can be with from decrypted result
Find out, key sensibility is high, and key space is big, can keep out cipher key attacks.
Pixel interdependence analysis test:The correlation of adjacent pixel can reflect the diffusion of image pixel, and former
The correlation of two neighboring pixel is usually very big in beginning plaintext image, and the relative coefficient of ciphertext image adjacent pixel is allowed to connect as possible
Nearly zero.Table 1 is original image and each channel pixel interdependence testing results of ciphertext image R, G, B.As can be seen from the table, former
Beginning image correlation is stronger, and ciphertext image correlation is weaker, safe.
Ciphertext change ratio of pixel NPCR and the UACI analysis tests of mean change density:NPCR and UACI indicates a literary pixel
The ciphertext change ratio of pixel and mean change density caused by changing are put, they reflect that Encryption Algorithm resists differential attack
Ability.The value of NPCR and UACI is higher, shows that the ability of the resisting differential attack of Encryption Algorithm is stronger.Table 2 is that ciphertext R, G, B are logical
NPCR testing results between road, table 3 are ciphertext R, G, UACI testing results between channel B.As can be seen that NPCR connects from above table
For nearly 99.6%, UACI close to 33.4%, the ability of the resisting differential attack of Encryption Algorithm is strong.
The Analysis of Entropy is tested:Comentropy H is an important indicator for reacting random signal performance, and signal randomness is got over
Height, H values are closer to 8.Table 4 be in plain text and the comentropy test result of ciphertext, as can be seen from the table, cipher-text information entropy close to 8,
Show that ciphertext randomness is very high.
Table 1 is Fig. 2 a and Fig. 3 a relevance detection results;
Table 2 is the NPCR testing results of Fig. 2 a and Fig. 3 a;
Table 3 is the UACI testing results of Fig. 2 a and Fig. 3 a;
Table 4 is the comentropy H testing results of Fig. 2 a and Fig. 3 a.
Decrypting process:
Image decryption process is the inverse process of image encryption process.
In the present invention, decrypting process can use key x10=0.31, x20=0.63, x30=0.76, x40=0.26, x50
=0.38, x60The key MD5 generated in=0.49, m=1280 and ciphering process, by with the completion of the process of ciphering process contrary
Decryption.
For example, image to be encrypted is standard testing colour Parrot images (picture size 256 × 256), base is carried out to it
In 6 dimension chaos systems coloured image one time key DNA key be MD5, x10,x20,x30,x40,x50,x60, the cromogram of m
As encryption, then key parameter MD5, x can be used when decrypting10, x20, x30, x40, x50, x60, the process of m participation ciphering process contraries
It is decrypted.
A kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems provided by the invention, safety
Height, key space is big, and algorithm is simple, and antidecoding capability is strong, and a new solution is provided for image encryption, is using figure
As the occasion communicated, which has very high use value.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by the embodiment
Limitation, it is other it is any without departing from the spirit and principles of the present invention made by changes, modifications, substitutions, combinations, simplifications,
Equivalent substitute mode is should be, is included within the scope of the present invention.
Table 1
Table 2
Table 3
Table 4
Comentropy H | The channels R | The channels G | Channel B |
Original image | 7.3613 | 6.7591 | 6.0644 |
Encrypted image | 7.9972 | 7.9973 | 7.9975 |
The present invention discloses a kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems, is related to image
Field of encryption systems.The method of use is as follows:Hashing information value MD5 is obtained first with picture and random number R are compound, is used
MD5 values construct absolute error sequence ε={ ε 1, ε 2, ε 3, ε 4, ε 5, ε 6 };Then by absolute error sequence and 6 dimension high-order chaos systems
System initial parameter is combined generation chaos sequence;Plaintext is subjected to DNA sequence dna decoding using DNA sequence encoding rule and carries out figure
As scramble;Plaintext is adjusted into row pixel value using the operation of DNA sequence dna addition, subtraction and XOR operation, more traditional pixel value
Adjustment, DNA sequence dna pixel value adjustment algorithm degree of parallelism is high, improves algorithm operation efficiency, reduces between ciphertext image pixel
Correlation;One time key algorithm is introduced, encryption system key is made to be full of variety, key sensibility is high;Quote absolute error
Concept, when encryption system with plaintext be associated, improve sensibility, the safety of encryption system.
Claims (1)
1. a kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems, which is characterized in that including following
Step:
(1) it is .bmp formats for plaintext colour element image P, picture size is M × N, extracts three chrominance channel matrixes of image
Respectively constitute the matrix P of three M × NR, PG, PB;
(2) random number R is generated, 32 hexadecimal image hash value MD5 are sought,
MD5=MD (P, R);
(3) MD5 is divided into 8 parts, i.e. MD (j)={ dj1dj2dj3dj4, j=1 ..., 8, by MD be normalized to (0,0.01) it
Between,
D (i)=hex2dec (MD (i)), i=1 ..., 8;
(4) 4 numbers { D (1), D (3), D (6), D (7) } are arbitrarily chosen from D and are summed obtains
s1=D (1)+D (3)+D (6)+D (7),
And so on seek s2,s3,s4,s5,s6, obtain absolute error sequence ε={ ε1,ε2,ε3,ε4,ε5,ε6, if si×
100mod2=0, then εiTake+;Otherwise, εiTake-,
(5) updated 6 dimension chaos system initial parameter x ' is obtainedi0, i=1,2 ..., 6, substitution 6th-CNN high-order chaos system
Iteration of uniting m+3MN times, m value obtains chaos sequence y={ y before removal1,y2,y3,y4,y5,y6,
xi'=xi0+εi, i=1,2 ..., 6,
yi=xi×1014Mod256, i=1,2 ..., 6;
(6) it uses last position MD5 to calculate t=MD5 (32) mod6+1, takes ytPreceding 3M obtain the TN of 1 × 3M of line shuffle sequence1;
Take y(t+1)mod6+1Obtain the TN of row scrambling sequence M × 3N2;Take y(t+2)mod6+1Preceding M N-bit and obtain plaintext DNA decoding rules
The TN of 1 × MN of sequence3;Take y(t+3)mod6+1, y(t+4)mod6+1And y(t+5)mod6+1Preceding 2M × N, odd term obtain decoding rule 1
The TN of × MN41,TN51,TN61, the TN of 1 × MN of even item acquisition triple channel chaos encryption preprocessing sequence42,TN52,TN62
TNi=ymod8+1;
(7) by plaintext PR,PG,PBEach pixel point value be converted into 8 bits, be one group by its every 2, according to TN3Into
Row DNA decodings, 7.1) if TN3(i)=1, then 00=A, 11=T, 10=C, 01=G;If 7.2) TN3(i)=2, then 00=A, 11
=T, 01=C, 10=G;If 7.3) TN3(i)=3, then 11=A, 00=T, 10=C, 01=G;If 7.4) TN3(i)=4, then 11
=A, 00=T, 01=C, 10=G;If 7.5) TN3(i)=5, then 10=A, 01=T, 00=C, 11=G;If 7.6) TN3(i)=
6, then 01=A, 10=T, 00=C, 11=G;If 7.7) TN3(i)=7, then 10=A, 01=T, 11=C, 00=G;If 7.8)
TN3(i)=8, then 01=A, 10=T, 11=C, 00=G, respectively obtain plaintext DNA encoding after decodingTriple channel chaos encryption preprocessing sequence TN42、TN52、TN62According to coding sequence TN41, TN51, TN61
DNA decodings are carried out, triple channel chaos encryption DNA sequence dna is obtained after one yard
(8) line shuffle:It willIt is sequentially connected the matrix P for constituting a 3M × N1, obtain sequence TN1In
Element is arranged in TN by ascending order1In position sequence TN1', by P1The first row be moved to P1TN1' (1) row, P1Second
Row is moved to P1TN1' (2) row ..., and so on, until P13M rows be moved to P1TN1' (3M) behaviors stop, and obtain
Matrix P after to line shuffle1out;
TN '=sort (TN) (1)
(9) row scramble:By P1outIt is converted to the matrix P of M × 3N2, obtain sequence TN2In each row element be arranged in by ascending order
TN2In position sequence TN2', by P2The i-th row jth row element be moved to P1The i-th row TN2' (i, j) is arranged, until P1's
M rows 3N row are moved to P1M rows TN2' (M, 3N) behaviors stop, and obtain matrix P after row scramble2out;
(10) pixel value adjusts:By P2outResolve into 3 M × N matrix P3R、P3G、P3B, image pixel value is added
It is close, wherein symbolFor DNA add operations, For DNA subtractions: For DNA XOR operation, rule is:
Finally obtain ciphertext image arrayWith
(11) willWithIt is converted to decimal number and compound, finally obtains ciphertext image Cout.bmp format.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510242546.2A CN104809685B (en) | 2015-05-13 | 2015-05-13 | A kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510242546.2A CN104809685B (en) | 2015-05-13 | 2015-05-13 | A kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104809685A CN104809685A (en) | 2015-07-29 |
CN104809685B true CN104809685B (en) | 2018-08-17 |
Family
ID=53694490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510242546.2A Active CN104809685B (en) | 2015-05-13 | 2015-05-13 | A kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104809685B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105681622B (en) * | 2015-12-31 | 2018-06-26 | 复旦大学 | A kind of color image encrypting method based on cell neural network hyperchaos and DNA sequence dna |
CN106301766B (en) * | 2016-11-14 | 2019-08-09 | 成都信息工程大学 | A kind of One-Way Encryption method based on chaos system |
CN107070927B (en) * | 2017-04-19 | 2020-12-04 | 中国石油大学(华东) | Jump covert communication method based on DNA encryption |
CN107451948B (en) * | 2017-08-09 | 2020-09-29 | 山东师范大学 | Image encryption and decryption method and system based on chaos and DNA dynamic plane operation |
CN109918923B (en) * | 2019-01-25 | 2023-08-25 | 哈尔滨理工大学 | Multi-channel color image chaotic encryption method based on DNA coding |
CN110149200B (en) * | 2019-06-06 | 2020-03-20 | 四川大学 | Color image encryption method based on dynamic DNA and 4D chaos |
CN110969564B (en) * | 2019-11-29 | 2020-11-24 | 珠海大横琴科技发展有限公司 | Image encryption method and device, electronic equipment and readable storage medium |
CN111651775A (en) * | 2020-04-29 | 2020-09-11 | 北京奇艺世纪科技有限公司 | Image encryption and decryption method and device, electronic equipment and storage medium |
CN111757321B (en) * | 2020-05-26 | 2021-10-15 | 西安交通大学 | Active eavesdropping resistant secure transmission method in 5G system |
CN116455546B (en) * | 2022-12-09 | 2023-10-10 | 兰州交通大学 | Vector map DNA dynamic coding encryption method considering global element |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6094483A (en) * | 1997-08-06 | 2000-07-25 | Research Foundation Of State University Of New York | Secure encryption and hiding of data and messages in images |
CN104240177A (en) * | 2014-09-22 | 2014-12-24 | 哈尔滨工程大学 | Colored image encryption method based on chaotic system and fractional order Fourier transform |
CN104574257A (en) * | 2014-12-30 | 2015-04-29 | 刘红军 | Chaos-based image encryption and decryption algorithm |
-
2015
- 2015-05-13 CN CN201510242546.2A patent/CN104809685B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6094483A (en) * | 1997-08-06 | 2000-07-25 | Research Foundation Of State University Of New York | Secure encryption and hiding of data and messages in images |
CN104240177A (en) * | 2014-09-22 | 2014-12-24 | 哈尔滨工程大学 | Colored image encryption method based on chaotic system and fractional order Fourier transform |
CN104574257A (en) * | 2014-12-30 | 2015-04-29 | 刘红军 | Chaos-based image encryption and decryption algorithm |
Non-Patent Citations (5)
Title |
---|
A block chaotic image encryption scheme based on self-adaptive modelling;Guodong Ye等;《Applied Soft Computing》;20140930;第22卷(第5期);第351-357页 * |
An image encryption algorithm based on hyper-chaos and DNA sequence;Xiaoling Huang等;《Multimedia Tools and Applications》;20121229;第72卷(第1期);第57-70页 * |
Color image encryption using one-time keys and coupled chaotic systems;Change Dong;《Signal Processing:Image Communication》;20131001;第29卷(第5期);第628-640页 * |
Color image encryption using skew tent map and hyper chaotic system of 6th order CNN;Abdurahman Kadir等;《Optik》;20141231;第125卷(第5期);第1671-1675页 * |
一种改进的基于DNA编码和混沌映射的图像加密方法;魏广政等;《计算机应用研究》;20150420;第32卷(第10期);第3049-3051页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104809685A (en) | 2015-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104809685B (en) | A kind of coloured image one time key DNA encryption methods based on 6 dimension chaos systems | |
Chen et al. | Exploiting self-adaptive permutation–diffusion and DNA random encoding for secure and efficient image encryption | |
Chen et al. | Cryptanalysis and improvement in an image encryption scheme using combination of the 1D chaotic map | |
Li et al. | Cryptanalysis and improvement in a chaotic image cipher using two-round permutation and diffusion | |
Wu et al. | A new color image encryption scheme using CML and a fractional-order chaotic system | |
Patel et al. | Image encryption using different techniques: A review | |
CN101739695B (en) | Three-dimensional Arnold mapping-based image grouping encryption method | |
Zhao et al. | On the security analysis of an image scrambling encryption of pixel bit and its improved scheme based on self-correlation encryption | |
CN107274457B (en) | The encryption method of double color images based on DNA sequence dna operation and Coupling Deformation image grid | |
CN106251278A (en) | A kind of image encryption territory based on histogram feature reversible information hidden method | |
CN104468090A (en) | Chinese character password encoding method based on image pixel coordinates | |
Khan et al. | Td-ercs map-based confusion and diffusion of autocorrelated data | |
Gafsi et al. | Efficient encryption system for numerical image safe transmission | |
CN108898539A (en) | A kind of color image encrypting method of compatible JPEG compression standard | |
Phad Vitthal et al. | A novel security scheme for secret data using cryptography and steganography | |
Hussain et al. | A novel algorithm for thermal image encryption | |
Fang et al. | A secure chaotic block image encryption algorithm using generative adversarial networks and DNA sequence coding | |
Steffi et al. | Modified algorithm of encryption and decryption of images using chaotic mapping | |
Hu et al. | On the Security Analysis of a Hopfield Chaotic Neural Network‐Based Image Encryption Algorithm | |
Wang et al. | A chaotic image encryption scheme based on cat map and MMT permutation | |
Chen et al. | CIE-LSCP: color image encryption scheme based on the lifting scheme and cross-component permutation | |
Pareek et al. | A symmetric encryption scheme for colour BMP images | |
CN104700348B (en) | A kind of color image-adaptive encryption method based on high-order chaos system | |
Saha et al. | Secret image sharing schemes: A comprehensive survey | |
Deepa et al. | Security using colors and Armstrong numbers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |