Partial Image Encryption via Data Block Splicing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
There is a need for an image processing method that allows for partial encryption of images to ensure only authorized individuals can view the complete content, while unauthorized users can only see partial content for privacy protection.
Innovation Solution
The method involves editing an original image, encrypting it, and saving it as a partially-encrypted file by splicing the encrypted data block behind or between file terminators in the image file, with indication information for decryption and display purposes, allowing for secure viewing based on password input.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the entire image is encrypted, then security is improved, but the ability to preview or share partial content is lost
Solution Approach 1:
The image is divided into multiple data blocks, where only certain blocks are encrypted while others remain in plaintext. This allows the image to be segmented into secure and accessible portions, enabling both security and partial preview functionality simultaneously.
Solution Approach 2:
Different regions of the image file are assigned different encryption states. The header and specific data blocks maintain plaintext quality for accessibility, while other blocks apply encryption for security, creating local quality variations within the same file.
2Measurement precision
If indication information is added to mark encrypted blocks, then decryption accuracy is improved, but file complexity increases
Solution Approach 1:
Indication information is pre-inserted into the image file header and data blocks during the encryption process. This preliminary marking enables the decryption device to quickly identify encrypted blocks without complex analysis, improving decryption accuracy while maintaining manageable file structure.
Data Source
AI summary
An image encryption method, an image viewing method, a system, and a terminal are provided. The image encryption method includes: editing an original image, saving the edited original image as a first image file; encrypting the original image to generate an encrypted data block; and, splicing the first image file with the encrypted data block to generate and save a partially-encrypted image file. The image viewing method includes: when determining that indication information used for indicating partial encryption process is carried in an image file, decrypting an encrypted data block, and displaying data of an original image obtained after decrypting successfully; herein, the partially-encrypted image file is formed by splicing the first image file and the encrypted data block, the first image file contains edited original image data, and the encrypted data block corresponds to encrypted original image data.


