Implementation of simple and easy folder encryption using JavaScrpt

Source: Internet
Author: User
Important files are often stored in computers. These files need to be encrypted and can be implemented in many ways. However, if you want to encrypt all the files in a folder, you can do it if the number is small. If the number is large, wouldn't you have to get tired? Therefore, today I want to tell you a good way: encrypt Windows 9x/2000 folders. By encrypting a folder, all files in the folder can be protected. The result is that when you double-click to enter the folder, the system prompts you to enter the password. If the password is correct, it will enter, and the error will be automatically returned to the root directory of the hard disk-very easy to use!

1. Enter the folder you want to encrypt and protect, right-click in the blank area, and select "Custom folder ..." Option;

2. Click "Next", select "Custom", select "select or edit the Html template for this folder" in the "secondary selection" box, and click "Next "();

3. Select "standard" in "select template type", select the "Edit template" option, and click "Next "();


4. Find <script language = "JavaScript"> in the pop-up "Folder" file, and enter the following content at the top of the file:

Var pass = prompt ("enter the password ")

Enter the password as a system prompt.

If (pass! = "123 ")

Replace "123" with your own password

{Window. location = "c :"}

5. Save the "Folder" file and select "complete". The Folder encryption is complete. You can test the file ()!

Because many of the steps above are Windows Script Programming, it has been verified that this method applies to all Windows systems. If you need to remove the protection, you only need to change the "Folder" file back to its original state!

Snow bird tip: the nuances vary depending on the Windows version. For example, in Windows Me, the "Folder" file does not contain the "script language =" JavaScript "" field, only the script is available. The folder wizard is also different. (Csdn)

Related Article

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.