File Processing With Multi-Channel Canvas Compression Before Encryption
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing data transmission methods face challenges in balancing compression and encryption, leading to increased information entropy and reduced transmission speed and confidentiality, especially in insecure network environments.
Innovation Solution
A file processing method that converts original files into byte arrays and saves data on a canvas using one-channel, two-channel, and three-channel storage methods, determining the data with the smallest volume for encryption, and applying compression and encryption techniques to minimize entropy increase.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If data is encrypted to prevent leaks, then confidentiality is improved, but data volume increases and transmission speed decreases
Solution Approach 1:
The patent applies compression before encryption to reduce the data volume that needs to be encrypted. By performing the compression action in advance, the subsequent encryption process operates on smaller data, thereby maintaining confidentiality while reducing the impact on transmission speed.
Solution Approach 2:
The patent changes the parameter of data representation by converting file data into image pixel data (RGBA format). This parameter transformation allows the data to be compressed more effectively using image compression algorithms, reducing the overall data volume before encryption without compromising confidentiality.
2Productivity
If data is compressed to reduce volume, then transmission speed is improved, but information entropy decreases making compression less effective when encryption is applied
Solution Approach 1:
The patent transforms data parameters by converting file contents into image pixel values (0-255 range for RGBA channels). This parameter change enables the data to benefit from image compression algorithms that work effectively on the reduced entropy of pixel data, achieving better compression ratios before encryption is applied.
Solution Approach 2:
The patent introduces an intermediary representation format (image pixels) between the original file data and the encrypted output. This intermediary form allows compression to be applied more effectively, as image data has different statistical properties that are more amenable to compression algorithms, thereby reducing the conflict between compression effectiveness and encryption requirements.
3Reliability
If multiple compression methods are applied to find the smallest data volume, then confidentiality is improved, but device complexity increases
Solution Approach 1:
The patent segments the compression process into distinct stages: converting file data to image pixels, applying image compression, and then encrypting the compressed result. This segmentation allows each stage to be optimized independently, managing complexity by breaking down the overall process into manageable, sequential steps rather than attempting to combine multiple compression algorithms simultaneously.
Data Source
Figure 1
Figure 2
Figure 3a
AI summary
The present application discloses a file processing method, which includes: obtaining an original file to be transmitted; converting the original file into bytes to obtain a byte array; saving the byte array onto a canvas using a multi-channel storage method and compressing it to obtain multi-channel data; determining data with the smallest data volume among the multi-channel data and the byte array as the data to be encrypted, performing encryption processing on the data to be encrypted to obtain encrypted data of the original file. It can achieve a balance between compression and encryption.