php editor Baicao introduces you two methods to set the "open password" for RAR files to protect your file security. Setting a RAR file password is an effective way to prevent others from opening the file without authorization and protect your private information and important data. Next, we will introduce these two methods in detail so that you can easily master the skills of file protection.
Let’s talk about two methods for setting the RAR opening password in WinRAR software.
Method 1: Set when compressing files, and only the currently compressed files will be encrypted.
First, select the file that needs to be encrypted, right-click the mouse, and then click [Add to compressed file] in the list.
.
After the page pops up, the default compression format is RAR, you can also choose other formats; then click [Set Password], enter the password you want to set in the pop-up page, click [OK], and the password for opening the compressed file will be Set up.
.
After setting, open the RAR compressed package. As long as you open any file in it, a prompt box for entering the password will appear.
.
Method 2: Set automatic encryption. As long as the file is compressed, the opening password will be automatically set.
Open the compression software and click [Settings] in the list under [Options] above.
.
In the pop-up page, click [Compression]-[Create Default Configuration];
.
After the new page pops up, just like "Method 1", click [Set Password], then enter the password you want to set, and click [OK].
.
After completing the above operations, as long as the file is compressed, the opening password will be automatically set. However, files that have been compressed before setting do not have passwords. You can set them according to "Method 1".
If you don’t want to automatically set the password later, you can also cancel it. The method is also very simple:
Follow the automatic encryption path set above. After opening the compression software, click [Options]-[Settings]-[Compression]-[Create Default Configuration]. When the dialog box for entering the password appears, select the blank space with the mouse. column, then press the Enter key on the keyboard, and then click OK on all pages.
.
After completing the above steps, the automatic encryption of the RAR file will be released.
The opening password will not be set when the file is compressed later, but the originally set password will still exist. If you want to cancel the password in the original compressed file, you can use the "unzip to" method to solve the problem:
Open the compressed file, click [Extract to] above, select the decompressed save path in the new page, and then click [OK].
.
After the new page pops up, enter the originally set password and click [OK]. The files in the compressed package will be decompressed to a new folder. Just recompress the file without setting a password.
.
This method of using "re-decompression" to cancel the password requires entering the password, so if you forget the password, you will not be able to operate it, but we can use other tools to retrieve the password first, such as Pepsi Niu RAR password recovery tool provides four methods for retrieving passwords. After importing the file, just follow the prompts to select one.
Tool link: Pepsi Niu RAR password recovery tool
Wait for the password to be retrieved later.
The above is the detailed content of 2 ways to set RAR file 'open password”. For more information, please follow other related articles on the PHP Chinese website!