摘要 |
Provided are a file encryption method and device, and encrypted file reading method, device and terminal. The file encryption method is used to encrypt a file stored on a device, and comprises: a key generation step of generating a first key for a file to be stored; a first encryption step of encrypting the first key according to a preset second key; and a second encryption step of encrypting the file to be stored according to the first key, and according to the preset second key, storing the encrypted first key in the file header of the encrypted file to be stored. The technical solution of the present invention automatically encrypts and decrypts the file without deploying a server, and supports an off line encryption and decryption method. |