File encryption method and device
A file encryption and file technology, applied in the field of data security, can solve problems such as file security issues, and achieve the effect of strengthening security
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] The file encryption method in this embodiment can be applied to a smart terminal platform, and can also be specifically applied to a smart phone terminal platform. The file encryption method of this embodiment adopts the encryption method of the underlying hardware SD card, so the file needs to be divided into several blocks according to the structure of the underlying hardware, and any block can be unified according to the structure of the underlying hardware SD card. Divide into a certain number of microblocks of the same size. Encryption of the entire file is achieved by encrypting micro-blocks. At the same time, in view of the unique characteristics of the built-in security database of the intelligent terminal platform, the database can provide reliable guarantee for the security of file information. Therefore, this embodiment uses the built-in security database of the intelligent terminal to save the encryption key and the location code, which ensures that the Enc...
Embodiment 2
[0073] For step 106 in the first embodiment, this embodiment specifically includes the step of encrypting any block in the first block group, as follows:
[0074] refer to figure 2 , figure 2 A flow chart of the method for encrypting the target block (any block) in the first block group, specifically including:
[0075] Step 201: Acquire a second block standard in advance.
[0076] In this embodiment, before encrypting the target block, the second block standard is obtained first. Wherein, the second block criterion determines the size of the micro blocks to be divided into blocks in the subsequent steps. The second blocking standard is determined by the hardware used by the encryption system.
[0077] Step 202: Divide the target block into a second block group according to the second block standard, where the second block group includes at least one micro block.
[0078] In this embodiment, the target sub-block is divided into several micro-blocks, and the size of each...
Embodiment 3
[0091] refer to image 3 , image 3 The device for file encryption provided in this embodiment specifically includes:
[0092] an obtaining module 301, configured to obtain the first block standard in advance;
[0093] a reading module 302, for reading a file;
[0094] A division module 303, configured to divide the file into a first block group according to the first block standard, where the first block group includes at least one block;
[0095] A determination module 304, configured to sequentially determine the first sub-block in the first sub-block group as the target sub-block;
[0096] an allocation module 305, configured to allocate an encryption key to the target block;
[0097] an encryption module 306, configured to encrypt the target block by using the encryption key;
[0098] Judging module 307, for judging whether there is a block that does not execute the encryption process in the first block group;
[0099] The triggering module 308 is configured to, whe...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 