File encryption method and device and storage medium

An encryption method and file technology, applied in computer security devices, instruments, electronic digital data processing and other directions, can solve the problem of key resource encryption of files, and achieve the effect of increasing the randomness of encryption, avoiding leakage and ensuring security.

Pending Publication Date: 2021-04-06
武汉市多比特信息科技有限公司
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, it is necessary to provide a file encryption method to solve the problem of how to effectively encrypt key resources of files in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File encryption method and device and storage medium
  • File encryption method and device and storage medium
  • File encryption method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] The embodiment of the present invention provides a kind of file encryption method, combines figure 1 look, figure 1 It is a schematic flow chart of the file encryption method provided by the present invention, the file encryption method includes steps S1 to S5, wherein:

[0040] In step S1, various files among the key resources are obtained, and files to be encrypted among the various files are determined;

[0041] In step S2, according to the encryption rules, the encryption key corresponding to the file to be encrypted and the added length of the header are determined;

[0042] In step S3, add an encrypted record field to the header of the file to be encrypted according to the added length of the header;

[0043] In step S4, encrypt the file to be encrypted according to the encryption key and the encrypted record field, and determine the encrypted file;

[0044] In step S5, encrypt the file to be encrypted according to the encryption key and the encrypted record fi...

Embodiment 2

[0069] An embodiment of the present invention provides a device for encrypting a file, including a processor and a memory, where a computer program is stored in the memory, and when the computer program is executed by the processor, the file encryption method as described above is realized.

Embodiment 3

[0071] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned file encryption method is realized.

[0072] The invention discloses a file encryption method, device and storage medium. In the method, firstly, by obtaining key resources, determine the files that need to be encrypted, so as to avoid redundant encryption operations and prevent files that do not need to be encrypted Encryption; then, by determining the encryption key corresponding to the file to be encrypted, for subsequent encryption operations, by determining the length of the header addition, in order to add a field of a certain length to record the encryption operation; Add an encryption record field to effectively record the encryption operation; then, according to the encryption key and the encryption record field, encrypt the file to be encrypted, which not only ensures...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a file encryption method and device and a storage medium, and the method comprises the steps: obtaining a plurality of types of files in a key resource, and determining a to-be-encrypted file in the plurality of types of files; according to the encryption rule, determining an encryption key corresponding to the to-be-encrypted file and a head adding length; adding an encryption record field to the head of the to-be-encrypted file according to the head adding length; encrypting the to-be-encrypted file according to the encryption key and the encryption record field, and determining an encrypted file; and packaging the encrypted files and the files which do not need to be encrypted in the various files into an APP. According to the invention, the encryption recording field is added to the head of the file by utilizing the encryption rule, and then the file to be encrypted is encrypted by utilizing the encryption key and the encryption recording field, so that the encryption randomness is increased, the decryption difficulty is increased, the safety of the file is ensured, and the leakage of important resources is effectively avoided.

Description

technical field [0001] The invention relates to the technical field of data encryption, in particular to a file encryption method, device and storage medium. Background technique [0002] At present, the general format of Android packages is apk, which can be easily decompressed by many decompression software and restored to the state before packaging. For example, when you use a decompression software to open the apk, you will see some directories and files before packaging: assets directory, res directory, AndroidManifest.xml file, etc. However, the key resources in the Android package file are not encrypted, and can be easily obtained by others, so as to calculate the implementation of some functions, shorten the analysis and development cycle, and cause serious technical leaks. Therefore, the key resources in the file Encryption protects the company's core information. [0003] In the existing file encryption method, only the encryption key is used to encrypt the file ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F21/62
CPCG06F21/6209G06F2221/2107
Inventor 胡新华
Owner 武汉市多比特信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products