Method and device for file encryption and decryption
AssigneeWangsu Science & Technology Co., Ltd.
InventorFamin CHEN
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a file encryption method. The method includes generating an initial key, retrieving data for encryption in a file, obtaining a length of already encrypted data, calculating an encryption key based on the initial key and the length of the already encrypted data, and using the encryption key to encrypt the data for encryption to obtain encrypted data. Compared to the existing encryption methods, through encrypting each byte of the data in the file, the present disclosure substantially increases the key cracking difficulty and improves the data security.
Claims21
A file encryption method, comprising:
- generating an initial key;
- reading to-be-encrypted data in a file;
- obtaining a length of already encrypted data in the file, and calculating an encrypted key based on the initial key and the length of the already encrypted data;
- and
- using the encrypted key to encrypt the to-be-encrypted data, thereby obtaining encrypted data.
An encrypted file decryption method, comprising:
- acquiring an initial key;
- reading to-be-decrypted data from an encrypted file;
- obtaining a length of already decrypted data in a file and calculating a decrypted key based on the initial key and the length of the already decrypted data;
- and
- using the decrypted key to decrypt the to-be-decrypted data, thereby obtaining decrypted data.
-38. (canceled)
Dependencies are inferred from the claim text.