Resource manager.
Step 2: Right-click the file or folder you want to encrypt, and then click "Properties".
Step 3: On the "General" tab, click "Advanced". Select the "Encrypt content to protect data" checkbox
Also pay attention to the following five points during the encryption process:
1. To open "Windows Explorer", click "Start→Programs→Accessories" and then click "Windows Explorer".
2. Only files and folders on NTFS partitions can be encrypted. Files and folders on FAT partitions are invalid.
3. Compressed files or folders can also be encrypted. If you want to encrypt a compressed file or folder, the file or folder will be decompressed.
4. Files marked with the "system" attribute cannot be encrypted, and files located in the systemroot directory structure cannot be encrypted.
5. When encrypting a folder, the system will ask whether you want to encrypt its subfolders as well. If you select Yes, its subfolders will also be encrypted, and all files and subfolders added to the folder in the future will be automatically encrypted when added.
2. Decrypt files or folders
Step 1: Open Windows Explorer.
Step 2: Right-click the encrypted file or folder, and then click "Properties".
Step 3: On the "General" tab, click "Advanced".
Step 4: Clear the "Encrypt content to protect data" checkbox.
Similarly, we should pay attention to the following issues when using decryption:
1. To open "Windows Explorer", click "Start → Programs → Attachments", and then Click "Windows Explorer".
2. When decrypting a folder, the system will ask whether you want to decrypt all files and subfolders in the folder at the same time. If you choose to decrypt only the folder, the encrypted files and subfolders in the folder to be decrypted remain encrypted. However, new files and folders created within decrypted folders will not be automatically encrypted.
The above is the method of using file encryption and decryption! We may encounter the following problems during use, and here are the following explanations:
1. The advanced button cannot be used
Reason: Encrypted File System (EFS) can only Works with files and folders on NTFS file system volumes. If the file or folder you are trying to encrypt is on a FAT or FAT32 volume, the Advanced button will not appear in the file or folder's properties.
Solution:
Convert the volume to an NTFS volume with a conversion utility.
Open a command prompt.
Type: Convert [drive]/fs:ntfs
(drive is the drive letter of the target drive)
2. When the encrypted file is opened, " Access Denied" message
Cause: Encrypting File System (EFS) uses a public key certificate to encrypt files, and the private key associated with that certificate is not available on this computer.
Solution:
Find the private key for the appropriate certificate and use the Certificates snap-in to import the private key to your computer and use it locally.
3. Solution to the problem that users encrypt files based on NTFS and the encrypted files cannot be accessed after reinstalling the system (note: be sure to back up the encrypted user's certificate before reinstalling Win2000/XP):
p>
Step 1: Log in to the computer as an encrypted user.
Step 2: Click "Start → Run", type "mmc", and then click "OK".
Step 3: On the Console menu, click Add/Remove Snap-ins, and then click Add.
Step 4: Under Separate Snap-ins, click Certificates, and then click Add.
Step 5: Click "My User Account" and then click "Finish" (as shown in Figure 2, if your encrypted user is not an administrator, this window will not appear and go directly to the next step).
Step 6: Click "Close" and then click "OK".
Step 7: Double-click "Certificate - Current User", double-click "Personal", and then double-click "Certificate".
Step 8: Click the certificate that says "Encrypted File" in the "Intended Purpose" column.
Step 9: Right-click the certificate, point to All Tasks, and then click Export.
Step 10: Follow the instructions of the Certificate Export Wizard to export the certificate and related private key in PFX file format (Note: It is recommended to use the "Export Private Key" method to export, which can ensure that the certificate is protected by a password. To prevent others from stealing. In addition, the certificate can only be saved in a directory where you have read and write permissions).
4. Save the certificate
Be careful to save the PFX file.
After reinstalling the system in the future, no matter which user you are under, you only need to double-click the certificate file and import the private certificate to access the folder encrypted by the original user of the certificate under the NTFS system (note: the encryption on the NTFS partition backed up using the backup and recovery function Folders cannot be restored to non-NTFS partitions).
Finally, I want to mention that this certificate can also be used for the following purposes:
(1) Grant different users permission to access encrypted folders
Change my Export the certificate according to the "Export Private Key" method, and send the certificate to other users of this machine who need to access this folder. Then he logs in, imports the certificate, and achieves access to this folder.
(2) Restore access rights to previously encrypted folders backed up with the "Backup and Restore" program on other WinXP machines
Use "Backup and Restore" to the encrypted folders Program backup, then copy the generated Backup.bkf together with the certificate to another WinXP machine, and use the "Backup and Recovery" program to restore it (note: it can only be restored to NTFS partitions). Then import the certificate and you can access the recovered files.
Four methods for encrypting folders in Win98
1. Folder attribute method
In the "Windows Explorer" window, right-click the folder to be encrypted , click "Properties" and select the "Hide" check box. Under the "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer\Advanced\Folder\Hidden\SHOWALL" branch of the registry, set the key value of "CheckedValue" to the number "0". In the future, even if you click "Folder Options" in the "View" menu in the "Windows Explorer" window, click the "View" tab, and select the "Show All Files" check button, you will not be able to see files with hidden files. Properties folder.
2. "Recycle Bin" method
First make sure the "Show all files" check button is selected, and the key value of "CheckedValue" in the registry is "1". Then, in the "Windows Explorer" window, right-click the "C:\RECYCLED" folder (this is the folder corresponding to the "Recycle Bin" on the C drive), then click "Properties" and click "General" tab, clear the "Enable thumbnail viewing" and "Read-only" checkboxes, and click the "OK" button. After closing and restarting "Windows Explorer", you will see a desktop.ini file in the "C:\RECYCLED" folder. Copy the file to the folder to be encrypted and set the folder to "read-only" attribute.
3. "File Manager" method
Click "Start/Run", type "winfile", click the "OK" button to open the "File Manager" window, Click "By File Type" in the "View" menu, select the "Show hidden/system files" check box, and click the "OK" button. Drag the folder to be encrypted to the "C:\RECYCLED" folder or the "RECYCLED" folder of other partitions. In this way, the folder will not be visible in the "My Computer" or "Windows Explorer" window.
4. Set the password method
1. Open the "Explorer", select the folder (file directory) to be encrypted or protected, and click the mouse in the blank space Right-click and select the "Custom Folder..." option;
2. In the "Custom Folder" check box, select "Create or edit HTML document" and click "Next" , the system is ready to start the HTML editor;
3. Click "Next", the system starts the HTML editor and automatically opens the Folder.htt document;
4. Edit Folder.htt Document, search for "JavaScript" characters, enter the following 3 lines at the top:
var pass = prompt("Please enter your password")
if(pass != "ABC" )
;
5. Save the Folder.htt document and exit editing, select "Finish"; at this point, the encryption or protection of the folder is completed;
6. Encryption test, close all open documents and folders, reopen "Explorer", click on the encrypted folder, the system will prompt you to enter the password, enter the correct password (the password set in this article ABC), you can access the folder, otherwise it will be transferred to the E drive and become inaccessible, thereby protecting the folder and the documents in it.