A method for hiding encrypted image data based on full permutation transformation

By using the combination of full arrangement technology and VQ codebook in encrypted images, the problem of low data hiding efficiency in the existing technology is solved, high embedding rate and lossless information recovery are achieved, and the efficiency and feasibility of the data hiding scheme are significantly improved. .

CN114998084BActive Publication Date: 2024-10-18HANGZHOU DIANZI UNIVERSITY SHANGYU INSTITUTE OF SCIENCE & ENGINEERING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210605832.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2024-10-18
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

Existing schemes for reversibly hiding data in encrypted images have deficiencies in embedding rate and information recovery efficiency, especially the difficulty in data extraction and image recovery caused by the lack of correlation between adjacent pixels of the encrypted image.

Method used

The reversible data hiding scheme based on full permutation (P-RDHEI) is used to divide the encrypted image blocks into sub-blocks and perform a full permutation operation to generate a permutation list. The VQ codebook is used to extract and restore the original image to achieve efficient data embedding and Image recovery.

Benefits of technology

It significantly improves the embedding rate, can losslessly extract and recover secret data in encrypted images, reduces the hardware burden on the receiver, and keeps the statistical properties and texture of the image unchanged, providing efficient information hiding and extraction capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114998084B_ABST
    Figure CN114998084B_ABST
Patent Text Reader

Abstract

The present invention proposes an encrypted image data hiding method based on full permutation transformation technology, which can hide important information in the encrypted image. In each encrypted image block of size p×q, the present invention divides the encrypted image block into n sub-blocks for full permutation to generate a full permutation list of the encrypted image block, and embeds multi-bit secret data by replacing the permutation of the image block. When the receiver recovers the encrypted block, the trained vector quantization (VQ) codebook can be used to predict the original permutation from the full permutation list of the encrypted block, thereby recovering the image and extracting information. For each pixel block, the scheme proposed by the present invention combines the full permutation technology with the VQ codebook, which can significantly improve the secret information embedding capability and effectively reduce the hardware burden of the receiver.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention studies the field of information hiding in the encrypted domain and proposes an encrypted image data hiding method based on full permutation transformation, which can hide important information in the encrypted image. Background Art

[0002] With the rapid development of cloud storage and cloud computing technologies, more and more users process their images through cloud-based social networking applications. However, some unauthorized attackers may intercept, leak or even tamper with sensitive image data during transmission, which may threaten user security. The combination of image encryption and data hiding technology can be used as a potential solution to protect the privacy of information while achieving message transmission.

[0003] Image encryption is a technique that encrypts a plaintext image into a ciphertext image, usually using an encryption key. Only the recipient who has the decryption key can decrypt the image. Data hiding techniques are divided into two main types, reversible data hiding and irreversible data hiding. Reversible data hiding (RDH) techniques can extract secret data and restore the original image without distortion. Irreversible data hiding (IRDH) can only extract secret data and cannot restore the original image without loss.

[0004] In recent years, reversible data hiding in encrypted images (RDHEI) has become increasingly important. RDHEI technology can effectively prevent unauthorized malicious users from monitoring, intercepting, interrupting and tampering with the transmitted data. There are usually three assumed users in the RDHEI scheme: content owner, data hider and receiver. The whole process is that the content owner encrypts the original image with the image encryption key, and then the data hider embeds secret data such as timestamp, watermark and copyright information into the encrypted image. The receiver with the data hiding key can extract the embedded data and can obtain the decrypted image using the image encryption key. Existing spatial RDHEI schemes can be mainly divided into two categories: 1) Reserve spare space before image encryption (RRBE) and 2) Free spare space after image encryption (VRAE). Figure 1 The general process of RDHEI is shown, and the difference between RRBE and VRAE is briefly explained.

[0005] In the RRBE scheme, spare space is reserved before the image is encrypted, that is, spare space is reserved in the plaintext image. Since meaningful images have a certain correlation between adjacent pixels, these redundant spaces can be reserved for data embedding. Obviously, the RRBE scheme requires a lot of complex preprocessing to compress the original image before image encryption. However, it is difficult to require each content owner to perform specific preprocessing on the image before uploading. At this time, the VRAE scheme is a more appropriate method.

[0006] In the VRAE scheme, the content owner only needs to encrypt the original image. The free space for embedding data is released in the process of encrypting the image. Since there is almost no correlation between adjacent pixels of the encrypted image, some early VRAE schemes cannot restore the original image and extract the embedded data losslessly. In order to improve the embedding rate and avoid errors, some pixel block-based VRAE schemes have been proposed in recent years. In these schemes, the original image is first divided into non-overlapping blocks, and each block is encrypted with the same key. This approach preserves the correlation between pixels in the block. Summary of the invention

[0007] In this paper, we propose a full permutation-based RDHEI scheme (P-RDHEI), which can be directly applied to encrypted images. In each encrypted image block of size p×q, the image block is divided into n sub-blocks for full permutation to generate a permutation list of the image block, and the multi-bit secret data is embedded by replacing the permutation of the image block corresponding to the corresponding index value. The receiver can use the VQ codebook to predict the original permutation from the permutation list to recover the image and extract information. Compared with the traditional VRAE scheme, the proposed P-RDHEI scheme significantly improves the embedding rate by using full permutation, and can embed 0.9562bpp secret data into the encrypted image. The proposed P-RDHEI scheme can achieve lossless data extraction and image recovery when the VQ codebook is large. Compared with other schemes, the P-RDHEI scheme only needs the VQ codebook to complete the image extraction and recovery functions, which effectively reduces the hardware burden of the receiver. The encrypted image and the embedded encrypted image are fully encrypted. Since our proposed scheme only changes the order of pixels in each block, the statistical properties and texture of the original image are not exposed.

[0008] The technical solutions specifically adopted in the present invention are as follows:

[0009] A method for hiding encrypted image data based on full permutation transformation, the steps of which are as follows:

[0010] S1: Encrypt the original image O of size M×N into an encrypted image E of size M×N using a stream cipher;

[0011] S2: Divide the encrypted image E into non-overlapping pixel blocks of size p×q, each pixel block as an encryption block, where EB θ represents the θth encrypted block;

[0012] S3: For all encrypted blocks EB in the encrypted image E θ , according to the pixel block scanning order from left to right and from top to bottom, perform S31 to S32 on each pixel block to embed the secret information;

[0013] S31: Encrypted block EB θ Divide into n sub-blocks of the same size, perform non-repeating full permutations on these n sub-blocks, and form a permutation list of all permutations; find the current encrypted block EB from the permutation list θ The arrangement of , and starting from the current arrangement, the numbering is cyclic along the arrangements in the list;

[0014] S32: traverse each encrypted block EB θ , if the encrypted block EB θ The generated permutation list has W items. By searching the permutation list for the corresponding permutation based on the secret data and replacing the current encrypted block permutation with the found permutation, the encrypted block is embedded bits of secret data;

[0015] S4: Traverse each pixel block EB in image E θ After that, the encrypted image E′ containing the secret data is sent to the receiving end.

[0016] Based on the above technical solution, each step of the present invention can be further implemented by the following specific method.

[0017] Preferably, in S1, a pseudo-random matrix of size M×N is used as the encryption key K required for image encryption. E , where each value in the pseudo-random matrix ranges from 0 to 255; then, the 8-bit binary number of each pixel O(i,j) of the original image O of size M×N and the 8-bit binary number of the corresponding encryption key are subjected to a bitwise exclusive OR (XOR) operation according to the following formula to obtain the encrypted binary number:

[0018]

[0019] Where (i, j) represents the coordinates in the corresponding image, and the ranges of i and j are [1, M] and [1, N] respectively. Indicates the exclusive OR (XOR) operation; the superscript x represents a binary bit, x = 1, 2, ..., 8 (the order from back to front is represented as x = 1, 2, ..., 8);

[0020] Finally, the encrypted binary number of each pixel is converted into a decimal number to obtain the encrypted pixel at the corresponding position in the encrypted image E.

[0021] Preferably, in S2, the encrypted image E is divided into non-overlapping pixel blocks of size 4×4, 8×8, 16×16 or 32×32.

[0022] Preferably, in S31, the encrypted block EB θDivide into n sub-blocks of the same size, list all random permutations of these n sub-blocks, and delete the same permutations. In each group of retained permutations, the n sub-blocks form a block of the same size as the original encrypted block; then, extract the pixel values ​​of each permutation in order from top to bottom and from left to right, so that each permutation forms a p×q dimensional array, and then sort all permutations from small to large according to these p×q arrays to form a permutation list; find the current encrypted block Eθ from the permutation list θ The permutation is selected and the index of the permutation is set to 0. Other permutations are numbered in sequence following the permutation of the current encryption block.

[0023] Preferably, in S32, for any encrypted block EB θ , embedded The specific operation of k-bit secret data is: take out the k-bit secret data to be embedded in the block, convert it into decimal D, find the permutation with index number D in the permutation list, and use it to replace the current encrypted block EB in the encrypted image E θ , completing the embedding of secret data.

[0024] Preferably, in S4, the encrypted image E' containing the secret data is sent to the receiving end.

[0025] Preferably, after the receiver receives the encrypted image E′ containing the secret data, the decryption method is:

[0026] S5. Obtain a VQ codebook of size L to assist the receiver in restoring the image and extracting the secret data;

[0027] S6. Divide the received encrypted image E′ containing the secret data into non-overlapping secret encrypted blocks of size p×q, where EB′ θ represents the θth secret encryption block; according to the same operation as S31 when embedding secret data, EB′ θ Divide into n sub-blocks, and then perform a non-repeated full permutation operation on these n sub-blocks to generate a permutation list sorted from small to large; then, use the encryption key K E The decryption operation is performed on each permutation in the permutation list, and the decryption operation is shown in the following formula:

[0028]

[0029] Where (i, j) represents the coordinates in the corresponding image, the ranges of i and j are [1, M] and [1, N] respectively, E(i, j) v It represents the permutation of the vth item in the permutation list. The superscript x represents the binary bit. IT(i,j) v represents the decrypted permutation of the vth item in the permutation list, where v is in the range [1, W];

[0030] After the above decryption operation, for each secret encryption block EB′ θ , and we get EB′ θ A decryption list consisting of W decrypted permutations, where only one item in the decryption list is the permutation of the original image block; calculate the shortest distance between the W permutations in the decryption list and the VQ codebook, and select the permutation with the shortest distance as the current secret encryption block EB′ θ The original arrangement of the determined original arrangement is determined, and all the arrangements in the decryption list are numbered and indexed according to the determined original arrangement, wherein the index number of the determined original arrangement is 0, and the other arrangement items are numbered in sequence following the current item;

[0031] S7. Find the index of the received permutation in the decryption list by extracting this index and converting it into a k-bit binary number Get the secret data embedded in the block and use the permutation with index number 0 to restore the pixels of the image block.

[0032] Preferably, the VQ codebook is obtained by dividing a number of images used as training sets into non-overlapping pixel blocks of size p×q, and then using the LBG algorithm.

[0033] Preferably, the number n of sub-blocks of the image block is 4 or 8 respectively.

[0034] Preferably, the size of the VQ codebook is L=64 or 128.

[0035] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0036] The present invention uses full permutation technology to embed data directly into encrypted images (P-RDHEI). This scheme combines the characteristics of VQ codebook in the process of information extraction and image recovery, effectively reducing the burden on the receiver. When dividing the 4×4 image block into 8 sub-blocks, it has a high payload capacity of 0.9562bpp. Compared with many other existing similar RDHEI schemes, the present invention embeds more and is more efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 The general process of RDH-EI is presented, and the difference between RRBE and VRAE is briefly explained.

[0038] Figure 2 It is the algorithm flow chart of the present invention.

[0039] Figure 3 This is an example diagram of the embedding process of the present invention.

[0040] Figure 4 This is an example diagram of the extraction process of the present invention.

[0041] Figure 5 These are the test images of the present invention, including (a) Airplane, (b) Baboon, (c) Boat, and (d) Peppers.

[0042] Figure 6 The results of the implementation of the present invention are as follows: (a1) is the original "Airplane" image. (a2) and (a3) ​​are the encrypted image and the encrypted image with embedded data (number of sub-blocks n = 8, VQ codebook size = 64, block size = 4×4, γ = bpp). (a4) is the decrypted image (PSNR = dB). (b1-b4) are the corresponding histograms of (a1-a4). In (c) and (d), the results of "Baboon" are given (number of sub-blocks n = 4, VQ codebook size = 128, block size = 16×16, γ = 0.0179bpp, PSNR = InfdB). DETAILED DESCRIPTION

[0043] The specific implementation scheme of the solution proposed by the present invention is further described in detail below in conjunction with the accompanying drawings.

[0044] like Figure 2 As shown, in a preferred embodiment of the present invention, a method for hiding encrypted image data based on full permutation transformation is provided, and the specific steps are as follows:

[0045] S1: Encrypt the original image O of size M×N into an encrypted image E of size M×N using a stream cipher. In this embodiment, M×N can be set to 512×512;

[0046] In order to encrypt the image, a pseudo-random matrix of size M×N is used as the encryption key K required for image encryption. E , where the pseudo-random matrix K E Each value of ranges from 0 to 255. Then, the 8-bit binary number of each pixel O(i, j) of the original image O of size M×N and the 8-bit binary number of the corresponding encryption key are subjected to bitwise XOR operation according to the following formula to obtain the encrypted binary number.

[0047]

[0048] Where (i, j) represents the coordinates in the corresponding image, and the ranges of i and j are [1, M] and [1, N] respectively. Indicates XOR operation; the superscript x indicates a binary bit, and the order of binary bits from back to front is x = 1, 2, ..., 8;

[0049] Finally, the encrypted binary number of each pixel is converted into a decimal number to obtain the encrypted pixel at the corresponding position in the encrypted image E.

[0050] S2: Divide the encrypted image E into non-overlapping pixel blocks of size p×q, each pixel block as an encryption block, where EB θ In this embodiment, p×q is set to four different block sizes of 4×4, 8×8, 16×16 and 32×32, so as to explore the influence of block size on the result.

[0051] For all pixel blocks EB in the encrypted image E θ , according to the pixel block scanning order from left to right and from top to bottom, execute S31 to S32 for each pixel block respectively to embed the secret information. Figure 3 is a specific example of an embedded process;

[0052] S31: Encrypted block EB θ The blocks are divided into n sub-blocks of the same size, and non-repeated full permutation operations are performed on the n sub-blocks, and all permutations are combined into a permutation list. In this embodiment, the number of sub-blocks n is set to 4 or 8.

[0053] Specifically, the encrypted block EB θ After being divided into n sub-blocks of the same size, all random permutations of these n sub-blocks are listed, and the same permutations are deleted. It should be noted that the n sub-blocks in each group of retained permutations need to be reorganized into blocks of the same size as the original encrypted block before subsequent pixel value extraction. Then, the pixel values ​​of each permutation are extracted in order from top to bottom and from left to right, so that each permutation forms a p×q dimensional array, and then all permutations are sorted from small to large according to these p×q arrays to form a permutation list. Then find the current encrypted block EB from the permutation list θ The permutations in the permutation list are numbered in a circular manner according to the permutation of the current encryption block, such as 1, 2, ... The so-called circular numbering means that when the numbering reaches the end, the unnumbered permutations are numbered from the beginning until all the permutations are numbered.

[0054] S32: traverse each encrypted block EB θ , assuming that the encrypted block EB θ The generated permutation list has W items, and the method of replacing the current encrypted block permutation with the corresponding permutation is used, that is, by finding the corresponding permutation based on the secret data in the permutation list and replacing the current encrypted block permutation with the found permutation, so as to embed bits of secret data;

[0055] For any encrypted block EB θ , embedded The specific operation of the k-bit secret data is: take out the k-bit secret data, convert it into decimal D, find the permutation with index number D in the permutation list, and use it to replace the current encrypted block EB in the encrypted image E θ , the embedding of secret data is completed. In this embodiment, since n is 4 or 8, W = 4! or 8!, so or

[0056] It should be noted that different encryption blocks can embed different secret data, so all secret data that need to be embedded can be extracted in sequence and embedded in each encryption block.

[0057] S4: Traverse each pixel block EB in image E θ After that, the encrypted image E′ containing the secret data is sent to the receiving end.

[0058] S5: After the receiver receives the encrypted image E' containing the information, it needs to divide the several images used as the training set into non-overlapping pixel blocks of size p×q, and obtain a VQ codebook of size L according to the LBG algorithm to assist the receiver in restoring the image and extracting the secret data. In this embodiment, p×q is set to different block sizes of 4×4, 8×8, 16×16 and 32×32, and the size of the VQ codebook L=64 or 128;

[0059] S6: The receiver divides the received stego-encrypted image E′ containing the secret data into non-overlapping pixel blocks of size p×q, each of which is used as a stego-encrypted block, where EB′ θ Denotes the θth secret encryption block. According to the operation similar to S31 when embedding secret data, EB′ θ Divide it into n sub-blocks of the same size, perform a non-repeated full permutation operation on these n sub-blocks, and generate a permutation list sorted from small to large. Then, use the encryption key K E A decryption operation is performed on each permutation item in the permutation list, and the decryption operation is shown in the following formula:

[0060]

[0061] Where (i, j) represents the coordinates in the corresponding image, and the ranges of i and j are [1, M] and [1, N] respectively. v It represents the permutation of the vth item in the permutation list. The superscript x represents the binary bit mentioned above. IT(i,j) v represents the decrypted permutation of the vth item in the permutation list, where v is in the range [1, W]. The order of binary bits from back to front is represented as x (x = 1, 2, ..., 8);

[0062] After the above decryption operation, for each secret encrypted block EB′ θ , and we get EB′ θ A decryption list consisting of W decrypted permutations, where only one item in the decryption list is the permutation of the original image block. Due to the characteristics of stream encryption, only the correct permutation can decrypt pixel blocks with normal pixel distribution, and other permutations will decrypt disordered garbled codes. Since the distribution of elements in the garbled code block is irregular, their matching degree with the VQ codebook will be very low. Therefore, the shortest distance between the W items in the decryption list and the VQ codebook can be calculated, and the permutation with the shortest distance is the current secret encryption block EB′ θ The original arrangement. Therefore, according to the determined original arrangement, all the arrangements in the decryption list can be numbered and indexed: the determined original arrangement, that is, the current item arrangement with the shortest distance, is indexed as 0, and the other item arrangements are numbered in sequence along the current item, and the circular numbering method is consistent with the above encryption. In this embodiment, p×q is set to different block sizes of 4×4, 8×8, 16×16 and 32×32, and the number of sub-blocks n=4 or 8;

[0063] In this embodiment, the distance Dis between the vth item in the list and the codeword in the VQ codebook is calculated as follows:

[0064]

[0065] Where X v =(x 1 v ,x 2 v ,…,x K v ) represents the vth item in the list, Y = {Y 1 ,Y 2 ,…,Y L} is the VQ codebook; the lth codeword in the VQ codebook is denoted by Y′ l =(Y′ l1 ,Y′ l2 ,…,Y′ lK ), K = p × q;

[0066] S7: Based on the result of the decryption operation in S6, find the index of the received permutation in the decrypted list. By extracting this index and converting it into a k-bit binary number The secret data embedded in the block can be obtained, and the pixels of the image block can be restored using the arrangement with index number 0. Figure 4 It is a specific example of data extraction and pixel restoration.

[0067] It can be seen that the present invention proposes a reversible data hiding scheme for encrypted images, which uses full permutation technology to embed data into encrypted images. The proposed scheme follows a block-by-block data hiding process. In the process of information extraction and image recovery, the scheme combines the characteristics of the VQ codebook, effectively reducing the burden on the receiver. The scheme can provide a higher embedding rate and reduce the hardware burden of the receiver. For each pixel block, the proposed scheme combines the full permutation technology with the VQ codebook, so that information can be extracted more accurately and the image can be restored. Compared with many other existing similar RDHEI schemes, the present invention has a large embedding amount and high efficiency.

[0068] In order to further demonstrate the technical effect of the present invention, specific application results of the above method in actual cases are given below.

[0069] Example

[0070] This embodiment is based on the above-mentioned S1 to S7 methods (which are referred to as the solutions of the present invention for the sake of convenience), and the specific implementation steps are as described above and will not be repeated. Only the experimental results are shown below.

[0071] In all subsequent experiments in the examples, the present invention uses Figure 5 The four grayscale images in are used as test images with a size of 512 × 512. In order to evaluate the performance of the proposed scheme, the present invention compares the embedding rate (γ), SSIM, peak signal-to-noise ratio (PSNR) and error rate (ε) of the proposed scheme with those of related works.

[0072] Since the block size, number of sub-blocks and codebook size will affect the embedding rate and image block recovery accuracy, this embodiment first tests the performance of the solution of the present invention under different block sizes, number of sub-blocks and codebook sizes. For comparison, this embodiment tests different block sizes of 4×4, 8×8, 16×16 and 32×32. Because for each case, this embodiment divides the pixel block into four or eight sub-blocks. This is because the size of the pixel block divided by this embodiment determines that the number of sub-blocks cannot be defined as a multiple of 3. When the number of sub-blocks is 2, very little data can be embedded in a pixel block; and when the number of sub-blocks is greater than 8, the time cost of calculating the full arrangement of the sub-blocks will be very large. In summary, after weighing the embedding capability and time cost, this embodiment chooses to define the number of sub-blocks as 4 or 8. Therefore, each block can carry or bit secret data, so when the block size is from 4×4 to 32×32, the embedding rates of these two scenarios are 0.2866bpp and 0.9562bpp, 0.0716bpp and 0.2391bpp, 0.0179bpp and 0.0598bpp, 0.0045bpp and 0.0149bpp respectively. As can be seen from Tables 1-4, the error rate increases with the decrease of block size, so PSNR and SSIM gradually decrease. When the block size is large, such as 16×16 or 32×32, most of the images can be fully restored. In general, the error rate when the number of sub-blocks is selected = 4 is much lower than the error rate when the number of sub-blocks is selected = 8, because when the number of sub-blocks n = 8, there are 8! Permutations to choose from, which is more likely to be misjudged. The error rate decreases with the increase of the VQ codebook size, because the larger the size of the VQ codebook, the more image features the codewords therein can express, so this embodiment can better judge the arrangement of the original pixel block. From the experimental results of this embodiment, when the VQ codebook size is 128, the pixel block size is 4×4, and the number of sub-blocks is 4, the bit error rate is lower than other cases.

[0073] Table 1: Performance when number of sub-blocks = 4 and codebook size = 64

[0074]

[0075]

[0076] Table 2: Performance when number of sub-blocks = 4 and codebook size = 128

[0077]

[0078] Table 3: Performance when number of sub-blocks = 8 and codebook size = 64

[0079]

[0080]

[0081] Table 4: Performance when number of sub-blocks = 8 and codebook size = 128

[0082]

[0083] Figure 6The results of the execution of different stages of some images are shown. After the image is encrypted, the pixel values ​​are disordered and no meaningful information can be observed, so the pixel distribution of the encrypted image is uniform in the histogram. Since the data embedding scheme proposed in this embodiment only disrupts the position of the encrypted pixels, the pixel distribution of the embedded encrypted image does not change. When the number of sub-blocks n = 8, the VQ codebook size = 64, and the block size = 4×4, 0.9562bpp can be embedded, but the restored image has some errors, such as Figure 6 As shown in (a4), when the number of sub-blocks n = 4, the VQ codebook size = 128, and the block size = 16×16, after extracting 0.0179 BPP secret data, the original image can be completely restored without any error.

[0084] This embodiment also analyzes the security of the proposed scheme based on information entropy. Table 5 measures the information entropy of the original image, encrypted image, and embedded encrypted image of different block sizes. Obviously, the entropy values ​​of the encrypted image and embedded encrypted image of each image are the same, because the scheme proposed in this embodiment only disrupts the encrypted pixel locations. On the other hand, the entropy values ​​of different encrypted images are very close to 8, which is much higher than that of the original image. Therefore, the distribution of pixel values ​​in the encrypted image has higher randomness, which can better ensure security.

[0085] Table 5: Information entropy of different images in two scenarios with n=4 and 8 sub-blocks

[0086]

[0087] This embodiment mainly compares the scheme of the present invention with scheme [1], and compares the embedding rate with some other schemes. In Table 6, except for the case where the number of sub-blocks n=4 and the block size=32, the embedding rate of the present invention is higher than that in [1]. In particular, when each block is divided into 8 parts, the embedding rate is greatly improved. Since the image quality of the restored image mainly depends on the error rate, this embodiment further compares the error rate of the scheme of the present invention with that of [1]. As shown in Table 7, [1] has lower errors in most cases because they only train the CNN model on these four images. The scheme of the present invention trains the VQ codebook on other images, so the error rate is relatively high. Nevertheless, the error rates remain at a low level, so they are still acceptable, especially in larger block sizes.

[0088] Table 6: Comparison of embedding rate γ (bpp) under different conditions

[0089]

[0090] Table 7: Comparison of error rate ε(%) under different conditions

[0091]

[0092] Since the embedding space of the present invention is freed up after image encryption, the embedding rate of this embodiment is compared with some VRAE schemes [1]-

[10] , as shown in Table 8. In [1] and the scheme proposed by the present invention, the block size is set to 8×8 in this embodiment, and the number of sub-blocks n in the scheme of the present invention is 8.

[0093] Table 8: Comparison of maximum embedding rates of different schemes

[0094]

[0095] The specific methods of related work in the prior art are shown in the following documents:

[0096] [1] S. Panchikkil, VM Manikandan, and Y.-D. Zhang, "A convolutional neural network model based reversible data hiding scheme in encrypted images with block-wise Arnold transform," Optik, vol.250, p.168137, Jan.2022, doi:10.1016 / j.ijleo.2021.168137.

[0097] [2] C.-W.Shiu, Y.-C.Chen, and W.Hong, "Encrypted image-based reversibledata hiding with public key cryptography from difference expansion," SignalProcess.Image Commun., vol.39, pp.226–233, Nov.2015, doi:10.1016 / j.image.2015.09.014.

[0098] [3]X.Zhang,J.Long,Z.Wang,and H.Cheng,“Lossless and Reversible DataHiding in Encrypted Images With Public-Key Cryptography,”IEEE Trans.CircuitsSyst.Video Technol.,vol.26,no.9,pp.1622–1631,Sep.2016,doi:10.1109 / TCSVT.2015.2433194.

[0099] [4]S.Agrawal and M.Kumar,“Mean value based reversible data hiding inencrypted images,”Optik,vol.130,pp.922–934,Feb.2017,doi:10.1016 / j.ijleo.2016.11.059.

[0100] [5]M.Li and Y.Li,“Histogram shifting in encrypted images with publickey cryptosystem for reversible data hiding,”Signal Process.,vol.130,pp.190–196,Jan.2017,doi:10.1016 / j.sigpro.2016.07.002.

[0101] [6]X.Zhang,“Reversible Data Hiding in Encrypted Image,”IEEE SignalProcess.Lett.,vol.18,no.4,pp.255–258,Apr.2011,doi:10.1109 / LSP.2011.2114651.

[0102] [7]W.Hong,T.-S.Chen,and H.-Y.Wu,“An Improved Reversible Data Hidingin Encrypted Images Using Side Match,”IEEE Signal Process.Lett.,vol.19,no.4,pp.199–202,Apr.2012,doi:10.1109 / LSP.2012.2187334.

[0103] [8]X.Zhang,“Separable Reversible Data Hiding in Encrypted Image,”IEEETrans.Inf.Forensics Secur.,vol.7,no.2,pp.826–832,Apr.2012,doi:10.1109 / TIFS.2011.2176120.

[0104] [9]L.Xiong,Z.Xu,and Y.-Q.Shi,“An integer wavelet transform basedscheme for reversible data hiding in encrypted images,”Multidimens.Syst.SignalProcess.,vol.29,no.3,pp.1191–1202,Jul.2018,doi:10.1007 / s11045-017-0497-5.

[0105]

[10] Y.-C.Chen,C.-W.Shiu,and G.Horng,“Encrypted signal-basedreversible data hiding with public key cryptosystem,”J.Vis.Commun.ImageRepresent.,vol.25,no.5,pp.1164–1170,Jul.2014,doi:10.1016 / j.jvcir.2014.04.003.

[0106] The results show that the scheme proposed by the present invention has an excellent embedding rate compared with other schemes. This is because the present invention uses the full permutation technique in mathematics, which produces more permutations than other permutation techniques, so the embedding rate of the present invention is better. The present invention can conclude that the scheme of the present invention improves the embedding ability of related works. If you are willing to sacrifice some computing time, the proposed scheme can also use a larger VQ code to restore the image and obtain a higher accuracy.

[0107] The above-described embodiment is only a preferred solution of the present invention, but it is not intended to limit the present invention. A person skilled in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.

Claims

1. A method for hiding encrypted image data based on full permutation transformation, characterized in that: Here are the steps: S1: Encrypt the original image O of size M×N into an encrypted image E of size M×N using a stream cipher; S2: Divide the encrypted image E into non-overlapping pixel blocks of size p×q, each pixel block as an encryption block, where EB θ represents the θth encrypted block; S3: For all encrypted blocks EB in the encrypted image E θ , according to the pixel block scanning order from left to right and from top to bottom, perform S31 to S32 on each pixel block to embed the secret information; S31: Encrypted block EB θ Divide into n sub-blocks of the same size, perform non-repeated full permutation operations on these n sub-blocks, and form all permutations into a permutation list; Find the current encrypted block EB from the permutation list θ The arrangement of , and starting from the current arrangement, the numbering is cyclic along the arrangements in the list; S32: traverse each encrypted block EB θ , if the encrypted block EB θ The generated permutation list has W items. By searching the permutation list for the corresponding permutation based on the secret data and replacing the current encrypted block permutation with the found permutation, the encrypted block is embedded bits of secret data; S4: Traverse each pixel block EB in image E θ After that, the encrypted image E′ containing the secret data is sent to the receiving end.

2. The encrypted image data hiding method based on full permutation transformation according to claim 1 is characterized in that: In S1, a pseudo-random matrix of size M×N is used as the encryption key K required for image encryption. E , where each value in the pseudo-random matrix ranges from 0 to 255; then, the 8-bit binary number of each pixel O(i, j) of the original image O of size M×N and the 8-bit binary number of the corresponding encryption key are subjected to a bitwise exclusive OR (XOR) operation according to the following formula to obtain the encrypted binary number: Where (i, j) represents the coordinates in the corresponding image, and the ranges of i and j are [1, M] and [1, N] respectively. Indicates XOR operation; the superscript x indicates a binary bit, x = 1, 2, ..., 8; Finally, the encrypted binary number of each pixel is converted into a decimal number to obtain the encrypted pixel at the corresponding position in the encrypted image E.

3. The encrypted image data hiding method based on full permutation transformation according to claim 2 is characterized in that: In S2, the encrypted image E is divided into non-overlapping pixel blocks of size 4×4, 8×8, 16×16 or 32×32.

4. The method for hiding encrypted image data based on full permutation transformation according to claim 3 is characterized in that: In S31, the encrypted block EB θ Divide into n sub-blocks of the same size, list all random permutations of these n sub-blocks, and delete the same permutations. In each group of retained permutations, the n sub-blocks form a block of the same size as the original encrypted block; then, extract the pixel values ​​of each permutation in order from top to bottom and from left to right, so that each permutation forms a p×q dimensional array, and then sort all permutations from small to large according to these p×q arrays to form a permutation list; find the current encrypted block EB from the permutation list θ The permutation is selected and the index of the permutation is set to 0. Other permutations are numbered in sequence following the permutation of the current encryption block.

5. The encrypted image data hiding method based on full permutation transformation according to claim 4 is characterized in that: In S32, for any encrypted block EB θ , embedded The specific operation of k-bit secret data is: take out the k-bit secret data to be embedded in the block, convert it into decimal D, find the permutation with index number D in the permutation list, and use it to replace the current encrypted block EB in the encrypted image E θ , completing the embedding of secret data.

6. The encrypted image data hiding method based on full permutation transformation according to claim 5 is characterized in that: In S4, the encrypted image E' containing the secret data is sent to the receiving end.

7. The encrypted image data hiding method based on full permutation transformation according to claim 4 is characterized in that: After the receiver receives the encrypted image E' containing the secret data, the decryption method is: S5. Obtain a VQ codebook of size L to assist the receiver in restoring the image and extracting the secret data; S6. Divide the received encrypted image E′ containing the secret data into non-overlapping secret encrypted blocks of size p×q, where EB′ θ represents the θth secret encryption block; according to the same operation as S31 when embedding secret data, EB′ θ Divide into n sub-blocks, and then perform a non-repeated full permutation operation on these n sub-blocks to generate a permutation list sorted from small to large; then, use the encryption key K E The decryption operation is performed on each permutation in the permutation list, and the decryption operation is shown in the following formula: Where (i, j) represents the coordinates in the corresponding image, the ranges of i and j are [1, M] and [1, N] respectively, E(i, j) v It represents the permutation of the vth item in the permutation list. The superscript x represents the binary bit. IT(i,j) v represents the decrypted permutation of the vth item in the permutation list, where v is in the range [1, W]; After the above decryption operation, for each secret encryption block EB′ θ , and we get EB′ θ A decryption list consisting of W decrypted permutations, where only one item in the decryption list is the permutation of the original image block; Calculate the shortest distance between the W items in the decryption list and the VQ codebook, and select the shortest distance as the current secret encryption block EB′ θ The original arrangement of the determined original arrangement is determined, and all the arrangements in the decryption list are numbered and indexed according to the determined original arrangement, wherein the index number of the determined original arrangement is 0, and the other arrangement items are numbered in sequence following the current item; S7. Find the index of the received permutation in the decryption list, obtain the secret data embedded in the block by extracting this index and converting it into a k-bit binary number, and restore the pixels of the image block with the permutation with index number 0.

8. The encrypted image data hiding method based on full permutation transformation according to claim 7 is characterized in that: The VQ codebook is obtained by dividing a number of images used as training sets into non-overlapping pixel blocks of size p×q, and then using the LBG algorithm.

9. The encrypted image data hiding method based on full permutation transformation according to claim 3 is characterized in that: The number n of sub-blocks into which the pixel block is divided is 4 or 8.

10. The encrypted image data hiding method based on full permutation transformation according to claim 7 is characterized in that: The size of the VQ codebook is L=64 or 128.

Citation Information

Patent Citations

  • Encrypted domain lossless reversible information concealing method based on carrier image check code

    CN103268588A

  • Reversible information hiding method for encrypted image

    CN105847629A