EPUB Unit File Compression and Encryption Strategy
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing EPUB file encryption methods do not effectively reduce file size due to compression inefficiencies when encrypting multiple unit files, degrading compression efficiency.
Innovation Solution
A method that compresses and encrypts target unit files separately before packaging the remaining files, using different encryption keys and recording original data sizes in encryption.xml for efficient compression and decompression.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If encryption is applied to multiple unit files before compression, then security is improved, but compression efficiency deteriorates and file size reduction is lost
Solution Approach 1:
The patent segments the EPUB file processing into two distinct paths: encrypted unit files are compressed individually before encryption, while non-encrypted unit files are compressed separately. This segmentation allows compression to occur on plaintext data (maintaining efficiency) while still achieving security through subsequent encryption, resolving the contradiction between security and compression efficiency.
Solution Approach 2:
The patent applies preliminary compression to unit files before encryption. By compressing the data in its plaintext state first, the system achieves optimal compression ratios. The encrypted data is then packaged without further compression, maintaining the compression efficiency that would be lost if encryption preceded compression.
2Device complexity
If all unit files are compressed into a single file format, then file structure is simplified, but compression efficiency is degraded when encryption is applied
Solution Approach 1:
The patent divides the compressed file structure into segments: encrypted unit files are compressed and packaged separately from non-encrypted unit files. The packaging process creates a structured container that organizes these segments while preserving the ability to apply different compression and encryption treatments to each segment, thus maintaining compression efficiency while managing file structure complexity.
Solution Approach 2:
The patent applies different quality treatments to different parts of the EPUB file system. Encrypted unit files receive compression followed by encryption, while non-encrypted unit files receive only compression. This local differentiation allows each file type to be treated optimally, maintaining overall compression efficiency while achieving security where needed.
Data Source
AI summary
Disclosed are a method and a device for compressing and decompressing unit files when encrypting an electronic publication (EPUB) file. The method for compressing unit files for EPUB file encryption comprises: a step of determining an encryption target unit file from among a plurality of unit files forming an EPUB file; a step of performing encryption of the compressed encryption target unit file; and a step of performing compression of general unit files among the plurality of unit files in addition to the encryption target unit file. As such, by performing compression of the encryption target unit file before the general unit files, it is possible to effectively reduce the size of a single packaged EPUB file.


