The following is a tips for encrypting files:
First, let's talk about the concept: the general system identifies the extension name of a file, such as .txt. MP4. But in fact, many times the system recognizes files through the file header (this is true in Linux )~~
You can test the above concepts:
For example, if you have a video file named xxx.mp4, I will change the file name to XXX. mmmm, but right-click the system (under Win) and there is no way to open this item, but you can still open it: Find a player from the installed program (such as thunder) you can open the file (there will be a prompt), which indicates that the file content has nothing to do with the file name, nonsense, right? Let's take a look at the key points.
The file content is divided into the header and body
Encrypt the file header so that others cannot view the file, but they can:
Find an editor, such as ue, notepad+, and open xxx.mp4. You will see a lot of codes that you don't understand. It's okay to know that the first few are file headers, and the latter is the file content. encode the header (change to a non-null letter, for example, a-Z, A-Z) change like AA into BB so the header is damaged, this file will be destroyed, no one can see, but you remember how you changed it. When you want to read this file, you are changing it back and the file can be used again.
Encrypts the file body to partially damage the file
Audio can still be played), but it breaks down when playing half of the video. You just need to change it back based on the original encoding. Remember how you changed it before, otherwise, the file is damaged ~~