How to protect a ZIP file with a password?

zip encrypt file
zip encrypt file

Dernière mise à jour: 23 mai 2024

Instead of encrypting your important data with a specialized tool, it is possible to use the algorithms offered in the 7-Zip archive creation software. Ideal for hiding files without using too complex tools.

7-Zip is free open source software which allows you to compress or decompress files. It is compatible with many formats and even offers a very powerful compression format (the 7z format). 7-Zip is available in French version. It also allows you to create ZIP, TAR, WIM, etc. files.

How do I put a password on Zip files with 7-Zip?

Follow these steps to encrypt your data with 7-Zip.

Step 1: Download the 7-Zip program

Go to the official website and download the program according to your operating system (32 or 64 bit). If you don't know what type of processor you have, right-click in Computer or and click on Properties.

Then choose the folder you want to encrypt with a password. Right click and choose 7-Zip from the menu. From the second menu, select Add to archives. This will open 7-Zip.

Step 2: choose format and compression level

You can rename the file that has just been created. And here you can choose the format, compression level and other technical data that is better left by default. Choose .zip in the “Archive Format” menu, if you want to be able to open your files without having 7-Zip installed.

Step 3: Enter a password for the archive

In the game encryption, enter your password (without accented characters). Note that depending on the archive format chosen you can change the method. Stay on theAES-256 safer and avoid the ZipCrypto which can be easily circumvented, even by beginners.

Click OK when you're finished. Finally delete or move the original so that it cannot be accessed.

From now on, your archive is protected. Now anyone trying to open it will have to enter the password first.

cropped cropped Ahmed el jaouari
Ahmed is a computer systems administration engineer, author, and trainer. He has a deep passion for IT security and new technologies. Through his tutorials, he has helped a large number of people effectively master today's IT tools.