CN109785219A - A kind of image encryption method based on LFSR status switch - Google Patents
A kind of image encryption method based on LFSR status switch Download PDFInfo
- Publication number
- CN109785219A CN109785219A CN201811617625.7A CN201811617625A CN109785219A CN 109785219 A CN109785219 A CN 109785219A CN 201811617625 A CN201811617625 A CN 201811617625A CN 109785219 A CN109785219 A CN 109785219A
- Authority
- CN
- China
- Prior art keywords
- image
- sequence
- pixel
- lfsr
- scramble
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000009792 diffusion process Methods 0.000 claims abstract description 7
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 230000009466 transformation Effects 0.000 description 6
- 239000011159 matrix material Substances 0.000 description 2
- 230000000739 chaotic effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
Landscapes
- Facsimile Transmission Control (AREA)
- Storage Device Security (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The present invention relates to a kind of image encryption method based on LFSR status switch, steps of the present invention are as follows: image scrambling;Image diffusion;Spacial Analysis;Generate the 128b sequence of LFSR;Image encryption analysis;It obtains a result.The present invention overcomes the problems, such as in conventional art that encryption system key space is small and finite accuracy;The 128b sequence of LFSR ensure that the safety of encryption system;The cipher round results of one-time pad ensure that the safety of plaintext image.
Description
Technical field
The present invention relates to a kind of image encryption methods, more specifically to a kind of image based on LFSR status switch
Encryption method.
Background technique
In recent years, image encryption becomes a research hotspot, but the short cycle of basic sequence limits systematic difference.
Generally, image encryption has 2 processes, first is that scramble, the image pixel that needs encrypt is carried out it is chaotic, eliminate image pixel it
Between correlation, the common approach is that utilizing linear transformation.
Due to the influence of computational accuracy, a large amount of plaintext images are encrypted if necessary, being grouped to plaintext image can protect
Demonstrate,prove the key stream used all in one cycle, it is ensured that encryption all uses different key streams every time.
An original state is often given, LFSR can generate a pseudo-random sequence.When original state is fixed, design
State-transition matrix, it is easy to obtain the sequence of status switch and any combination thereof, and the puppet of very large period can be obtained
Random sequence, LFSR are started to work according to original state and state-transition matrix.
Summary of the invention
The technical problem to be solved in the present invention is that for the defects in the prior art, providing a kind of based on LFSR state
The image encryption method of sequence.
The technical solution adopted by the present invention to solve the technical problems is: constructing a kind of image based on LFSR status switch
Encryption method is replaced using to plaintext image pixel, that is, is rearranged, in order to increase the safety replaced to image encryption
Protection, ensure that the safety of plaintext image.
It is described based on LFSR status switch in the image encryption method of the present invention based on LFSR status switch
Image encryption method step are as follows: 1) image scrambling;2) image is spread;3) Spacial Analysis;4) the 128b sequence of LFSR is generated;
5) image encryption is analyzed;6) it obtains a result.
Implement a kind of image encryption method based on LFSR status switch of the invention, has the advantages that and overcome
Encryption system key space is small in conventional art and finite accuracy problem;The 128b sequence of LFSR ensure that the safety of encryption system
Property;The cipher round results of one-time pad ensure that the safety of plaintext image.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the image encryption method flow chart of the invention based on LFSR status switch
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
As shown in Figure 1, the image encryption method step based on LFSR status switch are as follows: 1) image scrambling;2) image
Diffusion;3) can Spacial Analysis: analysis saves the system space of image, to judge before scramble and directly acquire after scramble
The information of original image;4) generate the 128b sequence of LFSR: what LFSR was selected is 128 grades of shift register, shift register
Generator polynomial be 128 grades of primitive polynomial, without loss of generality, the of the shift-register sequence that primitive polynomial generates
One state is initial key, and any time intercepts from period of state sequence;5) image encryption is analyzed: the figure after diffusion
It is encrypted ciphertext image as saving, then image is analyzed with Encryption Algorithm;6) it obtains a result.
Further, described image scramble is to carry out confusion to the image pixel that needs encrypt, and is eliminated between image pixel
Correlation, replaced using to plaintext image pixel using linear transformation;Described image scramble step are as follows:
1) according to plaintext image actual size situation, first calculating pixel a and number of pixels b, then total number of pixels n
It is exactly a x b;
2) sequential value of n length is arbitrarily intercepted, and sequence is ranked up sequence by size;
3) using the ranking results of step 2) as the permutation table of plaintext image pixel, then plaintext pixel is carried out newly
Sequence and scramble;
4) image after scramble is saved the result after as scramble.
Further, according to above transformation results, effective scramble is had been obtained in pixel.By scramble, plaintext image
Adjacent pixel correlation be broken, but this is a linear transformation, considers the safety of plaintext image, needs to scheme plaintext
As realizing diffusion transformation, i.e. nonlinear transformation.
Further, described image diffusing step are as follows:
1) the plaintext image size encrypted as needed, first calculating pixel a and number of pixels b, then total pixel
Number n is exactly a x b;
2) it is arbitrarily intercepted within 1 period and retains nx8 sequential value of every sequence;
3) due to the value that pixel is all between 0~255, nx8 sequential value of every sequence is converted into 0 by conversion~
Value between 255, i.e., new pixel value;
4) image after diffusion is saved is encrypted ciphertext image.
The image encryption method based on LFSR status switch is by linear feedback shift register (LFSR) status switch
As the forming initial fields algorithm of image, the initial value of not given 128b, so that it may the continuously 128b's needed
LFSR status switch, the demand of the plaintext image encrypted as needed determine to be actually needed how many a 128b keys.
Although being disclosed by above embodiments to the present invention, scope of protection of the present invention is not limited thereto,
Under conditions of without departing from present inventive concept, deformation, the replacement etc. done to above each component will fall into right of the invention
In claimed range.
Claims (3)
1. a kind of image encryption method based on LFSR status switch, which is characterized in that the figure based on LFSR status switch
As encryption method step are as follows: 1) image scrambling;2) image is spread;3) Spacial Analysis: analysis saves the system space of image,
To judge that the information of original image can be directly acquired before scramble and after scramble;4) the 128b sequence of LFSR: LFSR choosing is generated
What is selected is 128 grades of shift register, and the generator polynomial of shift register is 128 grades of primitive polynomial, without loss of generality,
First state of the shift-register sequence that primitive polynomial generates is initial key, when any from period of state sequence
Carve interception;5) image encryption is analyzed: it is encrypted ciphertext image that the image after diffusion, which is saved, then with Encryption Algorithm pair
Image is analyzed;6) it obtains a result.
2. the image encryption method according to claim 1 based on LFSR status switch, which is characterized in that described image is set
Confusion disorderly is carried out to the image pixel that needs encrypt, the correlation between image pixel is eliminated, using to plaintext image pixel
It is replaced;Described image scramble step are as follows:
1) according to plaintext image actual size situation, first calculating pixel a and number of pixels b, then total number of pixels n is exactly
a x b;
2) sequential value of n length is arbitrarily intercepted, and sequence is ranked up sequence by size;
3) using the ranking results of step 2) as the permutation table of plaintext image pixel, new sequence is then carried out to plaintext pixel
And scramble;
4) image after scramble is saved the result after as scramble.
3. the image encryption method according to claim 1 based on LFSR status switch, which is characterized in that described image expands
It takes a walk rapid are as follows:
1) the plaintext image size encrypted as needed, first calculating pixel a and number of pixels b, then total number of pixels n is just
It is a x b;
2) it is arbitrarily intercepted within 1 period and retains nx8 sequential value of every sequence;
3) due to the value that pixel is all between 0~255, by conversion nx8 sequential value of every sequence be converted into 0~255 it
Between value, i.e., new pixel value;
4) image after diffusion is saved is encrypted ciphertext image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811617625.7A CN109785219A (en) | 2018-12-28 | 2018-12-28 | A kind of image encryption method based on LFSR status switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811617625.7A CN109785219A (en) | 2018-12-28 | 2018-12-28 | A kind of image encryption method based on LFSR status switch |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109785219A true CN109785219A (en) | 2019-05-21 |
Family
ID=66498749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811617625.7A Pending CN109785219A (en) | 2018-12-28 | 2018-12-28 | A kind of image encryption method based on LFSR status switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109785219A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737685A (en) * | 2018-05-15 | 2018-11-02 | 聊城大学 | A kind of image encryption method of the adaptation mechanism based on chaos |
-
2018
- 2018-12-28 CN CN201811617625.7A patent/CN109785219A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737685A (en) * | 2018-05-15 | 2018-11-02 | 聊城大学 | A kind of image encryption method of the adaptation mechanism based on chaos |
Non-Patent Citations (1)
Title |
---|
邢宇航等: "基于LFSR状态序列的混沌序列图像加密方案", 《信息安全研究》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Zhang et al. | An efficient image encryption scheme based on S-boxes and fractional-order differential logistic map | |
Rhouma et al. | Cryptanalysis of a new image encryption algorithm based on hyper-chaos | |
Wang et al. | Chaotic encryption algorithm based on alternant of stream cipher and block cipher | |
Tanveer et al. | Multi-images encryption scheme based on 3D chaotic map and substitution box | |
KR102544298B1 (en) | Hardware assisted fast pseudorandom number generation | |
CN101378314A (en) | Method for generating key sequence and apparatus for generating cipher key | |
Sathishkumar et al. | Image encryption using random pixel permutation by chaotic mapping | |
CN103491279A (en) | 4-neighborhood exclusive or image encryption method based on hyper-chaos Lorenz system | |
CN115883052A (en) | Data encryption method, data decryption method, device and storage medium | |
CN104883580A (en) | System and method for video security convolution calculation based on homomorphic encryption | |
Ali et al. | Image encryption based on highly sensitive chaotic system | |
CN106100819A (en) | Image encrypting and decrypting system and image encrypting and decrypting method | |
Li et al. | Breaking a chaotic cryptographic scheme based on composition maps | |
CN105262557A (en) | Method for generating pseudo-random sequences in LTE (Long Term Evolution) system | |
CN109361830A (en) | A kind of image encryption method based on plaintext | |
Acharya | Image encryption using a new chaos based encryption algorithm | |
CN109785219A (en) | A kind of image encryption method based on LFSR status switch | |
CN113259089A (en) | Image encryption method based on combination of chaos principle and genetic algorithm | |
Alshammari | Cryptanalysis of a bilateral-diffusion image encryption algorithm based on dynamical compound chaos | |
CN207458127U (en) | A kind of coloured image encrypting and deciphering system of the facing mobile apparatus based on double chaos | |
Minas et al. | Color Image Encryption Using Hybrid Method of Fractal-Based Key and Private XOR Key | |
Zhang et al. | Image encryption algorithm Based on Logistic chaotic system and s-box scrambling | |
KR101131167B1 (en) | Method and apparatus for generating key stream for stream cipher, s-box for block cipher and method for substituting input vector using the s-box | |
CN110474967B (en) | Block chain experiment system and method | |
CN104837131B (en) | A kind of batch Cramer-Shoup cryptographic methods based on batch processing multi-exponentiation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190521 |