EPUB Unit File Compression and Encryption Strategy

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
ImprovesecurityVSAvoidcompression efficiency
Core Design Contradiction:
ReliabilityVSProductivity

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.

Inventive Principle:
Principle #1Segmentation

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.

Inventive Principle:
Principle #10Preliminary action

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

Engineering Contradiction:
Improvefile structureVSAvoidcompression efficiency
Core Design Contradiction:
Device complexityVSProductivity

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.

Inventive Principle:
Principle #1Segmentation

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.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS11360941B2Method and device for compressing and decompressing unit files for EPUB file encryption
Publication Date: 2022.06.14 FASOO CO LTD
  • US11360941B2 patent drawing
  • US11360941B2 patent drawing
  • US11360941B2 patent drawing

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.