Get rid of any tools-simple code keeps folders encrypted

Source: Internet
Author: User

There are more or less sensitive information in the computer, especially in the big data age, and the loss of information once it leaks will be very large. Sometimes people borrow our computer, some information do not want to let others see what to do? Some people say there are hidden options, but once the hidden files are turned on, the hidden folders are exposed to the field of view, and the software that is encrypted with the software is too complex. The following section of code will allow us to encrypt the folder.

Encryption is not really complicated, first renaming the encrypted folder to a special name: Control Panel. {21ec2020-3aea-1069-a2dd-08002b30309d}, and then change its properties to hide + system, add the judgment statement is only need a batch file to complete the creation of encryption and decryption work.

This is a bat batch code:

Cls@echo offtitle Folder mayuif EXIST "Control Panel. {21ec2020-3aea-1069-a2dd-08002b30309d} "goto unlockif not EXIST Mayu goto Mdlocker:confirmecho is you sure your want to lo CK the folder (y/n) set/p "cho=>" if%cho%==y goto lockif%cho%==y goto lockif%cho%==n goto ENDif%cho%==n goto Endecho I Nvalid choice.goto confirm:lockren Mayu "Control Panel. {21ec2020-3aea-1069-a2dd-08002b30309d} "attrib +h +s" Control panel. {21ec2020-3aea-1069-a2dd-08002b30309d} "echo Folder lockedgoto end:unlockecho Enter password to unlock folderset/p" pass = = "If not%pass%== 123 goto Failattrib-h-S" Control Panel. {21ec2020-3aea-1069-a2dd-08002b30309d} "ren" Control Panel. {21ec2020-3aea-1069-a2dd-08002b30309d} "Mayuecho Folder unlocked successfullygoto end:failecho Invalid Passwordgoto END:MDLOCKERMD Mayuecho Mayu created Successfullygoto end:end

First, we create a new text document that copies the above code into the document.


"123" in the code "if not%pass%== 123 goto FAIL" needs to be replaced by your own combination of passwords, note the spaces between the reserved and equal signs.

Then, save the file, change the suffix to. bat, run the file, and generate a Mayu folder in the same directory, and of course, Mayu is just the name of a folder that can be changed in your code.


Next, put the files you want to hide in the Mayu folder, run the bat file again, and enter Y to encrypt.



The Mayu folder is then hidden, whether the file is opened to show hidden files or the search is not found.

Note: Using third parties such as WinRAR can find encrypted Mayu folders, so it is most effective to place encrypted folders in a deep directory.

After encryption, the bat file can be placed on the USB flash drive, or the network disk, the reason is recommended, on the one hand, because the file contains the password directly, on the other hand, the existence of such a bat file under the folder will cause some people's curiosity, only this bat file can find the folder.

To decrypt the live, open Lock.bat again, enter the password, and click Enter.

The encrypted folder is displayed.

This is just a simple folder encryption, if there are very important files, or to use professional encryption software bar, after all, this method is only temporary work.


@ Mayuko




Get rid of any tools-simple code keeps folders encrypted

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.