A video file encryption method, comprising: obtaining a to-be-encrypted video file and an encryption key, encrypting the video file using the encryption key to obtain an encrypted video file, obtaining non-hidden partitions of a mobile terminal for storing user data, determining a partition storing the to-be-encrypted video file among the non-hidden partitions, and moving the encrypted video file to a folder in the partition storing the to-be-encrypted video file, wherein encrypting the video file using the encryption key to obtain the encrypted video file comprises: reading header data having a length equal to a first length and stored in a header of the to-be-encrypted video file, encrypting the header data using the encryption key to obtain ciphertext, and obtaining the encrypted video file in accordance with the ciphertext and remaining non-header data in the to-be-encrypted video file, wherein obtaining the encrypted video file in accordance with the ciphertext and the remaining non-header data in the to-be-encrypted video file comprises: obtaining a header data storage area in the to-be-encrypted video file, obtaining, based on the header data storage area, a designated header data storage area having a second length and a ciphertext storage area, the second length less than the first length, the designated header data comprising the storage area for storing the encryption key and an encryption ID, generating the designated header data while maintaining the remaining non-header data in the to-be-encrypted video file, writing the designated header data and the ciphertext into respective corresponding storage areas to obtain the encrypted video file. obtaining a to-be-encrypted video file and an encryption key, encrypting the video file using the encryption key to obtain an encrypted video file, obtaining non-hidden partitions of a mobile terminal for storing user data, determining a partition storing the to-be-encrypted video file among the non-hidden partitions, and moving the encrypted video file to a folder in the partition storing the to-be-encrypted video file, wherein encrypting the video file using the encryption key to obtain the encrypted video file comprises: reading header data having a length equal to a first length and stored in a header of the to-be-encrypted video file, encrypting the header data using the encryption key to obtain ciphertext, and obtaining the encrypted video file in accordance with the ciphertext and remaining non-header data in the to-be-encrypted video file, wherein obtaining the encrypted video file in accordance with the ciphertext and the remaining non-header data in the to-be-encrypted video file comprises: obtaining a header data storage area in the to-be-encrypted video file, obtaining, based on the header data storage area, a designated header data storage area having a second length and a ciphertext storage area, the second length less than the first length, the designated header data comprising the storage area for storing the encryption key and an encryption ID, generating the designated header data while maintaining the remaining non-header data in the to-be-encrypted video file, writing the designated header data and the ciphertext into respective corresponding storage areas to obtain the encrypted video file. reading header data having a length equal to a first length and stored in a header of the to-be-encrypted video file, encrypting the header data using the encryption key to obtain ciphertext, and obtaining the encrypted video file in accordance with the ciphertext and remaining non-header data in the to-be-encrypted video file, wherein obtaining the encrypted video file in accordance with the ciphertext and the remaining non-header data in the to-be-encrypted video file comprises: obtaining a header data storage area in the to-be-encrypted video file, obtaining, based on the header data storage area, a designated header data storage area having a second length and a ciphertext storage area, the second length less than the first length, the designated header data comprising the storage area for storing the encryption key and an encryption ID, generating the designated header data while maintaining the remaining non-header data in the to-be-encrypted video file, writing the designated header data and the ciphertext into respective corresponding storage areas to obtain the encrypted video file. obtaining a header data storage area in the to-be-encrypted video file, obtaining, based on the header data storage area, a designated header data storage area having a second length and a ciphertext storage area, the second length less than the first length, the designated header data comprising the storage area for storing the encryption key and an encryption ID, generating the designated header data while maintaining the remaining non-header data in the to-be-encrypted video file, writing the designated header data and the ciphertext into respective corresponding storage areas to obtain the encrypted video file.