Implementation of simple and easy folder encryption with JavaScript

So 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 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, and 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, right-click in the blank space and select the "custom folder..." option; 2. Click next, select custom, select select or edit the HTML template of this folder in the secondary selection box, and click Next (Figure 1);

Var pass = prompt ("please enter password")

"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 finish, and the folder encryption is completed. You can test it (Figure 3)!

Snowbird tip: due to different Windows versions, the nuances will be different. For example, in Windows me, there is no "script language =" JavaScript "field in the" folder "file, but only" script ", which also works after it. The Folder Wizard is also different. Please draw inferences from one example. (csdn)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>