Image Encryption via Header Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for encrypting and decrypting images on mobile terminals are inefficient due to the need to encrypt and decrypt the entire image, resulting in low speed and efficiency.
Innovation Solution
A method that encrypts only the header data of an image, determines a storage location for the encrypted data, and places an encryption identifier and offset in a storage area to encrypt the image, improving the speed and efficiency of the process by not requiring the entire image to be encrypted.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the entire image is encrypted and decrypted, then the security of the image is ensured, but the speed and efficiency of encryption and decryption are low
Solution Approach 1:
The patent segments the image into two distinct parts: header data and image content. Only the header data (typically a few kilobytes) is encrypted and stored separately, while the main image content remains unencrypted. This segmentation allows rapid decryption by only processing the small encrypted header, dramatically improving speed while maintaining security through the encrypted header that contains decryption keys or authentication information.
Solution Approach 2:
The patent extracts the critical security elements (encryption keys, authentication data) from the main image body and places them in a separate encrypted header. This extraction allows the system to verify and decrypt images quickly by only processing the extracted header portion, rather than encrypting/decrypting the entire large image file, thus resolving the contradiction between security and speed.
2Reliability
If the entire image is encrypted, then the security is improved, but the computational burden increases and efficiency decreases
Solution Approach 1:
By segmenting the image into header and content portions, the patent reduces the amount of data requiring encryption from the entire image to only the small header section. This segmentation minimizes processing time and computational resource consumption while maintaining security through the encrypted header that contains essential decryption information.
Solution Approach 2:
The patent applies partial encryption action by encrypting only the necessary header portion rather than the entire image. This partial action is sufficient to ensure security (as the header contains decryption credentials) while significantly reducing the computational burden and processing time compared to full-image encryption.
Data Source
AI summary
The present invention relates to the field of computers, and disclosed are a method, device, and system for encrypting and decrypting an image. The method for encrypting an image includes: encrypting a preset size of header data of a to-be-encrypted image, and obtaining an encrypted data corresponding to the header data; determining a storage location for saving the encrypted data, saving the encrypted data in the storage location, and acquiring an offset for saving the encrypted data; and placing the encryption identifier and the offset in a storage area of the preset size of the to-be-encrypted image, so as to encrypt the to-be-encrypted image. The system includes: a device for encrypting an image and a device for decrypting an image. The present invention is capable of improving the speed and efficiency of encrypting and decrypting an image.


