Data structure product and computer program product for compressed file

TWI934334BActive Publication Date: 2026-08-01ACER INC
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
TW · TW
Patent Type
Patents
Current Assignee / Owner
ACER INC
Filing Date
2024-11-08
Publication Date
2026-08-01

AI Technical Summary

Technical Problem

Current file transfer methods, especially in secure environments, rely on simple passwords for compressed files, leading to inadequate security and complex password management as the number of encrypted files grows.

Method used

The implementation of AES encryption for compressed files, combined with QR code embedding of random codes, ensures secure encryption and automatic key generation, reducing the need for manual password management by concatenating encrypted data with QR codes.

Benefits of technology

Enhances encryption security and simplifies password management by automating key generation and decryption processes, making it difficult for unauthorized access even if one key is compromised.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure TWG2TB001903675_001
    Figure TWG2TB001903675_001
  • Figure TWG2TB001903675_002
    Figure TWG2TB001903675_002
  • Figure TWG2TB001903675_003
    Figure TWG2TB001903675_003
Patent Text Reader

Abstract

One aspect of this disclosure is a data structure product for storing compressed files encrypted with Advanced Encryption Standard (AES). The data structure product includes a header, a concatenated file appended to the header, and encrypted compressed data containing the original data encrypted with a compression cipher in a compressed format. The concatenated file includes a QR code image representing the plaintext generated after the compression cipher is encrypted by AES, and a seed corresponding to the key used to encrypt the plaintext.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a data structure product for storing compressed files encrypted with Advanced Encryption Standard (AES), and to a computer program product for generating or opening compressed files after being loaded by a computer. Prior Technology

[0002] In current file transfer applications, when there are many files, they are often packaged into a compressed file, such as a ZIP file, for easy transmission. However, in environments where data security is paramount, such as in the workplace, and when using file transfer methods like email or work communication software, these compressed files usually require passwords to comply with security policies. To save time, users often set simple passwords, which do not substantially improve security. Furthermore, users who store password-protected compressed files also need to store the passwords for future access, and the complexity of managing these passwords increases as the number of encrypted compressed files grows. Therefore, there is a need for technologies that can improve the encryption security of encrypted compressed files while reducing the complexity of password management. Summary of the Invention

[0003] The technology disclosed herein encrypts and compresses original data using a compression cipher in a compressed format to obtain encrypted compressed data that can pass secure verification during transmission. Simultaneously, the text of the compression cipher is encrypted using the Advanced Encryption Standard (AES) to produce corresponding plaintext text and random codes, which are then concatenated into the header of the encrypted compressed data using concatenation technology to form a compressed file.

[0004] According to the first aspect of this disclosure, a data structure product is proposed for storing compressed files encrypted with Advanced Encryption Standard (AES). The data structure product includes a header, a concatenated file appended to the header, and encrypted compressed data containing the original data encrypted with a compression cipher in a compressed format. The concatenated file includes a QR code image representing the plaintext generated after the compression cipher is encrypted by AES, and a random code (seed) corresponding to the key used to encrypt the plaintext.

[0005] According to the second aspect of this disclosure, a computer program product is proposed that generates or opens compressed files after being loaded by a computer. The data computer program product includes an encryption compression module for encrypting and compressing raw data using a compression cipher in a compressed format, thereby forming encrypted compressed data including a header. The data computer program product also includes an advanced encryption standard module for encrypting the compression cipher using a key according to an advanced encryption standard, thereby converting the compression cipher into plaintext and a random code. The random code corresponds to the key. The data computer program product also includes a QR code conversion module for converting the plaintext and the random code into QR code images. The data computer program product also includes a concatenation module for concatenating the QR code images as concatenation files to the header of the encrypted compressed data to form a compressed file.

[0006] The foregoing description is not intended to represent every embodiment or aspect of this disclosure. Rather, it provides only examples of some novel aspects and features set forth in this disclosure. The foregoing features and advantages, as well as other features and advantages, will become apparent from the following detailed description of representative embodiments and modes of implementation of the invention when taken in conjunction with the accompanying drawings and the claims. Other aspects of this disclosure will be apparent to those skilled in the art from the detailed description of various embodiments with reference to the drawings and the brief description provided below.

[0007] To provide a better understanding of the above and other aspects of the present invention, specific embodiments are described below in conjunction with the accompanying drawings: Simple Explanation of the Diagram

[0008] This disclosure, its advantages, and the drawings will be readily understood from the following description of representative embodiments in conjunction with the accompanying drawings. These drawings depict only representative embodiments and should not be considered as limiting the scope of the various embodiments or the claims. Figure 1 illustrates a functional block diagram of an example computer program for opening and generating compressed files according to various embodiments of this disclosure. Figure 2 illustrates a schematic diagram of the data structure of a compressed file according to various embodiments of the present disclosure. Figure 3 illustrates a flowchart of an example program for generating a compressed archive according to various embodiments of this disclosure. Figure 4 illustrates a flowchart of an example program for opening a compressed file according to various embodiments of this disclosure. Implementation

[0009] Figures 1 and 2 illustrate, respectively, a functional block diagram of an example computer program 100 for opening and generating compressed files CF according to various embodiments of the present disclosure, and a schematic diagram of the data structure 200 of the compressed file CF. Referring also to Figures 1 and 2, the computer program 100 can be loaded by a computer to generate or open compressed files CF. The computer program 100 includes an encrypted compression module 110, an advanced encryption standard module 120, a QR code conversion module 130, and a concatenation module 140. The data structure 200 of the compressed file CF includes a header HD, a concatenated file CTF concatenated to the header HD, and encrypted compressed data ECD. The encrypted compressed data ECD contains the original data RD encrypted and compressed in a compressed format (e.g., ZIP) using a compression password CPW.

[0010] In some embodiments, when computer program 100 packages and compresses original data RD to generate a compressed file CF, the encryption compression module 110 of computer program 100 encrypts and compresses the original data RD using a compression password CPW in a compression format to form an encrypted compressed data ECD containing a header HD, for example, using a ZIP compression format to form a ZIP file. The header HD and the encrypted compressed data ECD are contained in data structure 200, as shown in Figure 2. In some embodiments, the compression password CPW can be entered by the user or randomly generated by computer program 100. The encrypted compressed data ECD, encrypted with the compression password CPW, is primarily protected by a security policy that requires password protection for transmitted compressed files. The compression password CPW is usually plain text and needs to be stored separately and provided to the user who wants to use the encrypted compressed data ECD.

[0011] To enhance the security and ease of management of the compressed password CPW, in various embodiments disclosed herein, the Advanced Encryption Standard module 120 of computer program 100 uses the Advanced Encryption Standard (AES), such as AES256 and its algorithm, to encrypt the compressed password CPW using a key KY (or multiple keys), thereby converting the compressed password CPW into plaintext PT and generating a random code SD corresponding to the key KY. In some embodiments, the user can select or specify the random code SD in computer program 100 to encrypt the compressed password CPW using the corresponding key KY. The range of the random code SD can be, for example, 2 to the power of 32, approximately ten digits.

[0012] After obtaining the plaintext text PT representing the encrypted compressed cipher CPW and the corresponding random code SD for the key KY, the computer program 100's QR code conversion module 130 converts the plaintext text PT and the random code SD into a QR code image file QiI for easier management of this AES encryption. In some implementations, in addition to the cipher, the QR code image file QiI can also have additional file information embedded by the QR code conversion module 130, such as filename, file size, file hash, or other custom text.

[0013] Next, the concatenation module 140 of computer program 100 concatenates the QR code image file QiI to the header HD of the encrypted compressed data ECD, for example, by adding a concatenated file CTF to the header HD to form a compressed file CF. Compression formats, such as ZIP compression, according to their specifications, allow arbitrary concatenation of additional content to the header HD without affecting the functionality of the encrypted compressed data ECD itself. In other words, from the perspective of the compressed file CF as a whole, only the encrypted compressed data ECD is encrypted by the compression password CPW, while the concatenated file CTF (containing the QR code image file QiI) to the header HD can be directly extracted and read.

[0014] In some implementations, when computer program 100 reads and opens compressed file CF, the QR code conversion module 130 of computer program 100 can read the QR code image file QI of concatenated file CTF according to the header HD, so as to convert the QR code image file QI into random code SD and plaintext text PT.

[0015] After obtaining the random code SD and the plaintext text PT, the advanced encryption standard module 120 of computer program 100 uses the random code SD to generate the corresponding key KY (or a set of keys) used for the encrypted compression cipher CPW, and uses the key KY to decode the plaintext text PT into the compressed cipher CPW. In other words, based on the random code SD, the advanced encryption standard module 120 of computer program 100 (e.g., using the AES algorithm) can calculate the corresponding key KY. For example, when the random code SD is 001, it will calculate three sets of keys KY (A, B, C), or when the random code SD is 002, it will calculate three sets of keys KY (B, C, D), without the user needing to manually select or input the random code / key. Furthermore, in this case, the keys for each compressed file are different, further enhancing security. Even if one set of keys is leaked, it will not affect the overall security. Finally, the encryption compression module 110 of computer program 100 uses the compressed cipher CPW to decompress the encrypted compressed data ECD to obtain the original data RD. It is understandable that the same computer program 100 is needed for AES encryption and AES decryption to convert between the key KY and the random code SD. Therefore, when the compressed file is leaked, other computer devices that do not use computer program 100 cannot decrypt the compressed password CPW based on the concatenated QR code image file QiI in the compressed file CF, and thus cannot access the original data RD.

[0016] Figure 3 illustrates a flowchart of an example program for generating a compressed file according to several embodiments of the present disclosure. In step S310, for example, the original data (e.g., original data RW) is encrypted and compressed using a compression format (e.g., ZIP) and a compression password (e.g., compression password CPW) by the encryption compression module 110 of computer program 100 to obtain encrypted compressed data (e.g., encrypted compressed data ECD).

[0017] In step S320, for example, the Advanced Encryption Standard module 120 of computer program 100 uses the Advanced Encryption Standard (AES), such as AES256 and its algorithm, to encrypt the compressed cipher, thereby generating plaintext (e.g., plaintext PT) converted from the compressed cipher encryption and a random code (e.g., random code SD) corresponding to the key (e.g., key KY or multiple keys) used for AES encryption of the compressed cipher.

[0018] In step S330, for example, the plaintext and random code are converted into QR code image files (e.g., QR code image file QI) by the QR code conversion module 130 of computer program 100.

[0019] In step S340, for example, the serialization module 140 of computer program 100 concatenates the QR code image file QI to the header (e.g., header HD) of encrypted compressed data, for example, by adding a concatenated file CTF with the header HD concatenated, to form a compressed file.

[0020] Figure 4 illustrates a flowchart of an example program for opening a compressed file according to various embodiments of the present disclosure. In step S410, for example, the QR code conversion module 130 of the computer program 100 reads the QR code image file of the concatenated file by means of the header, so as to convert the QR code image file into random code and plain text.

[0021] In step S420, for example, the Advanced Encryption Standard Module 120 of computer program 100 is used to generate a corresponding key (or a set of keys) for use in AES encrypted compression cipher using a random code.

[0022] In step S430, for example, the Advanced Encryption Standard Module 120 of computer program 100 is used to decode the plaintext into a compressed cipher CPW using a key.

[0023] In step S440, for example, the encrypted compressed data is decompressed using the encryption and compression module 110 of the computer program 100 to obtain the original data.

[0024] As explained above, the encryption technology for compressed files disclosed herein can automatically process the compression password during both encryption and decompression processes when original data (which may include multiple files) needs to be packaged into an encrypted compressed file. This reduces the burden on users in managing compression passwords and ensures that the compressed files being transmitted have an encryption security policy. Furthermore, using AES to encrypt the compression password and converting the corresponding AES-generated random code and plaintext into a QR code, which is then concatenated with the encrypted compressed data, can also automatically encrypt and decrypt the compression password. Moreover, the computer program does not pre-store the key; instead, it calculates the key using the built-in AES algorithm each time it is decompressed, increasing the difficulty of reverse engineering and enhancing the security of the compressed files.

[0025] This disclosure and other examples can be implemented as one or more computer program products, for example, where one or more modules of computer program instructions encoded on a computer-readable medium are executed by or control the operation of a data processing device. The computer-readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, or a combination thereof. The term "data processing device" includes all means, apparatus, and machines for processing data, including, for example, a programmable processor, a computer, or multiple processors or computers. In addition to hardware, this means may include program code that establishes the execution environment of the computer program in question, such as program code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination thereof.

[0026] Computer programs (also known as programs, software, software applications, instruction code, or program code) can be written in any form of programming language, including compiled or interpreted languages, and can be deployed in any form, including as a standalone program, a module, component, subroutine, or other unit used in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored as part of a file containing other programs or data (e.g., one or more instruction codes stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files containing one or more modules, subroutines, or portions of program code). Computer programs can be configured to execute on one or more computers. These computers may be located in one place or distributed across multiple locations and interconnected via a communication network.

[0027] The programs and logic flows described herein can be executed by one or more programmable processors that execute one or more computer programs to perform the functions described herein. The programs and logic flows can also be executed by special purpose logic circuitry, and the devices can also be implemented by special purpose logic circuitry, such as field programmable gate arrays (FPGAs) or application-specific integrated circuits (ASICs), or executed by a system-on-a-chip (SoC).

[0028] Processors suitable for executing computer programs include, for example, both general-purpose microprocessors and special-purpose microprocessors, and any one or more processors of any type of digital computer. Generally, a processor receives instructions and data from read-only memory or random access memory, or both. The basic components of a computer may include a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer may also include or be operatively coupled to one or more mass storage devices for storing data, to receive data from, or to transfer data to, or both of these mass storage devices. Examples of such mass storage devices are magnetic disks, magneto-optical disks, or optical disks. However, a computer does not necessarily need to have such devices. Computer-readable media suitable for storing computer program instructions and data may include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks. Processors and memory may be supplemented or integrated into special-purpose logic circuitry.

[0029] Various embodiments are described with reference to the accompanying drawings, wherein all drawings use the same element reference numerals to denote similar or equivalent elements. The drawings are not necessarily drawn to scale and are provided only to illustrate aspects and features of this disclosure. Numerous specific details, relationships, and methods are set forth to provide a comprehensive understanding of certain aspects and features of this disclosure, although those skilled in the art will recognize that these aspects and features can be implemented without one or more of the specific details, relationships, or methods. In some cases, well-known structures or operations are not shown in detail for illustrative purposes. The various embodiments disclosed herein are not necessarily limited to the order of the described actions or events, as some actions may occur in a different order and / or simultaneously with other actions or events. Furthermore, not all actions or events in the drawings are necessary to realize certain aspects and features of this disclosure.

[0030] Although the invention has been described and illustrated with respect to one or more embodiments, other skilled in the art will recognize or understand equivalent changes and modifications upon reading and understanding this specification and the accompanying drawings. Furthermore, while a particular feature of the invention may be disclosed only in one of several embodiments, this feature may be combined with one or more other features of other embodiments, as these features may be desired and advantageous for any given or particular application.

[0031] While various embodiments of the invention have been described above, it should be understood that they are presented by way of example only and not as limitation. Many changes may be made to the disclosed embodiments based on the disclosure without departing from the spirit or scope of the invention. Therefore, the breadth and scope of the invention should not be limited by any of the above embodiments. Rather, the scope of the invention should be defined according to the appended claims and their equivalents.

[0032] 100: Computer Programs 110: Encrypted Compression Module 120: Advanced Encryption Standard Module 130: QR code conversion module 140: Serial module CF: Compressed Archive CPW: Compression Password CTF: File Serialization ECD: Encrypted Compressed Data HD: Booth KY: Key PT: Plain text QI:QR code image file RD: Original data SD: Random Code S310~S340, S410~S440: Steps

Claims

1. A data structure product for storing compressed archives encrypted with Advanced Encryption Standard (AES), the data structure product comprising: a header; a concatenated file concatenated to the header; and encrypted compressed data comprising original data encrypted and compressed with a compression cipher in a compression format, wherein, The concatenated file contains a QR code image file, which represents plaintext generated by encrypting the compressed password with the Advanced Encryption Standard (AES) and a random code (seed) corresponding to a key used to encrypt the plaintext. When a computer program loaded on a computer generates the data structure product, the following steps are performed to encrypt the original data: The original data is encrypted and compressed using the compressed password in the compressed format to obtain the encrypted compressed data; The compressed password is encrypted using the AES to generate the plaintext and the random code; The plaintext and the random code are converted into the QR code image file and concatenated into the header to generate the data structure product.

2. The data structure product as described in claim 1, wherein the advanced encryption standard is AES256.

3. The data structure product as described in claim 1, wherein the compression format is ZIP.

4. The data structure product as described in claim 1, wherein when a computer program installed on a computer, capable of generating a corresponding key using the random code, opens the data structure product, the following steps are performed to read the original data: reading the QR code image file of the concatenated file using the header, converting the QR code image file into the random code and the plaintext; using the random code to generate the corresponding key, and using the key to decode the plaintext into the compressed password; and using the compressed password to decompress the encrypted compressed data to obtain the original data.

5. A computer program product that generates or opens a compressed file after being loaded by a computer, the computer program product comprising: an encryption compression module for encrypting and compressing original data using a compression cipher in a compression format to form an encrypted compressed data including a header; an advanced encryption standard module for encrypting the compression cipher using a key in an advanced encryption standard to convert the compression cipher into plaintext and a random code, wherein the random code corresponds to the key; a QR code conversion module for converting the plaintext and the random code into a QR code image file; and a concatenation module for concatenating the QR code image file as a concatenation file to the header of the encrypted compressed data to form the compressed file.

6. The computer program product as described in claim 5, wherein the advanced encryption standard is AES256.

7. The computer program product as described in claim 5, wherein the compression format is ZIP.

8. The computer program product as described in claim 5, wherein when the compressed file is opened, the QR code conversion module reads the QR code image file of the concatenated file through the header, and converts the QR code image file into the random code and the plaintext.

9. The computer program product as described in claim 8, wherein the advanced encryption standard module uses the random code to generate the corresponding key, uses the key to convert the plaintext into the compressed cipher, and the encrypted compression module uses the compressed cipher to decompress the encrypted compressed data to obtain the original data.