WO2014075469A1 - Method and device for information hiding - Google Patents

Method and device for information hiding Download PDF

Info

Publication number
WO2014075469A1
WO2014075469A1 PCT/CN2013/081235 CN2013081235W WO2014075469A1 WO 2014075469 A1 WO2014075469 A1 WO 2014075469A1 CN 2013081235 W CN2013081235 W CN 2013081235W WO 2014075469 A1 WO2014075469 A1 WO 2014075469A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
secret information
embedded
image block
module
Prior art date
Application number
PCT/CN2013/081235
Other languages
French (fr)
Chinese (zh)
Inventor
贺菲菲
胡森
潘志斌
邓小曼
王凌飞
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014075469A1 publication Critical patent/WO2014075469A1/en

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09CCIPHERING OR DECIPHERING APPARATUS FOR CRYPTOGRAPHIC OR OTHER PURPOSES INVOLVING THE NEED FOR SECRECY
    • G09C5/00Ciphering apparatus or methods not provided for in the preceding groups, e.g. involving the concealment or deformation of graphic data such as designs, written or printed messages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • G06T1/005Robust watermarking, e.g. average attack or collusion attack resistant
    • 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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0051Embedding of the watermark in the spatial domain
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0065Extraction of an embedded watermark; Reliable detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N2201/00Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
    • H04N2201/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
    • H04N2201/3201Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N2201/328Processing of the additional information
    • H04N2201/3281Encryption; Ciphering

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

Disclosed is a method for information hiding, comprising: encrypting an original image, dividing the encrypted image into image blocks, dividing each image block into two or more parts, embedding secret information into corresponding parts of the image blocks, and issuing the image having embedded therein the secret information; receiving the image having embedded therein the secret information, decrypting the image having embedded therein the secret information, dividing the decrypted image into image blocks, dividing each image block into two or more parts, extracting the embedded secret information, and restoring the original image. Also disclosed is a device for information hiding. Utilization of the technical solution of the present invention increases the accuracy rate of secret information extraction and the accuracy rate of original image restoration.

Description

一种信息隐藏方法及装置 技术领域  Information hiding method and device
本发明涉及信息处理技术领域, 具体涉及一种信息隐藏方法及装置。 背景技术  The present invention relates to the field of information processing technologies, and in particular, to an information hiding method and apparatus. Background technique
加密技术作为保障信息安全的最基本方法, 在信息安全技术领域发挥 着重要的作用。 加密技术的实现思想是: 在发送端利用密钥与原始数据进 行某种处理或运算, 使得原始数据变得不可识别; 在接收端只有拥有密钥 的一方才能利用密钥将加密后的数据恢复出来, 进而得到原始数据。 虽然, 加密技术令原始数据变得不可识别, 但是对于多媒体数据来说, 如视频, 音频以及图像等, 加密后, 这些多媒体数据变得不可识别, 即 "不可视" 或者 "不可听", 破坏了原始数据的价值和意义。 另外, 加密技术使得原始 数据(明文) 变成加密数据(密文), 虽然密文让人难以识别, 但也正是这 种密文与明文存在的巨大差异, 暗示此原始数据的重要性, 加大了攻击者 的注意力和关注度, 使得攻击者窃取密文并进行破解。  As the most basic method to ensure information security, encryption technology plays an important role in the field of information security technology. The realization idea of the encryption technology is: using the key and the original data to perform some processing or operation on the transmitting end, so that the original data becomes unrecognizable; only the party having the key can recover the encrypted data by using the key at the receiving end. Come out and get the raw data. Although the encryption technology makes the original data unrecognizable, for multimedia data, such as video, audio and images, after encryption, the multimedia data becomes unrecognizable, that is, "invisible" or "inaudible", destroying The value and significance of the original data. In addition, the encryption technology makes the original data (plain text) into encrypted data (ciphertext). Although the ciphertext is difficult to recognize, it is the huge difference between the ciphertext and the plaintext, suggesting the importance of the original data. Increased the attention and attention of the attacker, allowing the attacker to steal the ciphertext and crack it.
为保障信息传输的安全性, 通常将信息加密技术与信息隐藏技术结合 起来。 信息隐藏技术是发送端将加密后的普通信息作为载体, 利用嵌入运 算将秘密信息嵌入到载体中进行传输; 接收端利用提取运算将隐藏在普通 载体中的秘密信息提取出来, 进而得到秘密信息。 其中, 载体可以为图像, 视频或音频等。 这样, 利用普通信息作为秘密信息的传输载体来进行信息 交换, 降低了关注度, 提高了安全性。  In order to ensure the security of information transmission, information encryption technology and information hiding technology are usually combined. The information hiding technology is that the transmitting end encrypts the ordinary information as a carrier, and uses the embedded operation to embed the secret information into the carrier for transmission; the receiving end extracts the secret information hidden in the ordinary carrier by using the extracting operation, thereby obtaining the secret information. The carrier may be an image, a video or an audio. In this way, ordinary information is used as a transmission carrier of secret information for information exchange, which reduces attention and improves security.
现有技术中, 发送端利用密钥对图像 I进行加密处理, 这里, 加密处理 具体是指密钥与图像 I进行位异或,再将加密后的图像 I,作为图像载体进行 信息隐藏。 具体的信息隐藏过程如下所述: 加密后的图像 Γ作为秘密信息 的载体图像进行信息嵌入, 先将图像 Γ均等分割, 分成多个图像块, 每个 图像块的像素为 Nx N ;这里,取 N=8,需要嵌入的秘密信息比特的位数 n=l, 那么, 需要嵌入的秘密信息比特为 0或 1 ; 对于每个图像块, 利用一个随机 密钥将 象素随机且等分为 2n个部分, 即: 两个部分 SG和 Si ; In the prior art, the transmitting end encrypts the image I by using a key. Here, the encryption processing specifically refers to performing bitwise exclusive OR between the key and the image I, and then encrypting the encrypted image I as an image carrier. The specific information hiding process is as follows: The encrypted image is used as secret information. The carrier image is embedded in the information, and the image is first equally divided into a plurality of image blocks, and the pixels of each image block are Nx N; here, taking N=8, the number of bits of the secret information bits to be embedded is n=l, Then, the secret information bits to be embedded are 0 or 1; for each image block, the pixels are randomly and equally divided into 2 n parts by using a random key, namely: two parts S G and Si;
当需要嵌入的秘密信息为比特 0时, 将当前图像块中 S0部分的所有像 素进行低三位取反, Si部分的像素保持不变; When the secret information to be embedded is bit 0, all the pixels of the S 0 portion of the current image block are inverted by the lower three bits, and the pixels of the Si portion remain unchanged;
当需要嵌入的秘密信息为比特 1时, 将当前图像块中 Si部分的所有像 素进行低三位取反, SG部分的像素保持不变; When the secret information to be embedded is bit 1, all the pixels of the Si portion in the current image block are inverted by the lower three bits, and the pixels of the S G portion remain unchanged;
其中, 每个像素由 8 比特组成; 上述将低三位取反即是将组成每个像 素的低三位比特进行取反, 为原始嵌入模式;  Wherein, each pixel is composed of 8 bits; the above inversion of the lower three bits is to invert the lower three bits constituting each pixel to be the original embedded mode;
对每个图像块都进行上述处理, 便得到嵌入秘密信息后的加密载体图 像 1"。  The above processing is performed for each image block, and the encrypted carrier image 1" after the secret information is embedded is obtained.
在接收端, 利用密钥对接收到嵌入秘密信息后的加密载体图像 I"进行 解密, 得到解密后图像 DI; 先将图像 DI分成多个图像块, 每个图像块的像 素为 Nx N, 这里取 N=8; 利用与接收端相同的随机密钥, 将每个图像块进 行随机且均等的划分, 因为发送端嵌入的秘密信息比特位数为 n=l, 所以嵌 入的秘密信息比特为 0或 1, 那么, 在接收端需要提取的秘密信息比特位数 仍然为 1位, 这里, 将图像 DI的每个图像块仍然划分为 2n, 即两个部分 Mo和 Mi ; At the receiving end, the encrypted carrier image I" after receiving the embedded secret information is decrypted by using a key to obtain a decrypted image DI; first, the image DI is divided into a plurality of image blocks, and the pixel of each image block is Nx N, here Take N=8; use the same random key as the receiving end to randomly and equally divide each image block, because the number of bits of the secret information embedded in the transmitting end is n=l, so the embedded secret information bit is 0. Or 1, then, the number of bits of the secret information that needs to be extracted at the receiving end is still 1 bit. Here, each image block of the image DI is still divided into 2 n , that is, two parts Mo and Mi;
将当前图像块中的 Mo部分中所有像素进行低三位取反, 得到 Mo,; 将当前图像块中的 部分中所有像素进行低三位取反, 得到 ,; Mo'和 组成一个新的图像块 B0, Mo和 '组成一个新的图像块 Bi ; 那么, 接下来就在新的图像块 B0、 Bj中做出选择, 依据公式( 1 )波动性预 估公式来分别计算 B。和 ^的波动性 f。、 fi :
Figure imgf000004_0001
其中, x=0、 1, Bx, u, v表示 B0 ( B 处于位置 (M,v)的像素取值; 得到 Β。的波动性为 f。、 Bj的波动性为 f ,并判断 f。 和 f 大小,当 f。 <fi ,
All the pixels in the Mo portion of the current image block are inverted by the lower three bits to obtain Mo, and all the pixels in the current image block are inverted by the lower three bits to obtain; Mo' and form a new image. Blocks B 0 , Mo and ' constitute a new image block Bi; then, the selection is made in the new image blocks B 0 , Bj , and B is calculated separately according to the formula ( 1 ) volatility prediction formula. And the volatility f of ^. , f i :
Figure imgf000004_0001
Where x=0, 1, B x , u, v denotes B 0 (B is the value of the pixel at position ( M , v); the volatility of obtaining Β is f., the volatility of Bj is f, and judging f. and f size, when f. <fi,
B0为原始图像块, 提取秘密信息比特 0; 当 ί <ίο, 8 为原始图像块, 提取 秘密信息比特 1 ; B 0 is the original image block, and the secret information bit 0 is extracted; when ί < ίο, 8 is the original image block, the secret information bit 1 is extracted;
从上述说明可看出, 比较 的大小, 取较小的值, 最后将较小取值 fx 的 X由十进制转化为二进制, 就是需要提取的秘密信息比特。 As can be seen from the above description, the size of the comparison takes a smaller value, and finally the X of the smaller value f x is converted from decimal to binary, which is the secret information bit that needs to be extracted.
计算所有图像块的两个部分 B0和 的波动性,即可得到所有原始图像 块和嵌入到加密图像 Γ中的所有秘密信息比特。 Calculating the volatility of the two parts B 0 sum of all image blocks, all original image blocks and all secret information bits embedded in the encrypted image frame are obtained.
秘密信息是否能正确提取、 以及原始图像是否能正确恢复, 都需要依 靠波动性的正确预估, 波动性的预估与嵌入运算和提取运算有着密不可分 的关系, 嵌入运算对图像块植入的波动性越大, 则预估时能得到更好的结 果; 提取运算的预估方法越精密, 则提取的秘密信息越准确。  Whether the secret information can be correctly extracted and whether the original image can be restored correctly depends on the correct prediction of volatility. The estimation of volatility is closely related to the embedded operation and the extraction operation. The embedded operation is applied to the image block. The greater the volatility, the better the results can be obtained when estimating; the more precise the estimation method of the extraction operation, the more accurate the extracted secret information.
现有技术中的信息隐藏技术虽然令秘密信息的安全性得到了提高, 但 因为嵌入运算采用的原始嵌入模式即像素低三位取反(如图 3 ( c ) 所示)、 以及提取运算采用的波动性预估公式都比较简单, 所以, 存在着秘密信息 正确提取率、 原始图像恢复正确率不高的缺陷。  Although the information hiding technology in the prior art improves the security of the secret information, the original embedding mode adopted by the embedding operation is the inverse of the lower three bits of the pixel (as shown in FIG. 3(c)), and the extraction operation is adopted. The volatility estimation formula is relatively simple. Therefore, there is a defect that the correct extraction rate of secret information and the correct rate of recovery of the original image are not high.
发明内容 Summary of the invention
有鉴于此, 本发明实施例的主要目的在于提供一种信息隐藏方法及装 置, 能够提高秘密信息提取正确率和原始图像恢复正确率。  In view of this, the main purpose of the embodiments of the present invention is to provide an information hiding method and device, which can improve the secret information extraction correct rate and the original image recovery correct rate.
为达到上述目的, 本发明实施例的技术方案是这样实现的:  To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种信息隐藏方法, 所述方法包括:  An embodiment of the present invention provides an information hiding method, where the method includes:
对原始图像进行加密, 对加密后图像分割成图像块, 并将每个图像块 分割成两个以上部分, 将秘密信息嵌入到图像块的相应部分, 并将嵌入有 秘密信息的图像发出; 接收嵌入有秘密信息的图像, 并对嵌入有秘密信息的图像进行解密, 将解密后的图像分割成图像块, 并将每个图像块分割成两个以上部分, 提 取嵌入的秘密信息, 恢复原始图像。 Encrypting the original image, dividing the encrypted image into image blocks, and dividing each image block into two or more parts, embedding the secret information into corresponding parts of the image block, and emitting an image embedded with the secret information; Receiving an image embedded with secret information, decrypting the image embedded with the secret information, dividing the decrypted image into image blocks, and dividing each image block into two or more parts, extracting the embedded secret information, and restoring the original image.
上述方案中, 所述对原始图像进行加密, 包括:  In the above solution, the encrypting the original image includes:
利用加密密钥对原始图像进行加密, 形成加密后图像;  Encrypting the original image with an encryption key to form an encrypted image;
所述将秘密信息嵌入到图像块的相应部分, 并将嵌入有秘密信息的图 像发出, 包括:  Embedding the secret information into a corresponding portion of the image block, and emitting the image embedded with the secret information, including:
利用嵌入模式一或嵌入模式二将秘密信息比特嵌入到图像块的相应部 分, 并将嵌入有秘密信息比特的图像块集合成图像并发送。  The secret information bits are embedded into the corresponding portions of the image block using the embedded mode one or the embedded mode two, and the image blocks in which the secret information bits are embedded are assembled into an image and transmitted.
上述方案中, 所述对嵌入有秘密信息的图像进行解密, 包括: 利用解密密钥对嵌入有秘密信息比特的图像进行解密, 形成解密后图 像;  In the above solution, the decrypting the image embedded with the secret information comprises: decrypting the image embedded with the secret information bit by using the decryption key to form the decrypted image;
所述提取嵌入的秘密信息, 恢复原始图像, 包括: 利用嵌入模式一或 嵌入模式二、 以及改进的波动性预估公式, 将秘密信息比特从图像块相应 部分中提取出来, 直到嵌入到所有图像块的秘密信息均被提取, 原始图像 被恢复。  The extracting the embedded secret information and restoring the original image comprises: extracting the secret information bits from the corresponding part of the image block by using the embedded mode one or the embedded mode two, and the improved volatility prediction formula until being embedded in all the images The secret information of the block is extracted and the original image is restored.
上述方案中, 所述对加密后图像分割成图像块, 并将每个图像块分割 成两个以上部分, 包括:  In the above solution, the image after the encryption is divided into image blocks, and each image block is divided into two or more parts, including:
将加密图像划分为多个均等且不重叠的图像块, 每个图像块有像素 Dividing the encrypted image into multiple equal and non-overlapping image blocks, each image block having pixels
^ χ ^ ;再利用随机密钥将每个图像块均等分为 2"个部分,每个部分的像素为 s2lr; 其中, S、 n均为正整数。 ^ χ ^ ; Then use the random key to divide each image block into 2 "parts, each part of the pixel is s2 l r ; where S and n are positive integers.
上述方案中, 所述利用嵌入模式一或嵌入模式二, 将秘密信息比特嵌 入到图像块的相应部分, 包括;  In the above solution, the embedding mode 1 or the embedding mode 2 is used to embed the secret information bits into the corresponding part of the image block, including:
依据嵌入模式一或嵌入模式二运算规则, 将当前图像块分割的第一个 部分的部分像素保持不变, 部分像素之间进行低三位或低四位异或, 令当 前图像块分割的第二部分至分割的最后一个部分像素保持不变; 将当前图像块分割的第二个部分的部分像素保持不变, 部分像素之间 进行低三位或低四位异或, 令当前图像块分割的第一部分、 第三部分至分 割的最后一个部分的像素保持不变; According to the embedded mode one or the embedded mode two operation rule, the partial pixels of the first part of the current image block segmentation remain unchanged, and the lower three bits or the lower four bits are XOR between the partial pixels, so that The second part of the pre-image block segmentation remains unchanged until the last part of the segmentation; the partial pixels of the second part of the current image block segmentation remain unchanged, and the lower three bits or the lower four-bit XOR between the partial pixels , keeping the pixels of the first part and the third part of the current image block segmentation to the last part of the segmentation unchanged;
依此类推, 直至处理完当前图像块的最后一个部分。  And so on, until the last part of the current image block is processed.
上述方案中, 所述将解密后的图像分割成图像块, 并将每个图像块分 割成两个以上部分, 包括:  In the above solution, the segmentation of the decrypted image into image blocks, and dividing each image block into two or more portions, includes:
将解密后图像划分为多个均等且不重叠的图像块, 每个图像块有像素 Dividing the decrypted image into multiple equal and non-overlapping image blocks, each image block having pixels
7x7;再利用随机密钥将每个图像块均等分为 2"个部分,每个部分的像素为 72 /2"; 其中, Y、 η均为正整数, Υ与 S取值相同。 7x7; Reuse the random key to divide each image block into 2 " parts, each part of the pixel is 7 2 /2"; where Y and η are positive integers, and Υ is the same as S.
上述方案中, 所述利用嵌入模式一或嵌入模式二、 以及改进的波动性 预估公式, 将秘密信息比特从图像块相应部分中提取出来, 直到嵌入到所 有图像块的秘密信息均被提取, 原始图像被恢复, 包括:  In the above solution, the embedded information pattern is extracted from the corresponding portion of the image block by using the embedded mode 1 or the embedded mode 2 and the improved volatility prediction formula, until the secret information embedded in all the image blocks is extracted. The original image is restored, including:
依据嵌入模式一或嵌入模式二运算规则, 将当前图像块分割的第一个 部分的部分像素保持不变, 部分像素之间进行低三位或低四位异或, 令当 前图像块分割第二部分至最后一个部分的像素保持不变, 将当前图像块已 进行嵌入运算的第一个部分与当前图像块像素保持不变的第二部分至最后 一个部分集合成新的图像块;  According to the embedded mode one or the embedded mode two operation rule, the partial pixels of the first part of the current image block segmentation are kept unchanged, and the lower three bits or the lower four bits are XORed between the partial pixels, so that the current image block is split second. The pixels of the partial to the last part remain unchanged, and the first part to the last part of which the current image block has been embedded and the last part of the current image block pixel are combined into a new image block;
将当前图像块分割的第二个部分的部分像素保持不变, 部分像素之间 进行低三位或低四位异或, 令当前图像块分割的第一部分、 第三部分至最 后一个部分像素保持不变, 将当前图像块已进行嵌入运算的第二个部分与 当前图像块像素保持不变的第一部分、 第三部分至最后一个部分集合成新 的图像块;  The partial pixels of the second part of the current image block segmentation are kept unchanged, and the lower three bits or the lower four bits are XORed between the partial pixels, so that the first part, the third part and the last part of the current image block are maintained. Invariably, the second portion of the current image block that has been subjected to the embedding operation is merged with the first portion, the third portion, and the last portion of the current image block pixel to form a new image block;
依此类推, 直至处理完当前图像块的最后一个部分;  And so on, until the last part of the current image block is processed;
利用改进的波动性预估公式, 对所有新的图像块进行波动性计算, 取 波动性小的新的图像块为原始图像块, 并提取相应的秘密信息比特; 其中, 所述改进的波动性预估公式为: Calculate the volatility of all new image blocks using the improved volatility prediction formula The new image block with small fluctuation is the original image block, and the corresponding secret information bits are extracted; wherein the improved volatility estimation formula is:
/
Figure imgf000008_0001
C C
/
Figure imgf000008_0001
C C one
其中, Cu, ¥处于位置(u, V )的图像像素取值, Y为图像块像素值的均 方根。 Where C u , ¥ is the value of the image pixel at position (u, V ), and Y is the root mean square of the pixel value of the image block.
本发明实施例还提供了一种信息隐藏装置, 所述装置包括: 嵌入模块和 提取及恢复模块; 其中,  The embodiment of the present invention further provides an information hiding device, where the device includes: an embedded module and an extraction and recovery module;
所述嵌入模块, 配置为对原始图像进行加密, 对加密后图像分割成图 像块, 并将每个图像块分割成两个以上部分, 将秘密信息嵌入到图像块的 相应部分, 并将嵌入有秘密信息的图像发送至所述提取及恢复模块;  The embedding module is configured to encrypt the original image, divide the encrypted image into image blocks, and divide each image block into two or more parts, embed the secret information into corresponding parts of the image block, and embed the embedded image An image of the secret information is sent to the extraction and recovery module;
所述提取及恢复模块, 配置为接收来自所述嵌入模块的嵌入有秘密信 息的图像, 并对嵌入有秘密信息的图像进行解密, 对经解密后的图像分割 成图像块, 并将每个图像块分割成两个以上部分, 提取嵌入的秘密信息, 恢复原始图像。  The extracting and restoring module is configured to receive an image embedded with secret information from the embedded module, decrypt an image embedded with secret information, divide the decrypted image into image blocks, and divide each image The block is divided into two or more parts, and the embedded secret information is extracted to restore the original image.
上述方案中, 所述嵌入模块包括: 加密子模块、 第一图像分割子模块、 信息嵌入子模块; 其中,  In the above solution, the embedded module includes: an encryption submodule, a first image segmentation submodule, and an information embedding submodule;
所述加密子模块, 配置为利用加密密钥对原始图像进行加密; 所述第一图像分割子模块, 配置为对加密后图像进行分割, 形成图像 块, 再将每个图像块分割成两个以上部分;  The encryption submodule is configured to encrypt the original image by using an encryption key; the first image segmentation submodule is configured to segment the encrypted image to form an image block, and then divide each image block into two The above part;
所述信息嵌入子模块, 配置为利用嵌入模式一或嵌入模式二将秘密信 息比特嵌入到图像块的相应部分, 并将嵌入有秘密信息比特的图像发送至 所述提取及恢复模块。  The information embedding sub-module is configured to embed the secret information bits into respective portions of the image block using the embedding mode one or the embedding mode two, and to transmit the image embedding the secret information bits to the extraction and recovery module.
上述方案中, 所述提取及恢复模块包括: 解密子模块、 第二图像分割 子模块、 信息提取及图像恢复子模块; 其中,  In the above solution, the extraction and recovery module includes: a decryption sub-module, a second image segmentation sub-module, an information extraction and an image restoration sub-module;
所述解密子模块, 配置为接收来自所述嵌入模块的嵌入有秘密信息比 特的图像, 并利用解密密钥对嵌入有秘密信息比特的图像进行解密; 所述第二图像分割子模块, 配置为对经解密后的图像分割成图像块, 并将每个图像块分割成两个以上部分; The decryption submodule is configured to receive embedded secret information ratio from the embedded module a special image, and decrypting an image embedded with a secret information bit by using a decryption key; the second image segmentation sub-module configured to segment the decrypted image into image blocks, and segment each image block into More than two parts;
所述信息提取及图像恢复子模块, 配置为利用嵌入模式一或嵌入模式 二、 改进的波动性预估公式, 提取嵌入的秘密信息比特, 恢复原始图像。  The information extraction and image restoration sub-module is configured to use the embedded mode one or the embedded mode, the improved volatility prediction formula, extract the embedded secret information bits, and restore the original image.
本发明实施例提供的信息隐藏方法及装置, 在嵌入秘密信息时, 利用 嵌入模式一运算规则或嵌入模式二运算规则, 对图像块中部分像素保持不 变、 部分像素进行低三位异或低四位异或, 从而加大了图像像素之间的波 动性; 在提取秘密信息和恢复图像时, 依据嵌入秘密信息时选取的嵌入模 式进行图像块像素恢复, 部分像素保持不变、 部分像素进行低三位或低四 位异或的运算, 同时利用改进的波动性预估公式对嵌入的秘密信息进行提 取和原始图像恢复; 如此, 能使秘密信息提取正确率、 原始图像恢复正确 率得到提高。  The information hiding method and device provided by the embodiment of the present invention, when embedding the secret information, use the embedded mode-operation rule or the embedded mode two operation rule to keep some pixels in the image block unchanged, and some pixels have low-order XOR or low. Four-bit XOR, which increases the volatility between image pixels; when extracting secret information and restoring images, image block pixel recovery is performed according to the embedding mode selected when embedding secret information, and some pixels remain unchanged, and some pixels are performed. Low-order or low-four-OR operation, and the improved volatility prediction formula is used to extract the embedded secret information and restore the original image; thus, the correct rate of secret information extraction and the correct rate of original image restoration can be improved. .
附图说明 DRAWINGS
图 1为本发明实施例的信息隐藏方法的流程示意图;  FIG. 1 is a schematic flowchart diagram of an information hiding method according to an embodiment of the present invention;
图 2为本发明实施例的信息隐藏方法的具体流程示意图;  2 is a schematic flowchart of a method for hiding information according to an embodiment of the present invention;
图 3 ( a ) 为本发明实施例的嵌入模式一运算原理示意图;  FIG. 3( a ) is a schematic diagram of an operation principle of an embedded mode according to an embodiment of the present invention;
图 3 ( b ) 为本发明实施例的嵌入模式二运算原理示意图;  3(b) is a schematic diagram of an operation principle of an embedded mode 2 according to an embodiment of the present invention;
图 3 ( c ) 为原始嵌入模式运算原理示意图;  Figure 3 (c) is a schematic diagram of the original embedded mode operation principle;
图 4为本发明实施例的图像块均等划分示意图;  4 is a schematic diagram of equal division of image blocks according to an embodiment of the present invention;
图 5为本发明实施例的信息隐藏装置组成结构示意图。 具体实施方式 FIG. 5 is a schematic structural diagram of a structure of an information hiding apparatus according to an embodiment of the present invention. detailed description
本发明实施例提供了一种信息隐藏方法, 如图 1所示, 该方法包括: 步骤 10: 对原始图像进行加密, 将加密后图像分割成图像块, 并将每 个图像块分割成两个以上部分, 将秘密信息嵌入到图像块的相应部分, 并 将嵌入有秘密信息的图像发出。  An embodiment of the present invention provides an information hiding method. As shown in FIG. 1, the method includes: Step 10: Encrypt an original image, divide the encrypted image into image blocks, and divide each image block into two. In the above section, the secret information is embedded in the corresponding portion of the image block, and the image in which the secret information is embedded is issued.
这里, 可以利用嵌入模式一或嵌入模式二将秘密信息嵌入到图像块的 相应部分; 所述嵌入到图像块的相应部分是指嵌入到每个图像块分割的两 个以上部分中, 有的嵌入秘密信息, 有的不嵌入秘密信息, 具体哪些部分 嵌入秘密信息可以是随机的。  Here, the secret information may be embedded into a corresponding portion of the image block by using the embedded mode one or the embedded mode two; the corresponding portion embedded in the image block means embedded in two or more parts of each image block segmentation, and some are embedded. Secret information, some do not embed secret information, and which parts of the embedded secret information can be random.
步骤 11 : 接收嵌入有秘密信息的图像, 并对嵌入有秘密信息的图像进 行解密, 将解密后的图像分割成图像块, 并将每个图像块分割成两个以上 部分, 提取嵌入的秘密信息, 恢复原始图像。  Step 11: receiving an image embedded with secret information, decrypting the image embedded with the secret information, dividing the decrypted image into image blocks, and dividing each image block into two or more parts, and extracting the embedded secret information. , restore the original image.
这里, 可以利用嵌入模式一或嵌入模式二、 以及改进的波动性预估公 式提取嵌入的秘密信息, 所采用的嵌入模式与步骤 10中相同。  Here, the embedded secret information can be extracted using the embedded mode one or the embedded mode two, and the improved volatility estimating formula, and the embedding mode employed is the same as in the step 10.
较佳地, 如图 2所示, 步骤 10包括:  Preferably, as shown in FIG. 2, step 10 includes:
步骤 100: 利用加密密钥对原始图像 I进行加密, 形成加密图像 Γ。 这里, 原始图像为 I, 用 I ( i, j )表示原始图像 I中位置 (i, j )处的 像素值, 用^^… ^表示每个像素的 8比特位, 每个像素的 8个比特取 值公式(2 )所示:
Figure imgf000010_0001
Step 100: Encrypt the original image I with an encryption key to form an encrypted image. Here, the original image is I, I ( i, j ) is used to represent the pixel value at the position (i, j ) in the original image I, and ^^... ^ is used to represent the 8-bit of each pixel, 8 of each pixel The bit value formula (2) is shown:
Figure imgf000010_0001
如公式(3 )所示, 将原始图像 I的像素与伪随机 (比特)序列 进 行位异或,将位异或后的比特进行如公式(4 )的运算得到加密后的像素 Γ ,  As shown in the formula (3), the pixel of the original image I is XORed with the pseudo-random (bit) sequence, and the bit after the XOR is subjected to the operation of the equation (4) to obtain the encrypted pixel Γ.
i,J 由像素 i,J .组成的图像为加密图像 I,。 i, J The image consisting of pixels i, J . is an encrypted image I.
Figure imgf000010_0002
( 3 ) 7
Figure imgf000010_0002
(3) 7
J' j =∑^', X2* Q<k<l (4) 这里的伪随机 (比特)序列 为加密密钥。 J ' j =∑^', X2 * Q<k<l (4) The pseudo-random (bit) sequence here is an encryption key.
步骤 101: 对加密图像 I,进行分割, 形成图像块, 并将每个图像块分割 成两个以上部分。  Step 101: Divide the encrypted image I, form an image block, and divide each image block into two or more parts.
这里, 可以利用随机密钥将每个图像块划分为 2"个均等部分。  Here, each image block can be divided into 2" equal parts using a random key.
具体的, 本步骤可以为: 将加密图像 Γ划分为 A个均等且不重叠的图 像块,每个图像块有像素 SxS;再利用随机密钥将每个图像块均等分为 2"个 部分 5*。, 5 , &… 5*^, 这样, 每个部分的像素为 S2/2"。 Specifically, the step may be: dividing the encrypted image into A equal and non-overlapping image blocks, each image block having a pixel SxS; and then equally dividing each image block into 2" portions using a random key *., 5 , &... 5*^, Thus, the pixels of each part are S 2 /2".
其中, n为需要嵌入秘密信息比特的比特位数, n为正整数; 虽然选择 的 n不同, 即: 需要嵌入秘密信息比特的比特位数不同令图像块划分的部 分个数也有所不同, 但是由图像块划分到部分的过程都是类似的; 只要原 始图像像素和每个图像块像素 >^已知, 即可计算出 A, A 为正整数; 后 续方案中的随机密钥与这里的随机密钥相同。  Where n is the number of bits that need to be embedded in the secret information bits, and n is a positive integer; although the selected n is different, that is, the number of bits required to embed the secret information bits is different, so that the number of parts of the image block is different, but The process of dividing the image block into parts is similar; as long as the original image pixel and each image block pixel are >^ known, A, A can be calculated as a positive integer; the random key in the subsequent scheme and the random here The keys are the same.
步骤 102: 利用嵌入模式一或嵌入模式二, 将秘密信息比特嵌入到图像 块的相应部分。  Step 102: Embedding the secret information bits into the corresponding part of the image block by using the embedded mode one or the embedded mode two.
这里, 本发明实施例中嵌入模式一、 嵌入模式二的运算原理分别如图 3 (a)、 图 3 (b)所示, 图中为一个图像块有 64个方格, 每个方格代表一个 像素; 其中,  Here, in the embodiment of the present invention, the operation principles of the embedded mode 1 and the embedded mode 2 are respectively shown in FIG. 3 (a) and FIG. 3 (b), wherein an image block has 64 squares, and each square represents One pixel; where
在采用嵌入模式一和嵌入模式二的图像像素模型中, 填" 0"的方格表示 此像素保持不变; 填 "1"的方格表示此像素将与其相邻(左右和 /或上下)保 持不变的像素进行低三位异或; 填" 2"的方格表示此像素将与其相邻 (左右 和 /或上下)保持不变的像素进行低四位异或; 图 3 (c) 为现有技术中原始 嵌入模式的运算原理, 填" 1 "的方格表示此像素进行低三位取反。  In the image pixel model with embedded mode one and embedded mode two, a square filled with "0" indicates that the pixel remains unchanged; a square filled with "1" indicates that the pixel will be adjacent to it (left and right and/or up and down) A pixel that remains unchanged performs a lower three-bit XOR; a square filled with "2" indicates that the pixel will have a lower four-bit XOR with its neighboring pixels (left and right and/or up and down); Figure 3 (c) For the operation principle of the original embedded mode in the prior art, a square filled with "1" indicates that the pixel is inverted by the lower three bits.
本发明实施例中, 嵌入模式一涉及到像素比特间的低三位异或; 嵌入 模式二既涉及到像素间的低三位异或也涉及到像素间的低四位异或, 虽然 选取的嵌入模式不同, 但是嵌入运算过程是类似的。 In the embodiment of the present invention, the embedded mode 1 involves a lower three-bit XOR between pixel bits; Mode 2 involves both the low three-bit XOR of the pixels and the low four-bit XOR between the pixels. Although the selected embedding modes are different, the embedding process is similar.
举个例子来说, 本例中选取嵌入模式一, 选取 S=8, n=l, 说明此时每 个图像块有像素 64, 需要嵌入秘密信息比特的比特位数为 1位, 即: 需要 嵌入的秘密信息比特为 0或 1,那么,此时每个图像块可均等分为 2"=2^2个 部分, 当前图像块为 B, 那么, B可划分为均等的两个部分 So和 Si, 如图 4所示, 图 4中白色方格为 S0、灰色方格为 Si, Sc^pSi的像素各为
Figure imgf000012_0001
个。
For example, in this example, the embedded mode 1 is selected, and S=8, n=l is selected, indicating that each image block has a pixel 64 at this time, and the number of bits required to embed the secret information bit is 1 bit, that is: The embedded secret information bits are 0 or 1, then, at this time, each image block can be equally divided into 2"=2^2 parts, and the current image block is B. Then, B can be divided into two equal parts So and Si, as shown in Fig. 4, the white square in Figure 4 is S 0 , the gray square is Si, and the pixels of Sc^pSi are
Figure imgf000012_0001
One.
当嵌入秘密信息比特为 0时, 利用嵌入模式一运算规则, So部分的部 分像素保持不变, 部分像素之间进行低三位异或, 如公式(5)或公式(6) 所示, Si部分的所有像素保持不变;  When the embedded secret information bit is 0, using the embedded mode-operation rule, some pixels of the So part remain unchanged, and the lower three bits are XORed between the partial pixels, as shown by the formula (5) or the formula (6), Si All the pixels of the part remain unchanged;
这里,所述嵌入模式一运算规则为: 填" 0"的方格表示此像素保持不变, 填 "1"的方格表示此像素将与其相邻(左右和 /或上下 )保持不变的像素进行 低三位异或;  Here, the operation mode of the embedded mode is: a square filled with "0" indicates that the pixel remains unchanged, and a square filled with "1" indicates that the pixel will remain adjacent thereto (left and right and/or up and down). The pixel performs a lower three-bit XOR;
。,;,Λ =5 θ^,·— w (i,j) s0 k = 0,1,2 (5) o,u,k = Bijt㊉ BiJ+1,k (i, j) s0 k = 0,\,2 (6) . , ; , Λ = 5 θ^,·- w (i,j) s 0 k = 0,1,2 (5) o,u, k = B ijt十 B iJ+1 , k (i, j) s 0 k = 0,\,2 (6)
其中, Bi,j,k表示 So部分在当前图像块 B中位置 (i,j)像素的第 k位比 特; Where Bi, j, k represents the kth bit of the position (i, j) pixel of the So part in the current image block B;
当嵌入秘密信息比特为 1 时, 利用嵌入模式一运算规则, Si部分的部 分像素保持不变, 部分像素进行低三位异或, 如公式(7)或公式(8) 所 示, S。部分的所有像素保持不变;  When the embedded secret information bit is 1, using the embedding mode-one operation rule, the partial pixels of the Si portion remain unchanged, and some of the pixels perform the lower three-bit XOR, as shown by the formula (7) or the formula (8), S. All the pixels of the part remain unchanged;
= Bjjk㊉ (i, j) e s, k = 0,1,2 (7)
Figure imgf000012_0002
= Bjjk㊉ B (i, j)eSl k = 0,1,2 (8) 其中, Bi,j,k表示 Si部分在当前图像块 B中位置 (i,j)像素的第 k位比 特。 利用上述方案, 将 A个均等且不重叠的图像块进行秘密信息比特的嵌 入。
= B jjk ten (i, j) es, k = 0,1,2 (7)
Figure imgf000012_0002
= B jjk X B (i, j) e Sl k = 0,1,2 (8) where Bi,j, k represents the k-th bit of the position (i,j) pixel of the Si portion in the current image block B . With the above scheme, A equal and non-overlapping image blocks are embedded in secret information bits.
这里, 由于选取需要嵌入的秘密信息比特的比特位数 n不同, 导致图 像块划分的部分个数 2n也不同, 但是由图像块划分到部分的过程都是类似 的, 均可利用嵌入模式一或者嵌入模式二进行秘密信息比特的嵌入。 Here, since the number of bits n of the secret information bits to be embedded is different, the number of parts 2 n of the image block division is also different, but the process of dividing the image block into parts is similar, and the embedded mode 1 can be utilized. Or embed mode 2 to embed the secret information bits.
这里, 在进行说明时设置 n=l ; 当 n取大于 1的其它正整数时, 所述的 步骤 102可以为:  Here, n=l is set when the description is made; when n takes another positive integer greater than 1, the step 102 may be:
依据嵌入模式一或嵌入模式二运算规则, 将当前图像块分割的第一个 部分的部分像素保持不变, 部分像素之间进行低三位或低四位异或, 令当 前图像块分割的第二部分至分割的最后一个部分像素保持不变;  According to the embedded mode one or the embedded mode two operation rule, the partial pixels of the first part of the current image block segmentation are kept unchanged, and the lower three bits or the lower four bits are XORed between the partial pixels, so that the current image block is segmented. The second part of the segment to the last part of the segment remains unchanged;
将当前图像块分割的第二个部分的部分像素保持不变, 部分像素之间 进行低三位或低四位异或, 令当前图像块分割的第一部分、 第三部分至分 割的最后一个部分的像素保持不变;  The partial pixels of the second part of the current image block segmentation are kept unchanged, and the lower three bits or the lower four bits are XORed between the partial pixels, so that the first part and the third part of the current image block are segmented to the last part of the segmentation. The pixels remain unchanged;
依此类推, 直至处理完当前图像块的最后一个部分。  And so on, until the last part of the current image block is processed.
步骤 103: 将嵌入有秘密信息比特的图像块集合成图像 D,并发出。 进一步的, 如图 2所示, 步骤 11可以包括:  Step 103: Combine the image blocks in which the secret information bits are embedded into the image D, and issue them. Further, as shown in FIG. 2, step 11 may include:
步骤 110: 接收嵌入有秘密信息比特的图像 D,, 利用解密密钥对嵌入 有秘密信息比特的图像 D,进行解密, 形成解密图像 DI。  Step 110: Receive an image D in which a secret information bit is embedded, and decrypt the image D in which the secret information bit is embedded by using the decryption key to form a decrypted image DI.
具体的, 本步骤利用前面所述的伪随机(比特)序列与图像 D,进行一 次位异或运算, 如公式(9 )所示, 再利用公式(10 )得到解密图像 DI; Specifically, in this step, the pseudo-random (bit) sequence and the image D are used to perform a bitwise exclusive OR operation, as shown in the formula (9), and the decrypted image DI is obtained by using the formula (10);
= ® ^ 0≤ ≤7 ( 9 )  = ® ^ 0 ≤ ≤ 7 ( 9 )
DIu =∑du^ 2k ( 1 ) 其中, , 为解密图像 DI位置(i, j )的像素比特取值, 为图像 D, 位置(i, j ) 的像素比特取值; I)/ 为解密图像 DI位置(i, j ) 的像素; 这 里, 伪随机比特序列 为解密密钥, 解密密钥和加密密钥可取相同值; 步骤 111: 对解密图像 DI进行分割, 形成图像块, 并将每个图像块分 割成两个以上部分。 DI u =∑ d u^ 2k ( 1 ) where , , is the value of the pixel bit of the decrypted image DI position (i, j ), which is the image D, and the pixel bit of the position (i, j) takes the value; I)/ Decrypt the pixel of the image DI position (i, j); this The pseudo random bit sequence is a decryption key, and the decryption key and the encryption key may take the same value; Step 111: Segment the decrypted image DI to form an image block, and divide each image block into two or more parts.
这里, 可以利用随机密钥将每个图像块划分为 2"个均等部分。  Here, each image block can be divided into 2" equal parts using a random key.
具体的,本步骤为:将解密图像 DI划分为 P个均等且不重叠的图像块, 每个图像块有像素 ΓχΓ; 利用与步骤 10中相同的随机密钥, 将每个图像块 均等分为 2n个部分 MQ、 Ml...M2 n-i, 这样, 每个部分的像素为 2/2"。 Specifically, the step is: dividing the decrypted image DI into P equal and non-overlapping image blocks, each image block having a pixel ΓχΓ; using the same random key as in step 10, equally dividing each image block 2n parts M Q , M l ... M 2 n -i, such that the pixels of each part are 2 / 2 ".
这里, 因为步骤 10中嵌入秘密信息比特的比特位数为 n, 所以需要提 取的秘密信息比特的比特位数仍旧为 n, 对图像块的划分仍为 2n个部分; 其中, 只要原始图像像素和每个图像块像素 已知, 即可计算出 P, P 整数; Here, since the number of bits of the secret information bit embedded in step 10 is n, the bit number of the secret information bit to be extracted is still n, and the division of the image block is still 2 n parts; wherein, as long as the original image pixel And each image block pixel is known, then P, P integer can be calculated;
此步骤与步骤 10相对应,通常 P的取值与 A相同, Y的取值与 S相同。 步骤 112:利用嵌入模式一或嵌入模式二、以及改进的波动性预估公式, 将秘密信息比特从图像块相应部分中提取出来, 直到嵌入到所有图像块的 秘密信息比特均被提取, 原始图像被恢复;  This step corresponds to step 10. Usually, the value of P is the same as A, and the value of Y is the same as S. Step 112: using the embedded mode one or the embedded mode two, and the improved volatility prediction formula, extracting the secret information bits from the corresponding portions of the image block until the secret information bits embedded in all the image blocks are extracted, the original image Be restored
具体的, 步骤 10 中嵌入秘密信息比特的比特位数为 n=l、 S=8, 选择 嵌入模式一; 相应的, 本步骤也选择嵌入模式一, 提取的比特位数 n=l、 Y=8, 那么, 利用与步骤 10中相同的随机密钥, 将解密图像 DI的当前图像 块 C划分为均等的两个部分 Μ。和 , M。和 的像素分别为 X ί72η=32。 Specifically, the number of bits of the secret information bits embedded in step 10 is n=l, S=8, and the embedded mode 1 is selected; correspondingly, this step also selects the embedded mode one, and the extracted bit number n=l, Y= 8. Then, using the same random key as in step 10, the current image block C of the decrypted image DI is divided into two equal parts. And, M. The sum of the pixels is X ί72 η =32.
利用嵌入模式一的运算规则, Μ。部分的部分像素保持不变, 部分像素 进行低三位异或如公式( 11 )或公式( 12), 形成 MG,, 部分所有像素保 持不变;Use the algorithm of the embedded mode one, Μ. Part of the pixel remains unchanged, and some pixels perform the lower three-bit XOR as Equation (11) or Equation (12), forming M G , and all the pixels remain unchanged;
Figure imgf000014_0001
('·,·/·) Ε Μ。 0,1,2
Figure imgf000014_0001
('·,···) Ε Μ. 0,1,2
i ,K = IJK ®CW (j,j eM0 k = Q,\,2 (12) 其中, Ci,j,k表示 M0部分在当前图像块 C中位置 (i,j )像素的第 k位比 特; 将 M。,部分和 部分集合成一个新的图像块 Co; i , K = IJK ® C W (j, j eM 0 k = Q, \, 2 (12 ) where, Ci, j, k denotes the position of the M 0 portion in the current image block C (i, j ) K-bit ratio Special; will be M. , part and part are grouped into a new image block Co;
利用嵌入模式一的运算规则, 部分的部分像素保持不变, 部分像素 进行低三位异或如公式(13 )或公式(14)所示, 形成 部分, M。部分 的所有像素保持不变;  By using the operation rule of the embedded mode one, part of the pixels remain unchanged, and some pixels perform the lower three-bit XOR as shown in the formula (13) or the formula (14) to form a part, M. All pixels of the section remain unchanged;
M ^ =C^ ®Cw (ί,])^Μλ k = 0,1,2 (13) M ^ =C^ ®C w (ί,])^Μ λ k = 0,1,2 (13)
M[. k =Cjjt ®CiJ+ k (ι,])^Μλ k = 0,1,2 (14) 其中, Ci,j,k表示 部分在当前图像块 C中位置 (i,j )像素的第 k位比 特; '部分和 Mo部分集合成一个新的图像块 。 M[. k =C jjt ®C iJ+ k (ι,])^Μ λ k = 0,1,2 (14 ) where, Ci,j, k denotes the position (i,j) of the part in the current image block C The kth bit of the pixel; the 'part and the Mo part are grouped into a new image block.
接下来, 利用公式( 15 ) 改进的波动性预估公式, 分别计算新的图像 块 Co和 (^的波动性 fo、 ft:
Figure imgf000015_0001
其中, x=0、 1, Y=8; Cw表示 C0 (d )处于位置 (u,v)的像素取值; 比较 fo和 的大小, 当 ίο <ί时, 取 Co为原始图像块, 提取秘密信息 比特 0; 当 ί <ίο时, 取 (^为原始图像块, 提取秘密信息比特 1;
Next, using the improved volatility estimation formula of equation (15), calculate the new image block Co and (^ the volatility fo, ft:
Figure imgf000015_0001
Where x=0, 1, Y=8; C w denotes the value of the pixel where C 0 (d ) is at position (u, v); compares the size of fo and , when ίο <ί, takes Co as the original image block , extracting the secret information bit 0; when ί <ίο, taking (^ is the original image block, extracting the secret information bit 1;
由此可看出, 比较 fx的大小, 取较小的值, 最后将较小取值 fx的 X由 十进制转化为二进制就是需要提取的秘密信息比特, (^就是当前图像块 C 的原始图像块。 It can be seen that comparing the size of f x takes a smaller value, and finally converting the X of the smaller value f x from decimal to binary is the secret information bit that needs to be extracted, (^ is the original of the current image block C Image block.
将 P个均等且不重叠的图像块均依据上述技术方案进行秘密信息比特 的提取和原始图像块的恢复, 原始图像块的集合便是原始图像。  The P equal and non-overlapping image blocks are extracted according to the above technical solution and the original image block is restored. The original image block is the original image.
上面仅以 n=l为例, 当然 n还可以为其他大于 1的正整数, X取值是随 着 n的取值而变化的, x=0~2n-l。 The above only takes n=l as an example. Of course, n can also be other positive integers greater than 1, and the value of X varies with the value of n, x=0~2 n -l.
当步骤 10选取的 n为大于 1的其它正整数时, 所述步骤 112取与步骤 10相同的 n值, 这时所述步骤 112可以为:  When n selected in step 10 is another positive integer greater than 1, the step 112 takes the same value of n as the step 10, and the step 112 may be:
依据嵌入模式一或嵌入模式二运算规则, 将当前图像块分割的第一个 部分的部分像素保持不变, 部分像素之间进行低三位或低四位异或, 令当 前图像块分割的第二部分至最后一个部分的像素保持不变, 将当前图像块 已进行嵌入运算的第一个部分与当前图像块像素保持不变的第二部分至最 后一个部分集合成新的图像块; According to the embedded mode one or the embedded mode two operation rule, the partial pixels of the first part of the current image block segmentation remain unchanged, and the lower three bits or the lower four bits are XOR between the partial pixels, so that The pixels from the second part to the last part of the pre-image block segmentation remain unchanged, and the first part of the current image block has been embedded and the second part of the current image block pixel remain unchanged. Image block
将当前图像块分割的第二个部分的部分像素保持不变, 部分像素之间 进行低三位或低四位异或, 令当前图像块分割的第一部分、 第三部分至最 后一个部分像素保持不变, 将当前图像块已进行嵌入运算的第二个部分与 当前图像块像素保持不变的第一部分、 第三部分至最后一个部分集合成新 的图像块;  The partial pixels of the second part of the current image block segmentation are kept unchanged, and the lower three bits or the lower four bits are XORed between the partial pixels, so that the first part, the third part and the last part of the current image block are maintained. Invariably, the second portion of the current image block that has been subjected to the embedding operation is merged with the first portion, the third portion, and the last portion of the current image block pixel to form a new image block;
依此类推, 直至处理完当前图像块的最后一个部分;  And so on, until the last part of the current image block is processed;
利用改进的波动性预估公式( 15 ),对所有新的图像块进行波动性计算, 取波动性小的新的图像块为原始图像块, 并提取相应的秘密信息比特。  Using the improved volatility prediction formula (15), the volatility calculation is performed for all new image blocks, and the new image block with small volatility is taken as the original image block, and the corresponding secret information bits are extracted.
基于上述信息隐藏方法, 本发明实施例还提供了一种信息隐藏装置, 如图 5所示, 该装置包括:  Based on the information hiding method, the embodiment of the present invention further provides an information hiding device. As shown in FIG. 5, the device includes:
嵌入模块 50, 配置为对原始图像进行加密, 将加密后图像分割成图像 块, 并将每个图像块分割成两个以上部分, 将秘密信息嵌入到图像块的相 应部分中, 并将嵌入有秘密信息的图像发送至提取及恢复模块 51。  The embedding module 50 is configured to encrypt the original image, divide the encrypted image into image blocks, and divide each image block into two or more parts, embed the secret information into corresponding parts of the image block, and embed the embedded image The image of the secret information is sent to the extraction and recovery module 51.
这里, 可以利用嵌入模式一或嵌入模式二将秘密信息嵌入到图像块的 相应部分; 所述嵌入到图像块的相应部分是指嵌入到每个图像块分割的两 个以上部分中, 有的嵌入秘密信息, 有的不嵌入秘密信息, 具体哪些部分 嵌入秘密信息可以是随机的。  Here, the secret information may be embedded into a corresponding portion of the image block by using the embedded mode one or the embedded mode two; the corresponding portion embedded in the image block means embedded in two or more parts of each image block segmentation, and some are embedded. Secret information, some do not embed secret information, and which parts of the embedded secret information can be random.
提取及恢复模块 51,配置为接收来自所述嵌入模块 50的嵌入有秘密信 息的图像, 并对嵌入有秘密信息的图像进行解密, 将解密后的图像分割成 图像块, 并将每个图像块分割成两个以上部分, 提取嵌入的秘密信息, 恢 复原始图像。  The extraction and recovery module 51 is configured to receive an image embedded with the secret information from the embedded module 50, decrypt the image embedded with the secret information, divide the decrypted image into image blocks, and divide each image block Split into two or more parts, extract the embedded secret information, and restore the original image.
在实际应用中, 所述嵌入模块 50、提取及恢复模块 51可由中央处理器 ( CPU, Central Processing Unit ), 或数字信号处理器(DSP, Digital Signal Processor ), 或可编程遝辑阵歹1 J ( FPGA, Field Programmable Gate Array )来 实现。 所述 CPU、 或 DSP、 或 FPGA均可内置于通讯双方的服务器和 /或终 端中。 In an actual application, the embedded module 50 and the extraction and recovery module 51 may be implemented by a central processing unit. (CPU, Central Processing Unit), or digital signal processor (DSP, Digital Signal Processor), or a programmable intermixed mutli bad 1 J (FPGA, Field Programmable Gate Array) is achieved. The CPU, or DSP, or FPGA may be built into servers and/or terminals of both communication parties.
这里, 可以利用嵌入模式一或嵌入模式二、 以及改进的波动性预估公 式提取嵌入的秘密信息, 所采用的嵌入模式与所述嵌入模块 50采用的嵌入 模式相同。  Here, the embedded secret information can be extracted using the embedded mode one or the embedded mode two, and the improved volatility estimating formula, and the embedding mode employed is the same as the embedding mode adopted by the embedding module 50.
较佳地, 所述嵌入模块 50包括: 加密子模块 500、 第一图像分割子模 块 501、 信息嵌入子模块 502;  Preferably, the embedding module 50 includes: an encryption submodule 500, a first image segmentation submodule 501, and an information embedding submodule 502;
所述加密子模块 500, 配置为利用加密密钥对原始图像进行加密; 所述第一图像分割子模块 501, 配置为对加密后图像进行分割, 形成图 像块, 再将每个图像块分割成两个以上部分;  The encryption sub-module 500 is configured to encrypt the original image by using an encryption key; the first image segmentation sub-module 501 is configured to segment the encrypted image to form an image block, and then divide each image block into More than two parts;
所述信息嵌入子模块 502,配置为利用嵌入模式一或嵌入模式二将秘密 信息比特嵌入到图像块的相应部分, 并将嵌入有秘密信息比特的图像发送 至所述提取及恢复模块 51。  The information embedding sub-module 502 is configured to embed the secret information bits into the corresponding portion of the image block using the embedded mode one or the embedding mode two, and transmit the image in which the secret information bits are embedded to the extraction and recovery module 51.
具体的, 所述加密子模块 500利用加密密钥对原始图像 I进行加密, 形 成加密图像 Γ ; 这里, 加密密钥可为伪随机(比特)序列; 原始图像 I处于 位置(i,j )处的像素值为 /,,, ,。, ,7表示每个像素的 8比特位; 原始图 像像素 与 。 AfA 之间的关系如公式(2 ) 所示, 如公式(3 ) 所示将 原始图像像素 与伪随机(比特)序列 r j,k进行位异或, 得出的结果为加 密后的像素 Γϋ, 如公式(4 ) 所示; 其中, 所述的进行位异或实质上就是 组成原始图像像素 的比特 bij,k与伪随机 (比特)序列 之间进行的位 异或 (k为 1~8正整数), 由加密后的像素 I'ij组成的图像为加密图像 Γ。 Specifically, the encryption sub-module 500 encrypts the original image I by using an encryption key to form an encrypted image Γ; here, the encryption key may be a pseudo-random (bit) sequence; the original image I is at the position (i, j) The pixel value is /,,, ,. , , 7 represents 8 bits of each pixel; the original image pixels are. The relationship between AfA is as shown in equation (2). The original image pixel is XORed with the pseudo-random (bit) sequence r j , k as shown in equation (3), and the result is the encrypted pixel. ϋ , as shown in the formula (4); wherein, the performing bitwise exclusive OR is substantially a bitwise OR between the bits bij, k and the pseudo-random (bit) sequence constituting the original image pixel (k is 1~) 8 positive integer), the image composed of the encrypted pixel I'ij is an encrypted image Γ.
所述第一图像分割子模块 501,将加密图像 Γ划分为 Α个均等且不重叠 的图像块, 利用随机密钥将每个图像块均等分为 2"个部分 5*。, 5 … Sr_x; 当每个图像块有像素 SxS时, 均等分的 2"个部分的每个部分有像素 S2/2"; 其中, n为需要嵌入的秘密信息比特的比特位数, 取值为正整数; 只要原始 图像像素和每个图像块像素 已知, 即可计算出 A, A为正整数。 The first image segmentation sub-module 501 divides the encrypted image into two equal and non-overlapping image blocks, and equally divides each image block into 2" parts 5* using a random key. 5 ... S r _ x ; When each image block has a pixel SxS, each portion of the equally divided 2" portions has a pixel S 2 /2"; wherein n is the number of bits of the secret information bits to be embedded, and the value is a positive integer; As long as the original image pixels and each image block pixel are known, A and A can be calculated as positive integers.
所述 n为预先设置的,只要所述嵌入模块 50和所述提取及恢复模块 51 达到一致即可; A与 S为在所述嵌入模块 50中预先设置的, 具体是在所述 第一图像分割子模块 501预先设置的; 在所述提取及恢复模块 51中预先设 置的 P、 Y分别与这里的 A、 S取值相同。  The n is preset, as long as the embedding module 50 and the extraction and recovery module 51 are consistent; A and S are preset in the embedding module 50, specifically in the first image. The dividing sub-module 501 is preset; the P and Y preset in the extracting and restoring module 51 are the same as the values of A and S here.
将所述嵌入模块 50预先设置为 n=l、 S=8, 具体是所述第一图像分割 子模块 501预先设置 n=l、 S=8, 即将加密图像 I,分割的每个均等图像块的 像素为 5 x = 64,每个图像块均等划分为 2n=2i=2个部分; 当前图像块为 B, 利用随机密钥将 B分割成均等的两个部分为 So和 Si, 如图 4所示。 The embedding module 50 is preset to n=l, S=8, specifically, the first image segmentation sub-module 501 presets n=l, S=8, that is, the encrypted image I, and each equal image block that is divided. The pixel is 5 x = 64, and each image block is equally divided into 2 n = 2i = 2 parts; the current image block is B, and the random key is used to divide B into equal parts into So and Si, as shown in the figure. 4 is shown.
以所述信息嵌入子模块 502选取嵌入模式一, 嵌入秘密信息比特为 0、 1为例:  The embedded embedding sub-module 502 selects the embedding mode one, and the embedded secret information bits are 0, 1 as an example:
当信息嵌入子模块 502嵌入秘密信息比特为 0时, 利用嵌入模式一的 运算规则决定当前图像块 B的 So部分的部分像素保持不变, 部分像素之间 进行低三位异或, 如公式(5 )或(6 )所示, Si部分的所有像素保持不变; 这里,所述嵌入模式一运算规则为:填" 0"的方格表示此像素保持不变,填 "1" 的方格表示此像素将与其相邻 (左右和 /或上下)保持不变的像素进行低三 位异或;  When the information embedding sub-module 502 embeds the secret information bit to 0, the operation rule of the embedding mode one determines that part of the pixels of the So part of the current image block B remain unchanged, and the lower three-bit XOR between the partial pixels, such as a formula ( 5) or (6), all the pixels of the Si portion remain unchanged; here, the operation mode of the embedded mode is: a square filled with "0" indicates that the pixel remains unchanged, and a square of "1" is filled. Indicates that this pixel will have a lower three-bit XOR for pixels that are adjacent to it (left and right and/or up and down);
当信息嵌入子模块 502嵌入秘密信息比特为 1 时, 利用嵌入模式一的 运算规则决定当前图像块 B的 Si部分的部分像素保持不变, 部分像素之间 进行低三位异或, 如公式(7 )或(8 )所示, SQ部分的所有像素保持不变; 利用上述技术方案, 直到将均等且不重叠的 A个图像块都进行了秘密 信息比特的嵌入,然后将嵌入有秘密信息比特的所有图像块集合成图像 D,, 并发送给所述提取及恢复模块 51。 所述提取及恢复模块 51包括: 解密子模块 510、 第二图像分割子模块 511、 信息提取及图像恢复子模块 512; 其中, When the information embedding sub-module 502 embeds the secret information bit to 1, the operation rule of the embedding mode one determines that part of the pixel of the Si portion of the current image block B remains unchanged, and the lower three-bit XOR between the partial pixels, such as a formula ( 7) or (8), all pixels of the S Q portion remain unchanged; with the above technical solution, until the equal and non-overlapping A image blocks are embedded with secret information bits, then the secret information is embedded. All image blocks of bits are assembled into an image D, and sent to the extraction and recovery module 51. The extraction and recovery module 51 includes: a decryption sub-module 510, a second image segmentation sub-module 511, and an information extraction and image restoration sub-module 512;
所述解密子模块 510, 配置为接收来自所述嵌入模块 50的嵌入有秘密 信息比特的图像, 并利用解密密钥对嵌入有秘密信息比特的图像进行解密; 这里, 所述解密子模块 510具体接收来自所述信息嵌入子模块 502的 嵌入有秘密信息比特的图像;  The decryption sub-module 510 is configured to receive an image embedded with the secret information bit from the embedding module 50, and decrypt the image embedded with the secret information bit by using the decryption key; where the decryption sub-module 510 is specific Receiving an image embedded with the secret information bits from the information embedding sub-module 502;
所述第二图像分割子模块 511, 配置为将解密后的图像分割成图像块, 并将每个图像块分割成两个以上部分;  The second image segmentation sub-module 511 is configured to divide the decrypted image into image blocks, and divide each image block into two or more parts;
所述信息提取及图像恢复子模块 512,配置为利用嵌入模式一或嵌入模 式二、 改进的波动性预估公式, 提取嵌入的秘密信息比特, 恢复原始图像。  The information extraction and image restoration sub-module 512 is configured to extract the embedded secret information bits and restore the original image by using the embedded mode one or the embedded mode two, the improved volatility prediction formula.
具体的, 所述提取及恢复模块 51接收图像 D,, 具体可以是所述解密子 模块 510接收图像 D,, 利用解密密钥对图像 D,进行解密; 这里, 解密密钥 与加密密钥可取相同值, 均为伪随机(比特)序列 将伪随机(比特) 序列 与图像 D,进行一次位异或运算,如公式(9 )所示,再利用公式( 10 ) 得到解密图像 DI;  Specifically, the extracting and restoring module 51 receives the image D, and specifically, the decrypting sub-module 510 receives the image D, and decrypts the image D by using a decryption key; here, the decryption key and the encryption key are available. The same value, all pseudo-random (bit) sequences, a pseudo-random (bit) sequence and image D, a bitwise XOR operation, as shown in formula (9), and then use the formula (10) to obtain the decrypted image DI;
所述第二图像分割子模块 511将解密图像 DI划分为 P个均等且不重叠 的图像块, 利用与所述第一图像分割子模块 501 相同的随机密钥将每个图 像块均等分为 个部分 Μ0、 Μι ...Μ2 η Λ ; 每个图像块有像素 y, 那么每 个图像块的每个部分的像素为 y 2 / 2"; The second image segmentation sub-module 511 divides the decrypted image DI into P equal and non-overlapping image blocks, and equally divides each image block into equal pieces by using the same random key as the first image segmentation sub-module 501. Part Μ 0 , Μ ι ... Μ 2 η Λ ; each image block has a pixel y, then the pixel of each part of each image block is y 2 / 2 ";
这里, 因为所述嵌入模块 50 中设置嵌入秘密信息比特的比特位数为 n=l, 所以, 所述提取及恢复模块 51 中需要提取的秘密信息比特的比特位 数仍旧为 n=l ; 那么, 所述第二图像分割子模块 511 对图像块的划分仍为 2n=2 个部分; 其中, 只要原始图像像素和每个图像块像素 已知, 即可 计算出 P, P正整数; Y与 P的取值可与所述嵌入模块 50中的 S与 A取值 相同, 所以, 此处可选取 Y=8; 这里,加密子模块 500、第一图像分割子模块 501、信息嵌入子模块 502、 解密子模块 510、第二图像分割子模块 511、信息提取及图像恢复子模块 512 可由 CPU、 或 DSP、 或 FPGA等来实现; 所述 CPU、 或 DSP、 或 FPGA均 可内置于通讯双方的服务器和 /或终端中。 Here, since the number of bits of the embedded secret information bit set in the embedding module 50 is n=l, the bit number of the secret information bit to be extracted in the extraction and recovery module 51 is still n=l; The division of the image block by the second image segmentation sub-module 511 is still 2 n = 2 portions; wherein, as long as the original image pixel and each image block pixel are known, a P, P positive integer can be calculated; The value of P and P can be the same as the values of S and A in the embedded module 50, so Y=8 can be selected here; Here, the encryption sub-module 500, the first image segmentation sub-module 501, the information embedding sub-module 502, the decryption sub-module 510, the second image segmentation sub-module 511, the information extraction and image restoration sub-module 512 may be by a CPU, or a DSP, or an FPGA. The CPU, or DSP, or FPGA can be built into the server and/or terminal of both communication parties.
所述嵌入模块 50选取的是嵌入模式一, 相应的, 所述提取及恢复模块 51与所述嵌入模块 50选取的嵌入模式相同, 也为嵌入模式一;  The embedding module 50 selects the embedding mode one. Correspondingly, the extraction and recovery module 51 is the same as the embedding mode selected by the embedding module 50, and is also an embedding mode one;
所述信息提取及图像恢复子模块 512, 利用嵌入模式一的运算规则, 将 当前图像块 C的 M。部分的部分像素保持不变,部分像素进行低三位异或如 公式(11 )或公式(12 ) 所示, 形成 MG,, 部分所有像素保持不变, 将 M0,部分和 部分集合成一个新的图像块 C0; The information extraction and image restoration sub-module 512 uses the operation rule of the embedded mode one to set the M of the current image block C. Part of the pixel remains unchanged, and some pixels perform the lower three-bit XOR as shown in formula (11) or formula (12), forming M G , and all the pixels remain unchanged, and M 0 , part and part are assembled into a new image block C 0 ;
所述信息提取及图像恢复子模块 512, 利用嵌入模式一的运算规则, 将 当前图像块 C的 部分的部分像素保持不变,部分像素进行低三位异或如 公式(13 )或公式(14 )所示, 形成 ΜΛ MQ部分所有像素保持不变, 将 Mi,部分和 Mo部分集合成一个新的图像块 d; The information extraction and image restoration sub-module 512 maintains a part of the pixels of the current image block C by using the operation rule of the embedded mode one, and the partial pixels perform the lower three-bit XOR as the formula (13) or the formula (14). ), forming all pixels of the ΜΛ M Q portion remain unchanged, and combining the Mi, part and Mo parts into a new image block d;
最后利用公式(15 ) 改进的波动性预估公式, 分别计算新的图像块 C0 和(^的波动性 fo、 fi , 并比较 fo和 的大小; 当 < 时, 取 Co为原始图 像块, 提取秘密信息比特 0; 当 ί <ίο时, 取 (^为原始图像块, 提取秘密信 息比特 1 ; Finally, using the improved volatility prediction formula of equation (15), calculate the new image blocks C 0 and (of the volatility fo, fi , and compare the size of fo sum; when <, take Co as the original image block, Extract the secret information bit 0; when ί <ίο, take (^ is the original image block, extract the secret information bit 1;
由此可看出, 比较 fx大小, 取较小值, 最后将较小取值 fx的 X由十进 制转化为二进制就是需要提取的秘密信息比特, (^就是当前图像块 C的原 始图像块。 It can be seen that comparing the size of f x and taking a smaller value, and finally converting the X of the smaller value f x from decimal to binary is the secret information bit that needs to be extracted, (^ is the original image block of the current image block C. .
将 P个均等且不重叠的图像块依据上述技术方案均进行秘密信息比特 的提取和原始图像块的恢复, 原始图像块的集合便是原始图像。  The P equal and non-overlapping image blocks are subjected to extraction of secret information bits and restoration of original image blocks according to the above technical solution, and the original image block is the original image.
在上述技术方案中, 选取嵌入模式一, 秘密信息比特位数 n=l, 伪随机 (比特)序列作为加密密钥和解密密钥, 实际上还可以选取嵌入模式二、 选取其他序列作为加密密钥和解密密钥, n还可取其他任何正整数,秘密信 息比特 X由 0~2n-l。 In the above technical solution, the embedded mode 1 is selected, the secret information bit number n=l, the pseudo-random (bit) sequence is used as the encryption key and the decryption key, and the embedded mode can also be selected. Select other sequences as the encryption key and decryption key, n can also take any other positive integer, the secret information bit X is from 0~2 n -l.
本发明实施例提供的信息隐藏方法及装置, 由嵌入模式一运算规则或 嵌入模式二运算规则来决定图像块中哪些像素不变、 哪些像素进行低三位 或低四位异或; 并且, 在嵌入侧, 给图像块之间植入了较大的波动性; 在 提取及恢复侧, 依据选取的嵌入模式决定对图像块中的哪些像素进行低三 位或低四位异或、 哪些像素保持不变, 并结合改进的波动性预估公式, 对 秘密信息进行提取, 对原始图像进行恢复; 利用本发明实施例记载的技术 方案, 减少了秘密信息提取的出错率和原始图像恢复的差错率。  The information hiding method and device provided by the embodiment of the present invention determine whether which pixels in the image block are unchanged, which pixels perform the lower three bits or the lower four bits XOR by embedding the mode one operation rule or the embedding mode two operation rule; On the embedding side, a large volatility is implanted between the image blocks; on the extraction and recovery side, which pixels in the image block are subjected to the lower three or lower four-bit XOR and which pixels are kept according to the selected embedding mode. Invariant, combined with the improved volatility estimation formula, the secret information is extracted, and the original image is restored. With the technical solution described in the embodiment of the invention, the error rate of the secret information extraction and the error rate of the original image recovery are reduced. .
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 claims
1、 一种信息隐藏方法, 所述方法包括: 1. An information hiding method, the method includes:
对原始图像进行加密, 对加密后图像分割成图像块, 并将每个图像块 分割成两个以上部分, 将秘密信息嵌入到图像块的相应部分, 并将嵌入有 秘密信息的图像发出; Encrypt the original image, divide the encrypted image into image blocks, divide each image block into two or more parts, embed the secret information into the corresponding part of the image block, and send the image with the secret information embedded;
接收嵌入有秘密信息的图像, 并对嵌入有秘密信息的图像进行解密, 将解密后的图像分割成图像块, 并将每个图像块分割成两个以上部分, 提 取嵌入的秘密信息, 恢复原始图像。 Receive an image embedded with secret information, decrypt the image embedded with secret information, divide the decrypted image into image blocks, and divide each image block into two or more parts, extract the embedded secret information, and restore the original image.
2、 根据权利要求 1所述的信息隐藏方法, 其中, 所述对原始图像进行 加密, 包括: 2. The information hiding method according to claim 1, wherein the encryption of the original image includes:
利用加密密钥对原始图像进行加密, 形成加密后图像; Use the encryption key to encrypt the original image to form an encrypted image;
所述将秘密信息嵌入到图像块的相应部分, 并将嵌入有秘密信息的图 像发出, 包括: Embedding secret information into the corresponding part of the image block and sending the image with the secret information embedded includes:
利用嵌入模式一或嵌入模式二将秘密信息比特嵌入到图像块的相应部 分, 并将嵌入有秘密信息比特的图像块集合成图像并发出。 Embedding mode one or embedding mode two is used to embed secret information bits into corresponding parts of image blocks, and the image blocks embedded with secret information bits are assembled into images and sent out.
3、 根据权利要求 1或 2所述的信息隐藏方法, 其中, 所述对嵌入有秘 密信息的图像进行解密, 包括: 3. The information hiding method according to claim 1 or 2, wherein the decrypting the image embedded with secret information includes:
利用解密密钥对嵌入有秘密信息比特的图像进行解密, 形成解密后图 像; Use the decryption key to decrypt the image embedded with secret information bits to form a decrypted image;
所述提取嵌入的秘密信息, 恢复原始图像, 包括: The method of extracting embedded secret information and restoring the original image includes:
利用嵌入模式一或嵌入模式二、 以及改进的波动性预估公式, 将秘密 信息比特从图像块相应部分中提取出来, 直到嵌入到所有图像块的秘密信 息均被提取, 原始图像被恢复。 Using embedding mode one or embedding mode two and the improved volatility prediction formula, the secret information bits are extracted from the corresponding parts of the image blocks until the secret information embedded in all image blocks is extracted and the original image is restored.
4、 根据权利要求 1或 2所述的信息隐藏方法, 其中, 所述对加密后图 像分割成图像块, 并将每个图像块分割成两个以上部分, 包括: 将加密图像划分为多个均等且不重叠的图像块, 每个图像块有像素 4. The information hiding method according to claim 1 or 2, wherein the encrypted image Divide the image into image blocks, and divide each image block into two or more parts, including: Divide the encrypted image into multiple equal and non-overlapping image blocks, each image block has pixels
S x S 再利用随机密钥将每个图像块均等分为 2"个部分,每个部分的像素为 s2lT; 其中, S、 n均为正整数。 S x S then uses a random key to divide each image block equally into 2 " parts, and the pixels of each part are s2 l T ; where S and n are both positive integers.
5、 根据权利要求 4所述的信息隐藏方法, 其中, 所述利用嵌入模式一 或嵌入模式二, 将秘密信息比特嵌入到图像块的相应部分, 包括; 5. The information hiding method according to claim 4, wherein the use of embedding mode one or embedding mode two to embed secret information bits into corresponding parts of the image block includes;
依据嵌入模式一或嵌入模式二运算规则, 将当前图像块分割的第一个 部分的部分像素保持不变, 部分像素之间进行低三位或低四位异或, 令当 前图像块分割的第二部分至分割的最后一个部分像素保持不变; According to the operation rules of embedding mode one or embedding mode two, some pixels in the first part of the current image block segmentation are kept unchanged, and the lower three bits or lower four bits are XORed between the partial pixels, so that the third part of the current image block segmentation is The pixels from the two parts to the last part of the segmentation remain unchanged;
将当前图像块分割的第二个部分的部分像素保持不变, 部分像素之间 进行低三位或低四位异或, 令当前图像块分割的第一部分、 第三部分至分 割的最后一个部分的像素保持不变; Keep part of the pixels in the second part of the current image block unchanged, and perform XOR on the lower three or lower four bits between the partial pixels, so that the first part and the third part of the current image block are divided into the last part of the division. pixels remain unchanged;
依此类推, 直至处理完当前图像块的最后一个部分。 And so on until the last part of the current image block is processed.
6、 根据权利要求 4所述的信息隐藏方法, 其中, 所述将解密后的图像 分割成图像块, 并将每个图像块分割成两个以上部分, 包括: 6. The information hiding method according to claim 4, wherein said dividing the decrypted image into image blocks and dividing each image block into two or more parts includes:
将解密后图像划分为多个均等且不重叠的图像块, 每个图像块有像素 7x 7;再利用随机密钥将每个图像块均等分为 2"个部分,每个部分的像素为 72 /2"; 其中, Y、 η均为正整数, Υ与 S取值相同。 Divide the decrypted image into multiple equal and non-overlapping image blocks, each image block has pixels 7x7; then use the random key to equally divide each image block into 2 " parts, each part has 7 pixels 2 /2"; Among them, Y and eta are both positive integers, and Y and S have the same value.
7、 根据权利要求 6所述的信息隐藏方法, 其中, 所述利用嵌入模式一 或嵌入模式二、 以及改进的波动性预估公式, 将秘密信息比特从图像块相 应部分中提取出来, 直到嵌入到所有图像块的秘密信息均被提取, 原始图 像被恢复, 包括: 7. The information hiding method according to claim 6, wherein the secret information bits are extracted from the corresponding parts of the image block using embedding mode one or embedding mode two and an improved volatility prediction formula until embedding Secret information to all image patches is extracted and the original image is restored, including:
依据嵌入模式一或嵌入模式二运算规则, 将当前图像块分割的第一个 部分的部分像素保持不变, 部分像素之间进行低三位或低四位异或, 令当 前图像块分割的第二部分至最后一个部分的像素保持不变, 将当前图像块 已进行嵌入运算的第一个部分与当前图像块像素保持不变的第二部分至最 后一个部分集合成新的图像块; According to the operation rules of embedding mode one or embedding mode two, some pixels in the first part of the current image block segmentation are kept unchanged, and the lower three bits or lower four bits are XORed between the partial pixels, so that the third part of the current image block segmentation is The pixels from the second part to the last part remain unchanged, and the current image block The first part that has been embedded and the second part to the last part whose pixels remain unchanged in the current image block are combined into a new image block;
将当前图像块分割的第二个部分的部分像素保持不变, 部分像素之间 进行低三位或低四位异或, 令当前图像块分割的第一部分、 第三部分至最 后一个部分像素保持不变, 将当前图像块已进行嵌入运算的第二个部分与 当前图像块像素保持不变的第一部分、 第三部分至最后一个部分集合成新 的图像块; Keep some of the pixels in the second part of the current image block segmented unchanged, and perform XOR on the lower three or lower four bits between the partial pixels, so that the first, third and last part of the current image block segmented pixels remain unchanged. unchanged, the second part of the current image block that has been embedded and the first part, the third part to the last part of the current image block whose pixels remain unchanged are combined into a new image block;
依此类推, 直至处理完当前图像块的最后一个部分; And so on, until the last part of the current image block is processed;
利用改进的波动性预估公式, 对所有新的图像块进行波动性计算, 取 波动性小的新的图像块为原始图像块, 并提取相应的秘密信息比特; 其中, 所述改进的波动性预估公式为: = Cu,vx2 ® Cu^vx2_1 其中, Cu, ¥处于位置(u, v )的图像像素取值, Y为图像块像素值的均 方根。 Use the improved volatility prediction formula to calculate the volatility of all new image blocks, take the new image blocks with small volatility as the original image blocks, and extract the corresponding secret information bits; where, the improved volatility The prediction formula is: = C u , vx2 ® C u ^ vx2 _ 1 where C u , ¥ is the value of the image pixel at the position (u, v), and Y is the root mean square of the pixel value of the image block.
8、 一种信息隐藏装置, 所述装置包括: 嵌入模块和提取及恢复模块; 其中, 8. An information hiding device, the device includes: an embedding module and an extraction and recovery module; wherein,
所述嵌入模块, 配置为对原始图像进行加密, 对加密后图像分割成图 像块, 并将每个图像块分割成两个以上部分, 将秘密信息嵌入到图像块的 相应部分, 并将嵌入有秘密信息的图像发送至所述提取及恢复模块; The embedding module is configured to encrypt the original image, divide the encrypted image into image blocks, divide each image block into two or more parts, embed the secret information into the corresponding part of the image block, and embed the The image of the secret information is sent to the extraction and recovery module;
所述提取及恢复模块, 配置为接收来自所述嵌入模块的嵌入有秘密信 息的图像, 并对嵌入有秘密信息的图像进行解密, 对经解密后的图像分割 成图像块, 并将每个图像块分割成两个以上部分, 提取嵌入的秘密信息, 恢复原始图像。 The extraction and recovery module is configured to receive an image embedded with secret information from the embedding module, decrypt the image embedded with secret information, divide the decrypted image into image blocks, and divide each image into image blocks. The block is split into two or more parts, the embedded secret information is extracted, and the original image is restored.
9、 根据权利要求 8所述的信息隐藏装置, 其中, 所述嵌入模块包括: 加密子模块、 第一图像分割子模块、 信息嵌入子模块; 其中, 所述加密子模块, 配置为利用加密密钥对原始图像进行加密; 所述第一图像分割子模块, 配置为对加密后图像进行分割, 形成图像 块, 再将每个图像块分割成两个以上部分; 9. The information hiding device according to claim 8, wherein the embedding module includes: an encryption sub-module, a first image segmentation sub-module, and an information embedding sub-module; wherein, The encryption sub-module is configured to encrypt the original image using an encryption key; the first image segmentation sub-module is configured to segment the encrypted image to form image blocks, and then divide each image block into two The above parts;
所述信息嵌入子模块, 配置为利用嵌入模式一或嵌入模式二将秘密信 息比特嵌入到图像块的相应部分, 并将嵌入有秘密信息比特的图像发送至 所述提取及恢复模块。 The information embedding sub-module is configured to embed secret information bits into corresponding parts of the image block using embedding mode one or embedding mode two, and send the image with the secret information bits embedded to the extraction and recovery module.
10、 根据权利要求 8或 9所述的信息隐藏装置, 其中, 所述提取及恢 复模块包括: 解密子模块、 第二图像分割子模块、 信息提取及图像恢复子 模块; 其中, 10. The information hiding device according to claim 8 or 9, wherein the extraction and recovery module includes: a decryption sub-module, a second image segmentation sub-module, an information extraction and image recovery sub-module; wherein,
所述解密子模块, 配置为接收来自所述嵌入模块的嵌入有秘密信息比 特的图像, 并利用解密密钥对嵌入有秘密信息比特的图像进行解密; The decryption sub-module is configured to receive an image embedded with secret information bits from the embedding module, and use a decryption key to decrypt the image embedded with secret information bits;
所述第二图像分割子模块, 配置为对经解密后的图像分割成图像块, 并将每个图像块分割成两个以上部分; The second image segmentation sub-module is configured to segment the decrypted image into image blocks, and segment each image block into two or more parts;
所述信息提取及图像恢复子模块, 配置为利用嵌入模式一或嵌入模式 二、 改进的波动性预估公式, 提取嵌入的秘密信息比特, 恢复原始图像。 The information extraction and image restoration sub-module is configured to use the improved volatility prediction formula of embedding mode one or embedding mode two to extract the embedded secret information bits and restore the original image.
PCT/CN2013/081235 2012-11-13 2013-08-09 Method and device for information hiding WO2014075469A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210454053.1 2012-11-13
CN201210454053.1A CN103810664B (en) 2012-11-13 2012-11-13 A kind of information concealing method and device

Publications (1)

Publication Number Publication Date
WO2014075469A1 true WO2014075469A1 (en) 2014-05-22

Family

ID=50707389

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081235 WO2014075469A1 (en) 2012-11-13 2013-08-09 Method and device for information hiding

Country Status (2)

Country Link
CN (1) CN103810664B (en)
WO (1) WO2014075469A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872305A (en) * 2016-04-13 2016-08-17 宁波工程学院 Full separable encryption domain image reversible data hiding method
CN111179144A (en) * 2019-12-09 2020-05-19 西安空间无线电技术研究所 Efficient information hiding method for multi-embedding of multi-system secret information
CN111741184A (en) * 2020-06-09 2020-10-02 绍兴图信科技有限公司 3-dimensional reference matrix information hiding method based on mini-Didu matrix

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104010194A (en) * 2014-06-12 2014-08-27 中国人民解放军信息工程大学 Information transmission method and device
CN105160694B (en) * 2015-10-15 2017-05-03 深圳大学 Data hiding method and data hiding system
CN105634732B (en) * 2016-01-21 2018-06-19 中国人民武装警察部队工程大学 A kind of more bit reversible information hidden methods of ciphertext domain
CN105976303B (en) * 2016-05-23 2019-03-01 太原科技大学 A kind of reversible information based on vector quantization hides and extracting method
CN106101746B (en) * 2016-07-12 2019-08-16 深圳大学 A kind of method and its system of digital video content safety certification
CN106504179A (en) * 2016-10-31 2017-03-15 重庆邮电大学 A kind of gray level image steganography method based on rim detection
CN106954069B (en) * 2017-05-04 2019-07-05 安徽大学 Reversible data embedded coding method towards digital picture secret protection and management
CN107332827A (en) * 2017-06-09 2017-11-07 国政通科技股份有限公司 A kind of encrypted transmission device and method of identity information
CN107911574A (en) * 2017-11-20 2018-04-13 西南大学 A kind of dual image information concealing method
CN110188552B (en) * 2019-05-29 2023-05-23 华南师范大学 Information hiding method based on big data and difference value and robot system
CN110288625B (en) * 2019-07-04 2021-09-03 北京字节跳动网络技术有限公司 Method and apparatus for processing image
CN111147685B (en) * 2019-12-25 2022-10-14 成都信息工程大学 Random sequence-based multi-image encryption method and system and intelligent terminal
CN111260532B (en) * 2020-01-10 2023-04-28 中移(杭州)信息技术有限公司 Privacy image encryption method, device, electronic equipment and computer readable storage medium
CN111640053B (en) * 2020-06-02 2023-04-18 长江师范学院 Homomorphic encryption algorithm based reversible information hiding method with high embedding amount

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917558A (en) * 2005-08-19 2007-02-21 北京中视斯朗电子水印技术有限公司 Method and device for hiding and recovering information
US20080130883A1 (en) * 2006-04-26 2008-06-05 The Board Of Regents Of The University Of Texas System Methods and Systems for Digital Image Security
CN101449278A (en) * 2003-12-05 2009-06-03 新泽西理工学院 System and method for robust reversible data hiding and data recovery in the spatial domain
CN102014239A (en) * 2009-09-08 2011-04-13 周岩 High-capacity steganographic method based on JPEG (Joint Photographic Experts Group) digital image

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207793A (en) * 2006-12-22 2008-06-25 南京理工大学 Copyright protection method multimedia data contents implementing encryption and watermark interoperation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101449278A (en) * 2003-12-05 2009-06-03 新泽西理工学院 System and method for robust reversible data hiding and data recovery in the spatial domain
CN1917558A (en) * 2005-08-19 2007-02-21 北京中视斯朗电子水印技术有限公司 Method and device for hiding and recovering information
US20080130883A1 (en) * 2006-04-26 2008-06-05 The Board Of Regents Of The University Of Texas System Methods and Systems for Digital Image Security
CN102014239A (en) * 2009-09-08 2011-04-13 周岩 High-capacity steganographic method based on JPEG (Joint Photographic Experts Group) digital image

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872305A (en) * 2016-04-13 2016-08-17 宁波工程学院 Full separable encryption domain image reversible data hiding method
CN105872305B (en) * 2016-04-13 2018-06-05 宁波工程学院 A kind of completely separable encryption area image reversible data concealing method
CN111179144A (en) * 2019-12-09 2020-05-19 西安空间无线电技术研究所 Efficient information hiding method for multi-embedding of multi-system secret information
CN111741184A (en) * 2020-06-09 2020-10-02 绍兴图信科技有限公司 3-dimensional reference matrix information hiding method based on mini-Didu matrix

Also Published As

Publication number Publication date
CN103810664A (en) 2014-05-21
CN103810664B (en) 2017-06-27

Similar Documents

Publication Publication Date Title
WO2014075469A1 (en) Method and device for information hiding
CN108566500B (en) Reversible hiding method of self-adaptive image encryption domain based on hybrid encryption mechanism
Shiu et al. Encrypted image-based reversible data hiding with public key cryptography from difference expansion
Mitra et al. A new image encryption approach using combinational permutation techniques
Li et al. Reversible data hiding in encrypted images using cross division and additive homomorphism
CN112202984B (en) Ciphertext domain reversible information hiding method based on error correction redundancy
Bansod et al. Modified BPCS steganography using Hybrid cryptography for improving data embedding capacity
CN104881838B (en) One kind is based on GF (23) (K, N) significant point deposited without expansion image and reconstructing method
CN102014266A (en) Digital watermarking-based high-definition video encrypted transmitting method and system
Chen et al. Reversible data hiding in encrypted images with additive and multiplicative public-key homomorphism
CN115695675B (en) Video encryption method for network data secure exchange
Mo et al. Reversible Data Hiding in Encrypted Image Based on Block Classification Permutation.
Singh et al. Image security using DES and RNS with reversible watermarking
Chen et al. Reversible data hiding in encrypted images with private-key homomorphism and public-key homomorphism
CN115643015A (en) Digital watermark tracing method
van Rensburg et al. 3D object watermarking from data hiding in the homomorphic encrypted domain
Sreekumar et al. Advanced reversible data hiding with encrypted data
Chen et al. Fidelity preserved data hiding in encrypted images based on homomorphism and matrix embedding
CN107590369B (en) Homomorphic encrypted domain reversible information hiding method based on code division multiplexing and value expansion
Hua et al. Secure reversible data hiding in encrypted images using cipher-feedback secret sharing
Yadav et al. A hybrid approach to metamorphic cryptography using KIMLA and DNA concept
Abdelmged et al. A Combined approach of steganography and cryptography technique based on parity checker and huffman encoding
Verma et al. Strong threshold secret image sharing based on boolean operation
Rao et al. A Novel Image Encryption Algorithm with Image Integrity Check
Nyo et al. Secure data transmission using steganography and twisted exchange algorithm

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13855677

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13855677

Country of ref document: EP

Kind code of ref document: A1