CN112188030A - Gray scale image encryption coding and decoding technology of pixel combination and complex number transformation - Google Patents

Gray scale image encryption coding and decoding technology of pixel combination and complex number transformation Download PDF

Info

Publication number
CN112188030A
CN112188030A CN202010977345.8A CN202010977345A CN112188030A CN 112188030 A CN112188030 A CN 112188030A CN 202010977345 A CN202010977345 A CN 202010977345A CN 112188030 A CN112188030 A CN 112188030A
Authority
CN
China
Prior art keywords
image
complex number
pixel
gray scale
encryption coding
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.)
Granted
Application number
CN202010977345.8A
Other languages
Chinese (zh)
Other versions
CN112188030B (en
Inventor
孙文卿
张慧星
王军
陈宝华
吴泉英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou University of Science and Technology
Original Assignee
Suzhou University of Science and Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou University of Science and Technology filed Critical Suzhou University of Science and Technology
Priority to CN202010977345.8A priority Critical patent/CN112188030B/en
Publication of CN112188030A publication Critical patent/CN112188030A/en
Application granted granted Critical
Publication of CN112188030B publication Critical patent/CN112188030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/32267Methods relating to embedding, encoding, decoding, detection or retrieval operations combined with processing of the image
    • H04N1/32272Encryption or ciphering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Facsimile Transmission Control (AREA)

Abstract

The invention relates to a pixel combination and complex number transformation encryption coding and decoding technology of a gray level image. In the encryption coding method, firstly, even lines of the image are filled, pixels are combined, and then the gray value is converted to a complex number field to realize encryption coding. The modular length of the complex number is used as a cipher text, the phase angle is used as a key, and the cipher text and the phase angle are respectively transmitted to a receiver through different channels. And after receiving the ciphertext and the key, the receiver recovers the information of the original image by calculating the real part and the imaginary part of the complex number. The technology is simple in implementation mode, can immunize attacks from a phase recovery algorithm, improves the image encryption strength, and has good application potential.

Description

Gray scale image encryption coding and decoding technology of pixel combination and complex number transformation
Technical Field
The present invention relates to image encoding and decoding technologies, and in particular, to an encoding and decoding technology for encrypting a grayscale digital image.
Background
In the fields of modern military, industry, scientific research, life, entertainment and the like, digital images are widely used, and in many scenes, the content of the digital images relates to information such as copyright, privacy, confidentiality and the like, so that the digital images need to be encrypted and encoded and then transmitted.
In the field of image encryption coding, a plurality of ways can realize hiding of image information, wherein one encryption scheme is that gray information of an image is regarded as a group of complex numbers comprising an amplitude part and a phase part, and then the amplitude part and the phase part are respectively encrypted to finally obtain a white noise image with unidentifiable content. In order to realize double random phase encoding, a Fourier transform method can be used to obtain an amplitude and phase distribution function, and the amplitude and phase distribution function is encrypted by a random phase matrix. In addition, the encryption may be implemented using fresnel transform, wavelet transform, cosine transform, or the like. Meanwhile, the encryption method can be realized by using an algorithm and can also be finished by an optoelectronic system.
However, studies have shown that optical transformations are mostly linear transformations and have well-defined physical models. These characteristics present a series of problems to the encryption method. Through model analysis, selection of appropriate parameters and a series of iterations by using a phase recovery algorithm, the information of the image can be reconstructed under the condition of not knowing a key.
In order to solve the problem, the patent proposes an encryption coding method for gray level images, which utilizes the coding of pixel combination and complex number transformation, is not attacked by a phase recovery algorithm, and improves the security.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a gray level image encryption coding and decoding technology of pixel combination and complex number transformation. The present invention will be described in further detail with reference to the accompanying drawings. In order to achieve the above object, the scheme of the invention comprises:
as shown in fig. 1, the encryption encoding includes the following steps:
1) for a gray scale image I (x, y) which is a real number at each pixel, x and y respectively represent the pixel coordinates of the image, the pixel size of the image is M × N, where M represents the number of rows of the image and N represents the number of columns of the image, if M is an odd number then one row is added with a random number after M rows of the image, making M even, the number of rows filled is M1, if M is an odd number then M1= M; if M is even, M1= M + 1.
2) The digital image I (x, y) has a gray scale ranging from 0 to P, and each pixel is adjusted to have a gray scale value of 0
I1(x,y)=I(x,y)-(P+1)/2,(1)
3) Let a (p, q) = I1(x, y), b (p, q) = I1(x, y +1+ M1/2), where x is from 1 to N, y is from 1 to M1/2, and p and q are the pixel coordinates of the encoded picture. A matrix Z of random numbers of the same size as a is generated, the random numbers ranging from-0.5 to 0.5. Taking a (p, q) and b (p, q) as the real part and imaginary part of the complex number, and calculating
t(p,q)=sqrt[a(p,q)^2+b(p,q)^2],(2)
T(p,q)=t(p,q)+Z(p,q)*2*P,(3)
Wherein sqrt () represents the square operation, and ^2 represents the square operation.
4) Determining the phase angle r (p, q) of the complex number according to the equations (4) and (5),
if b (p, q) >0, r (p, q) = arccos [ a (p, q)/t (p, q) ], (4)
If b (p, q) ≦ 0, then r (p, q) = arccos [ a (p, q)/t (p, q) ] + π, (5)
5) T (p, q) is transmitted as a ciphertext to the recipient over a public channel, while r (p, q) is transmitted as a key to the recipient over a secure channel.
At the receiving side, the decoding comprises the following steps:
1) decrypting based on the ciphertext T (p, q) and the key r (p, q),
a1(p,q)=cos[r(p,q)]*T(p,q),(6)
b1(p,q)=sin[r(p,q)]*T(p,q),(7)
2) the original image is restored to be the original image,
I2(x,y)=a1(p,q),(8)
I2(x,y+1+M1/2)=b1(p,q),(9)
and adjusting the gray value of I2(x, y) to be between 0 and P, wherein I2(x, y) is the decoded image.
Compared with the prior art, the invention has the beneficial effects that: the invention provides the image encryption coding and decoding technology which can not be attacked by the phase recovery algorithm, and the technology has the advantages of simple calculation process, good encryption coding and decoding effects and good application prospect.
Drawings
The invention is further described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of image encryption and encoding according to the present invention.
Fig. 2 is a test gray scale image used in an embodiment of the present invention.
Fig. 3 shows an encoded ciphertext image T (p, q) according to an embodiment of the present invention.
Fig. 4 is a decoded grayscale image according to an embodiment of the present invention.
Detailed Description
In order that the manner in which the above recited objects, features and advantages of the present invention are obtained will be readily understood, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings.
Example (b):
according to encoding step 1), the pixel size of the grayscale image is 512 x 512, as shown in fig. 2, and no additional lines need to be filled because the number of lines is even.
According to encoding step 2), the maximum value of the image grey scale P = 256, the grey value is adjusted between-128 and 127 according to equation (1).
According to the encoding step 3), a and b are calculated, a random number matrix Z (p, q) is generated, and T (p, q) are calculated according to the equations (2) and (3), and fig. 3 shows the matrix T (p, q) after the encryption encoding.
In the encoding step 4), the phase angle r (p, q) is calculated from the equations (4) and (5).
According to the encoding step 5), T (p, q) is transmitted as a cryptogram to the receiver over a public channel, while r (p, q) and Z (p, q) are transmitted as keys to the receiver over a secure channel.
According to decoding step 1), a1(p, q) and b1(p, q) are calculated from the ciphertext T (p, q) and the keys r (p, q) and Z (p, q).
According to the decoding step 2), the image is restored and the gray value is adjusted, as shown in fig. 4, the decoded image.

Claims (1)

1. The gray level image encryption coding and decoding technology of pixel combination and complex number transformation is characterized in that: the method comprises the following steps:
the encryption coding comprises the following steps:
1) for a gray scale image I (x, y) which is a real number at each pixel, x and y respectively represent the pixel coordinates of the image, the pixel size of the image is M × N, where M represents the number of rows of the image and N represents the number of columns of the image, if M is an odd number then one row is added with a random number after M rows of the image, making M even, the number of rows filled is M1, if M is an odd number then M1= M; if M is even, M1= M + 1;
2) the digital image I (x, y) has a gray scale ranging from 0 to P, and each pixel is adjusted to have a gray scale value of 0
I1(x,y)=I(x,y)-(P+1)/2,(1)
3) Let a (p, q) = I1(x, y), b (p, q) = I1(x, y +1+ M1/2), where x is from 1 to N, y is from 1 to M1/2, and p and q are pixel coordinates of the encoded picture; generating a random number matrix Z with the same size as a, wherein the range of the random number is-0.5 to 0.5; taking a (p, q) and b (p, q) as the real part and imaginary part of the complex number, and calculating
t(p,q)=sqrt[a(p,q)^2+b(p,q)^2],(2)
T(p,q)=t(p,q)+Z(p,q)*2*P,(3)
Wherein sqrt () represents the square operation, and ^2 represents the square operation;
4) determining the phase angle r (p, q) of the complex number according to the equations (4) and (5),
if b (p, q) >0, r (p, q) = arccos [ a (p, q)/t (p, q) ], (4)
If b (p, q) ≦ 0, then r (p, q) = arccos [ a (p, q)/t (p, q) ] + π, (5)
5) Transmitting T (p, q) as a cipher text to a receiver through a public channel, and simultaneously transmitting r (p, q) as a key to the receiver through a secret channel;
at the receiving side, the decoding comprises the following steps:
1) decrypting based on the ciphertext T (p, q) and the key r (p, q),
a1(p,q)=cos[r(p,q)]*T(p,q),(6)
b1(p,q)=sin[r(p,q)]*T(p,q),(7)
2) the original image is restored to be the original image,
I2(x,y)=a1(p,q),(8)
I2(x,y+1+M1/2)=b1(p,q),(9)
and adjusting the gray value of I2(x, y) to be between 0 and P, wherein I2(x, y) is the decoded image.
CN202010977345.8A 2020-09-17 2020-09-17 Gray level image encryption coding and decoding method based on pixel combination and complex number transformation Active CN112188030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010977345.8A CN112188030B (en) 2020-09-17 2020-09-17 Gray level image encryption coding and decoding method based on pixel combination and complex number transformation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010977345.8A CN112188030B (en) 2020-09-17 2020-09-17 Gray level image encryption coding and decoding method based on pixel combination and complex number transformation

Publications (2)

Publication Number Publication Date
CN112188030A true CN112188030A (en) 2021-01-05
CN112188030B CN112188030B (en) 2022-08-05

Family

ID=73921383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010977345.8A Active CN112188030B (en) 2020-09-17 2020-09-17 Gray level image encryption coding and decoding method based on pixel combination and complex number transformation

Country Status (1)

Country Link
CN (1) CN112188030B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113222829A (en) * 2021-02-25 2021-08-06 安徽师范大学 Bezier-based digital image separate storage method and image restoration method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070291855A1 (en) * 2005-12-19 2007-12-20 Zvi Reznic Method, device and system of error-protection of a wireless video transmission
CN109614808A (en) * 2018-12-12 2019-04-12 苏州科技大学 Gray level image encipher-decipher method based on linearity specifications transformation and gamma function
CN110232284A (en) * 2019-06-13 2019-09-13 首都师范大学 A kind of image encryption method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070291855A1 (en) * 2005-12-19 2007-12-20 Zvi Reznic Method, device and system of error-protection of a wireless video transmission
CN109614808A (en) * 2018-12-12 2019-04-12 苏州科技大学 Gray level image encipher-decipher method based on linearity specifications transformation and gamma function
CN110232284A (en) * 2019-06-13 2019-09-13 首都师范大学 A kind of image encryption method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113222829A (en) * 2021-02-25 2021-08-06 安徽师范大学 Bezier-based digital image separate storage method and image restoration method
CN113222829B (en) * 2021-02-25 2023-04-25 安徽师范大学 Bernstein-based digital image splitting method and image restoration method

Also Published As

Publication number Publication date
CN112188030B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
Ke et al. A reversible data hiding scheme in encrypted domain for secret image sharing based on Chinese remainder theorem
Guan et al. An efficient high-capacity reversible data hiding scheme for encrypted images
Chanu et al. A survey paper on secret image sharing schemes
CN102176759A (en) Method for encrypting video streaming information based on hyper-chaotic sequence
Mo et al. Reversible Data Hiding in Encrypted Image Based on Block Classification Permutation.
Singh High PSNR based image steganography
CN115567329A (en) Data security encryption method for network information
CN112188030B (en) Gray level image encryption coding and decoding method based on pixel combination and complex number transformation
Meng et al. Reversible data hiding in encrypted images based on IWT and chaotic system
Halagowda et al. Image encryption method based on hybrid fractal-chaos algorithm
Ye et al. Research on reversible image steganography of encrypted image based on image interpolation and difference histogram shift
Ge et al. An image encryption algorithm based on information hiding
CN112188028B (en) Method for encrypting, encoding and decoding color image by using spherical polar transformation
Hu et al. On the cryptanalysis of a bit-level image chaotic encryption algorithm
CN103945224A (en) Video encryption method based on double random phase encoding
CN109214199B (en) Image encryption method and system and decryption method and system
Yalla et al. GUI Implementation of Modified and Secure Image Steganography Using Least Significant Bit Substitution.
Talal et al. Steganographic Data Hiding Using Quantum Behaved Particle Swarm Optimization and An Enhanced Aes Algorithm
Rajput An EVCS for Color Images with Real Size Image Recovery and Ideal Contrast Using Bit Plane Encoding
Blesswin et al. An improved grayscale visual secret sharing scheme for visual information security
Meghana et al. A new method for secret image transmission via mosaic fragments using ecc key
Moon Forensic multi-dimensional Ary exploited modified direction data embedding approach to increase imperceptibility and robustness of secured data
Shrivas et al. Visual cryptography in the video using halftone technique
Wen et al. Computer and Information Sciences
Amrutha et al. Double Security to Colour Images with DCT based Watermarking and Chaos based Encryption

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
GR01 Patent grant
GR01 Patent grant