Home > Article > Software Tutorial > How to set and cancel password protection for RAR files?
php editor Xigua will introduce to you how to set up and cancel the password protection of RAR files. By setting a password, you can effectively protect the file content from being accessed by others; canceling the password makes it easier to share files. In daily use, it is very important to correctly operate the password protection function of RAR files. Let us learn how to set up and cancel password protection.
First, you need to download the WinRAR decompression software for RAR files. When compressing files, you can set a password. Select the file to be compressed, right-click the mouse and select "Compress File" from the options.
In the compression software dialog box, the default is RAR format. Click [Set Password] below and a new dialog box will appear. Enter the password and click [OK] to complete the setting.
After setting, when opening any file in the compressed package, you will be prompted to enter a password to open it.
If we no longer need password protection in the future, we can also remove the password. This way you don't have to enter the password every time you open the file.
There is no option to directly cancel the password in WinRAR, so we must first re-decompress the compressed package before canceling the password. The specific operations are as follows:
Use WinRAR to open the compressed package, click [Extract to], select the decompressed saving path in the pop-up dialog box, and then click [OK].
At this time, a password prompt box will appear. Enter the originally set password, click [OK], and the files in the compressed package will be saved to the path just selected.
Just recompress the decompressed file without setting a password.
The above is to cancel the "enter password" step, so the method of clearing the password requires entering the original password.
If you forget the password and you cannot operate it, you can use other tools in this case, such as the Pepsi Niu RAR password recovery tool. Use the tool to retrieve the password first, and then clear the password according to the method above.
The tool provides 4 retrieval methods. After importing the RAR file with a password set, select the appropriate method and follow the prompts.
Tool link: Pepsi Niu RAR password recovery tool
Then wait for the password to be retrieved.
The above is the detailed content of How to set and cancel password protection for RAR files?. For more information, please follow other related articles on the PHP Chinese website!