CN111476701A - Digital image encryption method and decryption method based on Rijndael symmetric block encryption technology - Google Patents
Digital image encryption method and decryption method based on Rijndael symmetric block encryption technology Download PDFInfo
- Publication number
- CN111476701A CN111476701A CN202010192848.4A CN202010192848A CN111476701A CN 111476701 A CN111476701 A CN 111476701A CN 202010192848 A CN202010192848 A CN 202010192848A CN 111476701 A CN111476701 A CN 111476701A
- Authority
- CN
- China
- Prior art keywords
- encryption
- decryption
- digital image
- image
- encrypted
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/0021—Image watermarking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0618—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0618—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
- H04L9/0631—Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms
Abstract
The invention discloses a digital image encryption method based on Rijndael symmetric block encryption technology, which comprises the following steps: acquiring digital image data to be encrypted; carrying out image binarization processing on the acquired digital image data, and reading a processing result into an encrypted data matrix according to the pixel coordinates of an original image; copying the gray value recorded by the encrypted data matrix to an image encryption array in a byte mode; carrying out block encryption processing on the image encryption array by using an encryption window in a sequential traversal mode; and outputting the encrypted digital image data. Also discloses a digital image decryption method based on the Rijndael symmetric block encryption technology. The invention adopts the idea of grouping symmetry to carry out high-efficiency encryption and decryption operation on the data image, the image data is not distorted and restored to the maximum extent, and the encryption stability and the encryption efficiency are effectively improved.
Description
Technical Field
The invention relates to the technical field of digital image encryption methods, in particular to a digital image encryption method and a digital image decryption method based on a Rijndael symmetric block encryption technology.
Background
Digital image encryption technology is emphasized along with information security and confidentiality technology, and good digital image encryption technology can achieve the purpose that an illegal user cannot decipher image content. The existing digital image encryption technology is mainly used for carrying out computer encryption based on chaos theory, DNA coding and chaos encryption technology on the basis of analyzing chaos characteristics.
However, such digital image encryption techniques have the following drawbacks:
1. the existing digital image encryption technology has pixel replacement, the image pixels are required to be transformed, stretched and the like, and elements in a matrix are rearranged in the process, so that the digital image data has the characteristics of causing information confusion at the initial stage of encryption and poor encryption stability;
2. the existing digital image encryption technology needs introduction of pseudo random numbers, noise introduction in the encryption process is increased, and the encrypted image distortion rate is higher;
3. the existing digital image encryption technology needs to use a complex algorithm in the image encryption process, and causes the situation of low operation efficiency in the large-scale image encryption processing process.
The applicant has therefore made an advantageous search and attempt to solve the above-mentioned problems, in the context of which the technical solutions to be described below have been created.
Disclosure of Invention
One of the technical problems to be solved by the present invention is: aiming at the defects of the prior art, the digital image encryption method based on the Rijndael symmetric block encryption technology is provided for improving the encryption stability, reducing the image distortion rate and improving the encryption efficiency.
The second technical problem to be solved by the present invention is: a digital image decryption method based on Rijndael symmetric block encryption technology is provided.
The invention relates to a digital image encryption method based on Rijndael symmetric block encryption technology, which comprises the following steps:
step S10, acquiring digital image data to be encrypted;
step S11, carrying out image binarization processing on the acquired digital image data, and reading a processing result into an encrypted data matrix according to the pixel coordinates of the original image, wherein the encrypted data matrix records the gray value of the original image;
step S12, copying the gray value recorded by the encrypted data matrix to an image encryption array in a byte mode;
step S13, the encryption window is used for carrying out block encryption processing on the image encryption array in a sequential traversal mode, and the block encryption processing adopts Rijndael symmetric block encryption technology;
in step S14, the encrypted digital image data is output.
In a preferred embodiment of the invention, the encryption window is a 4 byte by 4 byte encryption window.
A digital image decryption method based on Rijndael symmetric block encryption technology as a second aspect of the present invention includes the steps of:
step S20, acquiring digital image data needing to be decrypted;
step S21, the digital image data is binarized, and the processing result is read into a decryption data matrix according to the pixel coordinate of the original image, the decryption data matrix records the gray value of the decryption image;
step S22, copying the grey value of the decrypted image to an image decryption array in a byte mode;
step S23, the decryption window is used for carrying out the grouping decryption processing on the image decryption array in a sequential traversal mode, and the grouping decryption processing adopts a Rijndael symmetric grouping decryption technology;
step S24, outputting the decrypted digital image data
In a preferred embodiment of the invention, the decryption window is a 4 byte by 4 byte decryption window.
Due to the adoption of the technical scheme, the invention has the beneficial effects that: the invention adopts the idea of grouping symmetry to carry out high-efficiency encryption and decryption operation on the data image, the image data is not distorted and restored to the maximum extent, and the encryption stability and the encryption efficiency are effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flow chart of a data image encryption method of the present invention.
Fig. 2 is a flow chart of a data image decryption method of the present invention.
Fig. 3 is a schematic diagram of the Rijndael packet symmetric encryption process of the present invention.
Fig. 4 is a block diagram of one embodiment of a digital image encryption system of the present invention.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further explained below by combining the specific drawings.
Referring to fig. 1, there is shown a digital image encryption method based on Rijndael symmetric block encryption technology according to the present invention, including the steps of:
in step S10, digital image data to be encrypted is acquired.
Step S11, performing image binarization processing on the acquired digital image data, and reading the processing result into an encrypted data matrix according to the pixel coordinates of the original image, where the encrypted data matrix records the gray-level value of the original image.
In step S12, the gray values recorded by the encrypted data matrix are copied to an image encryption array in byte form.
And step S13, performing block encryption processing on the image encryption array in a sequential traversal mode by using the encryption window, wherein the block encryption processing adopts Rijndael symmetric block encryption technology. In this embodiment, the encryption window is a 4 byte by 4 byte encryption window.
In step S14, the encrypted digital image data is output.
Referring to fig. 2, there is shown a digital image decryption method based on Rijndael symmetric block encryption technology according to the present invention, including the steps of:
step S20, acquiring digital image data needing to be decrypted;
step S21, the digital image data is binarized, and the processing result is read into a decryption data matrix according to the pixel coordinate of the original image, the decryption data matrix records the gray value of the decryption image;
step S22, copying the grey value of the decrypted image to an image decryption array in a byte mode;
step S23, the decryption window is used for carrying out the grouping decryption processing on the image decryption array in a sequential traversal mode, and the grouping decryption processing adopts a Rijndael symmetric grouping decryption technology;
step S24, outputting the decrypted digital image data
In a preferred embodiment of the invention, the decryption window is a 4 byte by 4 byte decryption window.
In order to make the digital image encryption and decryption meet the universal standard, the invention uses Rijndael packet symmetric encryption algorithm, namely advanced encryption standard, in the encryption process of the digital image, as shown in FIG. 3. The encryption and decryption processes are performed in 128 bits, the key length is 4 bytes, and the number of encryption rounds is 10 rounds. The encryption and decryption are inverse operation processes.
The invention uses the idea of block symmetric encryption to encrypt digital images by Rijndael symmetric block encryption technology, and the whole encryption system can be composed of a storage device and a computer for encryption, as shown in FIG. 4. The digital image data storage device can be a common U disk, a hard disk or a memory card, and the computer is used for encrypting and decrypting the digital image and is responsible for reading the digital image data, binarizing, encrypting and decrypting the digital image and storing the encrypted or decrypted image data.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.
Claims (4)
1. A digital image encryption method based on Rijndael symmetric block encryption technology is characterized by comprising the following steps:
step S10, acquiring digital image data to be encrypted;
step S11, carrying out image binarization processing on the acquired digital image data, and reading a processing result into an encrypted data matrix according to the pixel coordinates of the original image, wherein the encrypted data matrix records the gray value of the original image;
step S12, copying the gray value recorded by the encrypted data matrix to an image encryption array in a byte mode;
step S13, the encryption window is used for carrying out block encryption processing on the image encryption array in a sequential traversal mode, and the block encryption processing adopts Rijndael symmetric block encryption technology;
in step S14, the encrypted digital image data is output.
2. The digital image encryption method based on the Rijndael symmetric block encryption technique according to claim 1, wherein the encryption window is a 4-byte by 4-byte encryption window.
3. A digital image decryption method based on Rijndael symmetric block encryption technology is characterized by comprising the following steps:
step S20, acquiring digital image data needing to be decrypted;
step S21, the digital image data is binarized, and the processing result is read into a decryption data matrix according to the pixel coordinate of the original image, the decryption data matrix records the gray value of the decryption image;
step S22, copying the grey value of the decrypted image to an image decryption array in a byte mode;
step S23, the decryption window is used for carrying out the grouping decryption processing on the image decryption array in a sequential traversal mode, and the grouping decryption processing adopts a Rijndael symmetric grouping decryption technology;
in step S24, the decrypted digital image data is output.
4. The digital image decryption method based on the Rijndael symmetric block encryption technique according to claim 3, wherein the decryption window is a 4-byte by 4-byte decryption window.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010192848.4A CN111476701A (en) | 2020-03-18 | 2020-03-18 | Digital image encryption method and decryption method based on Rijndael symmetric block encryption technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010192848.4A CN111476701A (en) | 2020-03-18 | 2020-03-18 | Digital image encryption method and decryption method based on Rijndael symmetric block encryption technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111476701A true CN111476701A (en) | 2020-07-31 |
Family
ID=71747571
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010192848.4A Pending CN111476701A (en) | 2020-03-18 | 2020-03-18 | Digital image encryption method and decryption method based on Rijndael symmetric block encryption technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111476701A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114915697A (en) * | 2022-05-12 | 2022-08-16 | 中国电子科技集团公司信息科学研究院 | Optical image encryption method, system and storage medium based on physical window function |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1527249A (en) * | 2003-09-25 | 2004-09-08 | 南京邮电学院 | Quick enciphering method and device for wavelet image |
CN102196320A (en) * | 2011-04-15 | 2011-09-21 | 江苏省现代企业信息化应用支撑软件工程技术研发中心 | Image encrypting and decrypting system |
CN104732137A (en) * | 2015-04-17 | 2015-06-24 | 南开大学 | Android-based method of recognizing multi-mode AES-encrypted (advanced encryption standard encrypted) QR (quick response) codes |
CN106452779A (en) * | 2016-08-31 | 2017-02-22 | 福建联迪商用设备有限公司 | Encryption method and apparatus of fingerprint image data |
CN107578365A (en) * | 2017-09-11 | 2018-01-12 | 哈尔滨工程大学 | Small echo digital watermark embedding and extracting method based on quantum weeds optimizing mechanism |
CN110266729A (en) * | 2019-07-18 | 2019-09-20 | 倪玉根 | Cloud Server login method and device based on image encryption |
-
2020
- 2020-03-18 CN CN202010192848.4A patent/CN111476701A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1527249A (en) * | 2003-09-25 | 2004-09-08 | 南京邮电学院 | Quick enciphering method and device for wavelet image |
CN102196320A (en) * | 2011-04-15 | 2011-09-21 | 江苏省现代企业信息化应用支撑软件工程技术研发中心 | Image encrypting and decrypting system |
CN104732137A (en) * | 2015-04-17 | 2015-06-24 | 南开大学 | Android-based method of recognizing multi-mode AES-encrypted (advanced encryption standard encrypted) QR (quick response) codes |
CN106452779A (en) * | 2016-08-31 | 2017-02-22 | 福建联迪商用设备有限公司 | Encryption method and apparatus of fingerprint image data |
CN107578365A (en) * | 2017-09-11 | 2018-01-12 | 哈尔滨工程大学 | Small echo digital watermark embedding and extracting method based on quantum weeds optimizing mechanism |
CN110266729A (en) * | 2019-07-18 | 2019-09-20 | 倪玉根 | Cloud Server login method and device based on image encryption |
Non-Patent Citations (1)
Title |
---|
李倩倩等: "一种基于 AES 图像加密技术改进", 《电子设计工程》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114915697A (en) * | 2022-05-12 | 2022-08-16 | 中国电子科技集团公司信息科学研究院 | Optical image encryption method, system and storage medium based on physical window function |
CN114915697B (en) * | 2022-05-12 | 2023-06-16 | 中国电子科技集团公司信息科学研究院 | Optical image encryption method, system and storage medium based on physical window function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Puteaux et al. | An efficient MSB prediction-based method for high-capacity reversible data hiding in encrypted images | |
CN111311474B (en) | High-capacity image encryption domain information hiding method | |
Ren et al. | Reversible data hiding in encrypted binary images by pixel prediction | |
CN109348228A (en) | A kind of hiding System and method for of the image encryption domain reversible information based on image segmentation and image space correlation | |
CN111970507B (en) | Reversible data hiding method of ciphertext domain image based on pixel difference coding | |
Wu et al. | Secure reversible data hiding in encrypted images based on adaptive prediction-error labeling | |
CN111861844A (en) | Reversible watermarking method based on image block authentication | |
CN113114869B (en) | Ciphertext domain high-capacity image reversible data hiding method based on MSB prediction | |
Ahmed et al. | A secure image steganography using LSB and double XOR operations | |
CN109547663B (en) | Improved LSB image steganography method combined with cryptography | |
Bhautmage et al. | Advanced video steganography algorithm | |
Mo et al. | Reversible Data Hiding in Encrypted Image Based on Block Classification Permutation. | |
Panchikkil et al. | A convolutional neural network model based reversible data hiding scheme in encrypted images with block-wise Arnold transform | |
Gao et al. | High-performance reversible data hiding in encrypted images with adaptive Huffman code | |
CN102142072A (en) | Encryption processing and decryption processing method and device of electronic files | |
CN111476701A (en) | Digital image encryption method and decryption method based on Rijndael symmetric block encryption technology | |
CN109829322B (en) | Authorization information based real-time encryption and decryption method and system for digital media files | |
Ramya et al. | Steganography based data hiding for security applications | |
CN112019699A (en) | Encrypted image reversible information hiding method based on lossless compression | |
Wang et al. | Multi-level reversible data hiding for crypto-imagery via a block-wise substitution-transposition cipher | |
Kaur et al. | XOR-EDGE based video steganography and testing against chi-square steganalysis | |
CN114119332A (en) | Block chain-based digital watermark writing and reading method and device | |
CN113382127A (en) | Encrypted image reversible information hiding method based on elastic selection and run length coding | |
Vaish et al. | A systematic review on various reversible data hiding techniques in digital images | |
Yadav et al. | A hybrid approach to metamorphic cryptography using KIMLA and DNA concept |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200731 |
|
WD01 | Invention patent application deemed withdrawn after publication |