Image encryption method based on quaternary cyclic shift

Through the image encryption method based on quaternary cyclic shift diffusion, using chaotic sequences and cyclic shift operations, the problems of limited image encryption capacity, low efficiency and weak security are solved, and efficient and secure network transmission of image content is achieved. and storage.

CN115150054BInactive Publication Date: 2024-09-17CHINA UNIV OF MINING & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210680753.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing image encryption methods have problems such as limited encryption capacity, low encryption efficiency, or weak security, making it difficult to effectively ensure the security of image transmission and storage over the network.

Method used

An image encryption method based on quaternary cyclic shift diffusion is adopted to achieve image encryption and decryption by generating chaotic sequences, integerization, sorting, scrambling, decimal to quaternary conversion and quaternary cyclic shift operations. One of the four cyclic shift modes is randomly selected for diffusion operation.

Benefits of technology

It improves the efficiency and security of image encryption, solves the problem of single transformation method in traditional methods, and realizes secure network transmission and storage of image content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115150054B
    Figure CN115150054B
Patent Text Reader

Abstract

With the rapid development of network technology, the security of network information transmission is becoming more and more important. In order to solve the network transmission and storage security problems of image content, an image encryption method based on quaternary cyclic shift is proposed. This method adopts the traditional scrambling-diffusion framework. In the scrambling stage, the chaotic sequence is used to sort the pixel positions of the original image; in the diffusion stage, a method of image diffusion is designed by combining quaternary and cyclic shift operations to achieve the change of pixel values. Experimental results show that this method can protect the original image content at the same time, with good encryption effect, strong security and high efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an information encryption technology, in particular to an image encryption method. Background Art

[0002] Nowadays, the rapid development of computer and network technology has brought about earth-shaking changes in people's lives, and various digital information has been widely used and disseminated. Among them, the application scenarios of multimedia information, especially digital images, involve many fields. Images can carry a lot of private information, and image information in special fields such as military and commerce has high requirements for confidentiality. Since images are easily illegally attacked by attackers when transmitted in the network, this information is leaked and tampered with, facing huge threats. Therefore, image encryption has become a hot issue in academia and industry.

[0003] Digital images are intuitive, vivid, vivid, informative, highly correlated, and highly redundant. In order to ensure the security of network storage and transmission of image content, a variety of image encryption methods have been proposed. However, current image encryption methods often have problems such as limited encryption capacity, low encryption efficiency, or weak security.

[0004] In order to protect the security of image network transmission and storage, four cyclic shift diffusion methods are defined, and the transformation is performed in quaternary. A quaternary cyclic shift diffusion-based image encryption method is proposed. This method randomly selects a cyclic shift method for diffusion operation, which improves the efficiency and security of the encryption method. Summary of the invention

[0005] The purpose of the present invention is to propose an image encryption method based on quaternary cyclic shift diffusion in view of the problems that the existing image encryption methods have limited encryption capacity, low encryption efficiency or weak security.

[0006] Technical solution of the present invention: To achieve the above-mentioned purpose of the invention, the technical solution adopted is an image encryption method based on quaternary cyclic shift diffusion. Let the sender be Alice and the receiver be Bob. Alice's encryption steps are detailed as follows:

[0007] 1. The image encryption method based on quaternary cyclic shift is characterized in that the encryption process is as follows:

[0008] Step 1: Generate chaotic sequence: Let the original image P 1 , whose size is m × n , randomly select the initial value of the Logistic map x 0 and control parameters u 1, and the initial value y 0 and control parametersu 2. Use formula (1) to iterate 1000+ times mn times and discard the first 1000 sequence values, we can get two sequences with the same length. mn Chaotic sequence X= { x i}and Y= { y i};

[0009] x n+1 = u (1 - x n )× x n , (1)

[0010] Among them, the iteration value x n ∈(0, 1), control parameter u ∈(3.57, 4];

[0011] Step 2: Integerization of chaotic sequence: Calculation,

[0012] z i =mod ( floor ( y i ×10 14 ), 4), i =1, 2, ..., mn , (2)

[0013] in, y i ∈ Y , mod (·) is the modulo operation function, floor (·) is a floor function; it can generate a length of mn Integer chaotic sequence Z= { z i};

[0014] Step 3: Chaotic sequence sorting: Use formula (3) to sort X To sort,

[0015] [ C , S ] = sort ( X ), (3)

[0016] in, sort (·) is the ascending sort function,C is the new chaotic sequence after sorting, S is the index vector;

[0017] Step 4: Image scrambling: P 1 Convert to a size of mn Vector P 2 ,use S And formula (4) changes P 2 The element position in , we can get a length of mn The scrambled vector P 3 ,

[0018] p 3 i = p 2 si , i =1, 2, …, mn , (4)

[0019] in, P 2 = { p 2 i}, P 3 = { p 3 i}, s i ∈ S ;

[0020] Step 5: Convert decimal to quaternary: P 3 Each decimal pixel value in is converted into a 4-bit quaternary number, and a length of mn The quaternary vector P 4 = { p 4 i};

[0021] Step 6: Image Diffusion: Using Z i ∈ Z Different values ​​of define the four cyclic shift modes shown in formula (5), let a i 1, a i 2, ai 3 and a i 4 are p 4 i The quaternary digits of

[0022] , (5)

[0023] right P 4 Performing a quaternary circular shift operation on all pixel values ​​in can obtain a length of mn The diffusion vector P 5 = { p 5 i};

[0024] Step 7: Convert quaternary to decimal: P 5 Each 4-bit quaternary number is converted into a decimal pixel value, and a size of mn Vector P 6 , and then P 6 Convert to a size of m × n The matrix is ​​the encrypted image.

[0025] During the decryption process, the same chaotic sequence is used to encrypt the image. P 5 Perform decryption to restore the original image P 1 ; Bob’s decryption process is the reverse process of Alice’s encryption.

[0026] Beneficial effects: In view of the problems of limited encryption capacity, low encryption efficiency or weak security in current image encryption methods, the present invention proposes an image encryption method based on quaternary cyclic shift diffusion. The main contributions are as follows: (1) A cyclic shift diffusion selection function is defined, four cyclic shift modes are given, one is randomly selected, and the cyclic shift diffusion is implemented by transformation in quaternary to achieve the purpose of changing the size of pixel values, solving the problem of single transformation mode of general diffusion methods (such as XOR operation); (2) Based on the defined cyclic shift diffusion selection function, an image encryption method based on quaternary cyclic shift diffusion is proposed; (3) Experimental results and method analysis show that the new method has good encryption effect, strong security and high efficiency, and can achieve network transmission and storage security of image content. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 :Image encryption flow chart based on quaternary cyclic shift diffusion;

[0028] Figure 2 : original image;

[0029] Figure 3 : Encrypted image. DETAILED DESCRIPTION

[0030] Figure 1 It is an image encryption flow chart based on quaternary cyclic shift diffusion.

[0031] The programming software used is Matlab R2019b, arbitrarily selected Figure 2 The grayscale image shown P 1 As the original image. Using the proposed image encryption method based on quaternary cyclic shift diffusion, Alice's encryption process is detailed as follows.

[0032] Step 1: Generate chaotic sequence: Let the original image P 1 , whose size is 512×512, and the initial value of the Logistic map is randomly selected x 1 0 = 0.85 and y 1 0=0.67 and control parameters u 1=3.71 and u 2=3.83. Using formula (1), we iterate 1000+512×512 times and discard the first 1000 sequence values, and we can get two chaotic sequences with a length of 512×512. X 1 = { x 1 i}and Y 1 = { y 1 i}, i =1, 2, ..., 262144.

[0033] Step 2: Integerization of chaotic sequence: According to formula (2), y 1 i Calculate and generate a chaotic sequence of integers with a length of 512×512 Y 2 = { y 2 j}.

[0034] Step 3: Image scrambling: P 1 Convert to a one-dimensional vector P 2 , and then use the sort function in formula (3) to sort and change the pixel position of the matrix to obtain a scrambled vector with a length of 512×512 P 3 .

[0035] Step 4: Convert decimal to quaternary: P 3 Each decimal pixel value in is converted into a 4-bit quaternary number, and a quaternary vector with a length of 512×512 is obtained. P 4 = { p 4 i}.

[0036] Step 5: Image Diffusion: Using z i ∈ Z Different values ​​of define the four cyclic shift modes shown in formula (5). P 4 Perform a quaternary circular shift operation on all pixel values ​​in to obtain a diffusion vector with a length of 512×512 P 5 = { p 5 i}.

[0037] Step 6: Convert quaternary to decimal: P 5 Each 4-bit quaternary number is converted into a decimal pixel value, and a vector of size 512×512 is obtained. P 6 , and then P 6 Converted into a matrix of size 512×512, which is the encrypted image, such as Figure 3 shown.

[0038] In the decryption process, the same chaotic sequence is used to decrypt the encrypted image to obtain the original image. Figure 2 As shown in Figure 2. Bob's decryption process is the reverse process of Alice's encryption.

Claims

1. An image encryption method based on quaternary cyclic shift, characterized in that: The encryption process is as follows: Step 1: Generate chaotic sequence: Let the original image P 1 , whose size is m × n , randomly select the initial value of the Logistic map x 0 and control parameters u 1, and the initial value y 0 and control parameters u 2. Use formula (1) to iterate 1000+ times mn times and discard the first 1000 sequence values, we can get two sequences with the same length. mn Chaotic sequence X= { x i }and Y= { y i }; x n+1 = u (1 - x n )× x n , (1) Among them, the iteration value x n ∈(0, 1), control parameter u ∈(3.57, 4]; Step 2: Integerization of chaotic sequence: Calculation, z i =mod ( floor ( y i ×10 14 ), 4), i =1, 2, ..., mn , (2) in, y i ∈ Y , mod (·) is the modulo operation function, floor (·) is a floor function; it can generate a length of mn Integer chaotic sequence Z= { z i }; Step 3: Chaotic sequence sorting: Use formula (3) to sort X To sort, [ C , S ] = sort ( X ), (3) in, sort (·) is the ascending sort function, C is the new chaotic sequence after sorting, S is the index vector; Step 4: Image scrambling: P 1 Convert to a size of mn Vector P 2 ,use S And formula (4) changes P 2 The element position in , we can get a length of mn The scrambled vector P 3 , p 3 i = p 2 si , i =1, 2, …, mn (4) in, P 2 = { p 2 i }, P 3 = { p 3 i }, s i ∈ S ; Step 5: Convert decimal to quaternary: P 3 Each decimal pixel value in is converted into a 4-bit quaternary number, and a length of mn The quaternary vector P 4 = { p 4 i }; Step 6: Image Diffusion: a i 1, a i 2, a i 3 and a i 4 are p 4 i The quaternary digits of z i ∈ Z Different values ​​of define the four cyclic shift modes shown in formula (5): , (5) right P 4 Performing a quaternary circular shift operation on all pixel values ​​in can obtain a length of mn The diffusion vector P 5 = { p 5 i }; Step 7: Convert quaternary to decimal: P 5 Each 4-bit quaternary number is converted into a decimal pixel value, and a size of mn Vector P 6 , and then P 6 Convert to a size of m × n The matrix is ​​the encrypted image.