Currently there are quite a few tools to help compress and decompress data, but in terms of popularity and most used are 7-Zip and WinRAR. The following article will guide you how to protect compressed files with a password.
Compressing and decompressing data is essential for users to move, exchange data with others, or simply compress again to get more free space for their device. However, if it is important data, users should set a password for this compressed file to protect internal information.
Set a password for the compressed file using 7-Zip
Step 1: From the main interface of the computer screen, select the Windows icon, the bottom, left corner and left click on 7-Zip File Manager . If you do not see this item, you can enter the keyword 7-Zip into the search box below and then Enter.

Step 2 : The main interface of 7-Zip appears, find the location of the file to be compressed, right-click the file or folder, select 7-Zip > Add to archive ...
![How to set a password for the compressed file with WinRAR and 7-Zip How to set a password for the compressed file with WinRAR and 7-Zip]()
Step 3 : A new window appears, find Enter password , enter the password in the box below and then OK . You can tick the Show Password box to display the password clearly and do not need to confirm a second time.
![How to set a password for the compressed file with WinRAR and 7-Zip How to set a password for the compressed file with WinRAR and 7-Zip]()
Enter the password and click OK
Set a password for the archive with WinRAR
Step 1 : Unlike 7-Zip, WinRAR has the ability to compress directly in the folder containing the file. You open the computer, find the location of the file you need to compress, right-click and select Add to archive ...
![How to set a password for the compressed file with WinRAR and 7-Zip How to set a password for the compressed file with WinRAR and 7-Zip]()
Step 2 : Select to Advanced tab , click Set password ...
![How to set a password for the compressed file with WinRAR and 7-Zip How to set a password for the compressed file with WinRAR and 7-Zip]()
Step 3 : Enter the password and confirm the password below ( Reenter password for verification ) or you can tick Show password to view and enter only once.
![How to set a password for the compressed file with WinRAR and 7-Zip How to set a password for the compressed file with WinRAR and 7-Zip]()
Set the password for the WinRAR zip file and then OK
Open compressed file with password
After compression is complete, the file will look like the image below. If it is a normal compressed file, you can go directly.
![How to set a password for the compressed file with WinRAR and 7-Zip How to set a password for the compressed file with WinRAR and 7-Zip]()
But if the file is password protected, a small window will appear and ask the user to enter the correct password to be able to use.
![How to set a password for the compressed file with WinRAR and 7-Zip How to set a password for the compressed file with WinRAR and 7-Zip]()
This is a great feature that compression and decompression tools such as 7-Zip, WinRAR are providing for users, it is especially useful if your computer is a shared computer or simply wants to ensure security. Secure your data after compression.
I wish you successful implementation!