Home >Web Front-end >JS Tutorial >How to implement simple and easy encryption of folders with JavaScript_javascript skills
So, today I am going to tell you a good way: encrypt Windows 9x/2000 folders. By encrypting a folder, all files in the folder can be protected. Its working effect is that when you double-click to enter the folder, the system prompts you to enter the password. If it is correct, you will enter, if it is wrong, it will automatically return 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 space and select the "Custom Folder..." option;
2. Click "Next" "Select "Customize" and select "Select or edit the Html template of this folder" in the sub-select box, click "Next" (Figure 1);
3. Select the template Select "Standard" as the type, select the "Edit this template" option, and click "Next" (Figure 2);
4. Find
var pass = prompt("Please enter password")
The “Please enter password” here is the system prompt
if(pass != "123")
Replace “123” with your own password
{window.location="c:"}
5. After saving the "Folder" file, select Done. The folder encryption is completed and you can test it (Figure 3)!
Since many of the steps just now are Windows script programming, it has been verified that this method is applicable to all Windows systems. If you need to remove the protection, just modify the "Folder" file back to its original state!
Snowbird Tips: Due to different Windows versions, subtle differences will occur. For example, in Windows Me, there is no