Home Web Front-end JS Tutorial How to implement simple and easy encryption of folders with JavaScript_javascript skills

How to implement simple and easy encryption of folders with JavaScript_javascript skills

May 16, 2016 pm 07:01 PM

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);
How to implement simple and easy encryption of folders with JavaScript_javascript skills
3. Select the template Select "Standard" as the type, select the "Edit this template" option, and click "Next" (Figure 2);

How to implement simple and easy encryption of folders with JavaScript_javascript skills
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)!
How to implement simple and easy encryption of folders with JavaScript_javascript skills
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

One or more items in the folder you synced do not match Outlook error One or more items in the folder you synced do not match Outlook error Mar 18, 2024 am 09:46 AM

When you find that one or more items in your sync folder do not match the error message in Outlook, it may be because you updated or canceled meeting items. In this case, you will see an error message saying that your local version of the data conflicts with the remote copy. This situation usually happens in Outlook desktop application. One or more items in the folder you synced do not match. To resolve the conflict, open the projects and try the operation again. Fix One or more items in synced folders do not match Outlook error In Outlook desktop version, you may encounter issues when local calendar items conflict with the server copy. Fortunately, though, there are some simple ways to help

How to set password protection for win10 folder How to set password protection for win10 folder Feb 29, 2024 am 09:00 AM

When using the win10 system, many people are worried about the leakage of confidential files in the computer. In fact, users only need to use the win10 folder password protection function to solve this problem. Today, the editor will help you enable this function. How to set password protection for win10 folders 1. First, you need to select the folder you want to encrypt, right-click the folder, and click Properties in the pop-up option bar. 2. In the properties interface, click Advanced Options in the lower right corner. 3. Enter the advanced properties interface, select the check box before encrypting content to protect data, and then click OK. 4. Then the system will automatically pop up the confirmation attribute change interface, click OK in the interface. 5. In this way, the password protection has been successfully set up, and there will be no impact when using the original account.

There are two Windows folders in the C drive; what should I do? There are two Windows folders in the C drive; what should I do? Mar 06, 2024 am 11:55 AM

The Windows folder contains the Windows operating system and is an important folder in a Windows computer. By default, Windows is installed on the C drive. Therefore, C is the default directory for Windows folders. Every Windows computer has a Windows folder. However, some users reported that two Windows folders were found in the C drive. In this article, we will explain what you can do if you encounter such a situation. Two Windows folders in C drive It is rare to have two Windows folders in C drive. However, if you encounter such a situation, you can use the following suggestions: Run an anti-malware scan to try to find the correct

Windows 11 Folder Sharing Guide: Easily Share Your Files and Data Windows 11 Folder Sharing Guide: Easily Share Your Files and Data Mar 13, 2024 am 11:49 AM

In daily life and work, we often need to share files and folders between different devices. Windows 11 system provides convenient built-in folder sharing functions, allowing us to easily and safely share the content we need with others within the same network while protecting the privacy of personal files. This feature makes file sharing simple and efficient without worrying about leaking private information. Through the folder sharing function of Windows 11 system, we can cooperate, communicate and collaborate more conveniently, improving work efficiency and life convenience. In order to successfully configure a shared folder, we first need to meet the following conditions: All devices (participating in sharing) are connected to the same network. Enable Network Discovery and configure sharing. Know the target device

How to create a folder on Realme Phone? How to create a folder on Realme Phone? Mar 23, 2024 pm 02:30 PM

Title: Realme Phone Beginner’s Guide: How to Create Folders on Realme Phone? In today's society, mobile phones have become an indispensable tool in people's lives. As a popular smartphone brand, Realme Phone is loved by users for its simple and practical operating system. In the process of using Realme phones, many people may encounter situations where they need to organize files and applications on their phones, and creating folders is an effective way. This article will introduce how to create folders on Realme phones to help users better manage their phone content. No.

How to change personalized Ubuntu folder icons and colors How to change personalized Ubuntu folder icons and colors Feb 20, 2024 am 08:06 AM

Changing folder icons or colors in Ubuntu can not only improve file management efficiency, but also make folders easier to identify. You can select the corresponding icon based on a folder's content category, such as music, documents, and pictures, to make it easier to distinguish and find the folder you want. Ubuntu supports using common PNG, JPG or SVG format images as folder icons. Websites like IconArchive, Iconfinder, and Flaticon offer many beautiful folder icons and themes for Linux. Customize Ubuntu Folder Icons and Colors Changing Ubuntu Folder Icons Changing folder icons in Ubuntu is easy, in just a few simple steps you are

How to set up encryption of photo album on Apple mobile phone How to set up encryption of photo album on Apple mobile phone Mar 02, 2024 pm 05:31 PM

In Apple mobile phones, users can encrypt photo albums according to their own needs. Some users don't know how to set it up. You can add the pictures that need to be encrypted to the memo, and then lock the memo. Next, the editor will introduce the method of setting up the encryption of mobile photo albums for users. Interested users, come and take a look! Apple mobile phone tutorial How to set up iPhone photo album encryption A: After adding the pictures that need to be encrypted to the memo, go to lock the memo for detailed introduction: 1. Enter the photo album, select the picture that needs to be encrypted, and then click [Add to] below. 2. Select [Add to Notes]. 3. Enter the memo, find the memo you just created, enter it, and click the [Send] icon in the upper right corner. 4. Click [Lock Device] below

What should I do if there is no response when double-clicking a local folder in Win11? What should I do if there is no response when double-clicking a local folder in Win11? Feb 19, 2024 pm 03:48 PM

Some users reported that local folders did not respond and could not be opened when double-clicking the folder. This situation may be caused by a system error or a corrupted folder. Solutions include checking for system updates, scanning for disk errors, restarting Explorer, etc. If the issue is still not resolved, you can try to resolve it by recreating the user account or using a system restore. Solution: 1. Right-click "Start" in the taskbar in the lower left corner and select "Computer Management" in the option list. 2. After entering the new interface, click "Services" in "Services and Applications" on the left column. 3. Then find the "Windows" on the right

See all articles