Fun file encryption methods (self-encryption of file headers)

Source: Internet
Author: User

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 ~~


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.