How to Create Encrypted Zip or 7z Archives on Any Operating System (2024)

How to Create Encrypted Zip or 7z Archives on Any Operating System (1)

Zip files can be password-protected, but the standard Zip encryption scheme is extremely weak. If your operating system has a built-in way to encrypt zip files, you probably shouldn’t use it.

To gain the actual benefits of encryption, you should use AES-256 encryption. 7z archives support this natively, but you can also encrypt Zip files with AES-256 encryption.

Zip 2.0 Legacy Encryption vs. AES Encryption

There are actually two types of Zip file encryption. The older Zip 2.0 encryption is extremely insecure, while the newer AES encryption is fairly secure.

Unfortunately, many pieces of software — particularly operating systems with built-in support for Zip files — don’t support the newer AES encryption standard. This means that using the Zip password-protection features found in Windows XP, current versions of Mac OS X, and even typicalLinux desktops won’t give you securely encrypted Zip files. Even some third-party utilities are reluctant to switch to AES for their Zip encryption as it means those AES-encrypted zip files will then be incompatible with the built-in Zip features in Windows, Mac OS X, and other software.

RELATED: Benchmarked: What's the Best File Compression Format?

It’s still possible to get AES encryption with Zip files — but such files willrequire third-party software to view, anyway. You may justwantto use a different archive format, such as 7z. The 7z archive format requires strong AES-256 encryption. Whenever you create a password-protected 7z file, you know that it’s securely encrypted. Really, 7z is great — it came out on top in our file-compression benchmarks. It’s generally on the top of other file compression benchmarks we’ve seen, too.

How to Create Encrypted Zip or 7z Archives on Any Operating System (2)

Windows – 7-Zip

Windows offers a built-in way to create Zip files. Windows XP even offered a way topassword-protect and encrypt these Zip files. However, Windows XP used the extremely insecure “standard” zip file encryption algorithm. Even if you’re still using Windows XP, you shouldn’t use this feature. Later versions of Windows dropped the password-protection option entirely.

Nearly every popular encryption utility offers this features. We like 7-Zip, which is completely free and open-source, so it won’t try to nag you for any money.

With 7-Zip installed, you can select some files in a File Explorer or Windows Explorer window, right-click them, and select 7-Zip > Add to archive. Be sure to select the “Add to archive” option, as it gives you the ability to set a password. If you don’t see the menu option here, you can also open the 7-Zip application directly and use it to create an archive.

How to Create Encrypted Zip or 7z Archives on Any Operating System (3)

7-Zip will create a 7z archive by default, but you can also choose Zip. If you do opt to go with Zip, be sure to select the AES-256 encryption method instead of the weaker ZipCrypto method. Enter your password into the provided boxes and click OK to create your encrypted archive file.

How to Create Encrypted Zip or 7z Archives on Any Operating System (4)

Mac – Keka

Mac OS X also provides an easy way to create Zip files from a Finder window, but there’s no way to encrypt a zip file with the graphical user interface. The zip command included with Mac OS X does offer a way to encrypt zip files without using any third-party software. However, like the password-protection feature built into Windows XP, it uses the old and insecure standard zip encryption scheme. If you really wanted, you could use the “zip -e” command in a Terminal on a Mac. However, we strongly recommend against this.

As on Windows, you’ll once again need a third-party file compression app for secure compression. Keka seems to be one of the most well-loved file compression and decompression apps for Mac, andwe can recommend it. However, even Keka doesn’t use AES for encryptingZip files by default. You can get the currently-in-beta version of Keka and enable a hidden option to do this, or just use the standard version of Keka and create encrypted 7z files instead.

Launch Keka, select 7z, and enter a password for your archive. (If you select Zip, be sure you have the correct version of Keka and that you’ve enabled the hidden option above to get thesecure encryption.)

How to Create Encrypted Zip or 7z Archives on Any Operating System (5)

Drag and dropone or more files you want to compress onto the Keka window and they’ll be compressed into a 7z file encrypted with the password you provided. You’ll need the password to access the file’s contents in the future.

How to Create Encrypted Zip or 7z Archives on Any Operating System (6)

Linux – File Roller with p7zip-full

Thestandard Archive Manager(File Roller)application included with Ubuntu and other GNOME-based desktop environments does have an option to create password-protected zip files. However, the underlying zip command used still uses the old, weak encryption instead of strong AES encryption. Thankfully, File Roller can be used to create encrypted 7z archives.

To enable this option, you’ll first need to install the p7zip-full package. (On some Linux distributions, it may just be called p7zip instead.) For example, on Ubuntu, you can either open the Ubuntu Software Center, searchfor p7zip-full and install it, or open a Terminal window and run the sudo apt-get install p7zip-full command.

Once you have, you can create encrypted 7z files directly from the File Roller window. Select some files in a file manager window, right-click them, and select Compress — or open the Archive Manager application directly and use it to create a new archive.

How to Create Encrypted Zip or 7z Archives on Any Operating System (7)

In theCompress window, be sure to select the 7z archive format. Click the Other Options header and provide a password. The password will be used to unlock your archive later.

How to Create Encrypted Zip or 7z Archives on Any Operating System (8)

There are many different software programs for creating password-protected archives,but— whatever you use — be sure it’s using secure encryption. The problem with Zip encryptionisn’t purely theoretical. Theweb is full of tools that can “recover” a password-protected zip file that was created using the old encryption scheme. “Recover” is a less-scary word for breaking and removing the encryption.

How to Create Encrypted Zip or 7z Archives on Any Operating System (2024)

FAQs

How do I create an encrypted archive 7-Zip? ›

Creating an Encrypted File

When you've reached the right folder that contains the file you want to encrypt, right-click on the file. Select 7-Zip and click on Add to Archive... The only details you need to enter are the Encryption Password. Enter a password of your choice, then re-enter to confirm.

How do I create an encrypted archive? ›

How to encrypt a file
  1. Right-click (or press and hold) a file or folder and select Properties.
  2. Select the Advanced button and select the Encrypt contents to secure data check box.
  3. Select OK to close the Advanced Attributes window, select Apply, and then select OK.

Is 7z more secure than zip? ›

The 7z format is technically superior to Zip as an archive, and 7z files can also be encrypted with 256-bit AES in CBC mode. The AES key is derived by hashing a user-supplied passphrase with SHA-256 several times.

How do I encrypt a zip file for free? ›

Right-click a file or a folder, and click “Properties”. Click “Advanced” and tick the “Encrypt contents to secure data” box. Click “o*k”, “Apply”, and then “o*k”.

Does zipping a file make it encrypted? ›

Encryption is applied to files that are being zipped. This encryption is added after compression and does not affect any other associated data. Data in a Zip file is encrypted byte-for-byte.

Which is the most secure archive encryption? ›

WinRAR Uses AES-256 Bit Encryption Technology

AES Encryption provides a higher level of security than previous encryption methods, such as DES (Data Encryption Standard), which was the standard encryption algorithm for many years and was widely used by both government institutions and banks.

How do I create a self extracting encrypted Zip file? ›

How to create a self extrator
  1. Right click on the file you wish to work with, select PKZIP/SecureZIP and the create self extractor option.
  2. From the SFX (self extractor) Editor, edit any options you wish to include.
  3. Enter a passphrase or select a certificate to encrypt or click skip for no encryption.

Which command is used to create an encrypted file? ›

Encrypt Directory using zip

In order to encrypt a file using zip, use the “zip” command with the “–encrypt” option and provide the zip name as well as the files to be encrypted.

What encryption is best for 7-Zip? ›

Encryption method = AES-256 (the strongest and most secure encryption method) Encrypt the filenames = Enabled (check it) (this encrypts and hides the names of your files making it much more difficult to crack)

Can Windows create a password protected zip file? ›

If you put the files you'd like to protect in a zip file, you can then apply a password.
  1. In Windows Explorer, highlight and right-click on the files you would like to put into a zipped file.
  2. Select Send to, then Zip folder (compressed). ...
  3. Double-click the zipped file, then select File and Add Password.

What format is 7-Zip encryption? ›

7-Zip also supports encryption with AES-256 algorithm. This algorithm uses cipher key with length of 256 bits. To create that key 7-Zip uses derivation function based on SHA-256 hash algorithm. A key derivation function produces a derived key from text password defined by user.

What is the most secure zip format? ›

AES encryption is the best option if you have a critical security requirement for your files. It comes with two different strengths: 256-bit AES and 128-bit AES.

Why use 7z instead of zip? ›

In 2011, TopTenReviews found that the 7z compression was at least 17% better than ZIP, and 7-Zip's own site has since 2002 reported that while compression ratio results are very dependent upon the data used for the tests, "Usually, 7-Zip compresses to 7z format 30–70% better than to zip format, and 7-Zip compresses to ...

Is there anything better than 7-Zip? ›

WinZip has both a Windows and macOS version available for download. WinZip can compress files in ZIP and, unlike WinRAR or 7-Zip, it can also compress in IHA/IHZ or UUencoded if you run WinZip 12 and higher. WinZip can decompress ZIP, TAR, GZIP, Compress, CAB, RAR, BZ2, IHA/IZH, 7Z, IMG, ISO, XZ, VHD, and VMDK.

Does Windows 10 support encrypted zip files? ›

Windows 10 only offers a way to encrypt a zip file, not password protect it. So, to password protect a zip file on Windows 10, you need a third-party app that runs on Windows. An example of such a third-party app is WinRAR.

Is it better to encrypt and zip or zip and encrypt? ›

You should compress before encrypting. Encryption turns your data into high-entropy data, usually indistinguishable from a random stream. Compression relies on patterns in order to gain any size reduction.

Why can't I encrypt a folder in Windows 10? ›

Well, according to some users, if the encrypt option is grayed out on your Windows 10 PC or if Windows won't allow you to encrypt the folder, then it is possible that required services are not running on your PC.

How safe is 7z encryption? ›

It uses AES-256 with PBKDF2 using SHA1 with only 1,000 iterations as the KDF. The AES-256 is strong, but the password protection is weak so make sure you use good passwords.

Is there any downside to zipping files? ›

The Disadvantages

They include file size limits, file type limits, corruption, and mobility issues. One of many disadvantages associated with ZIP archive files is compression limits. Some files cannot be compressed much more than they already are. This is especially true for MP3 files and JPG files.

Can encrypted zip file be hacked? ›

Indeed, many password-protected . zip files can be easily broken with off-the-shelf hacking tools,” the Oregon Democrat writes in a letter obtained by CyberScoop. “This is because many of the software programs that create . zip files use weak encryption algorithms by default.”

What is the hardest encryption to hack? ›

AES 256-bit encryption is the strongest and most robust encryption standard that is commercially available today. While it is theoretically true that AES 256-bit encryption is harder to crack than AES 128-bit encryption, AES 128-bit encryption has never been cracked.

What encryption is unbreakable? ›

There is only one known unbreakable cryptographic system, the one-time pad, which is not generally possible to use because of the difficulties involved in exchanging one-time pads without their being compromised. So any encryption algorithm can be compared to the perfect algorithm, the one-time pad.

What software is used to encrypt files? ›

VeraCrypt – Best Hidden Encryption Tool. VeraCrypt is a free, open-source disk encryption software that can be used on Windows, macOS, and Linux systems.

Can WinZip open 7-Zip encrypted files? ›

Either utility can open any type of zip file (i.e. 7-Zip can open WinZip files and visa versa). This FYI outlines how to encrypt files using 7-Zip and WinZip.

What is 7z self-extracting zip? ›

A 7-Zip Self-Extracting (SFX) archive is a stand-alone program file (Windows .exe file) that can unpack the 7z archive (stored inside it) without needing 7-Zip or any other tools. This is actually a . 7z file bundled with a small program (overhead) that extracts the files directly from the merged .

How do I encrypt an existing zip file? ›

Right-click (or press and hold on touch-enabled devices) the .zip file or compressed folder which you want to protect, then select Properties. Click on the Advanced button. Place a check the Encrypt contents to secure data box. Click OK to close the Advanced Attributes window.

What is the best encryption method for files? ›

Often referred to as the gold standard for data encryption, AES is used by many government bodies worldwide, including in the U.S. AES encrypts 128-bit data blocks at a time and can be used for: File and application encryption. Wifi security.

What are the file encryption techniques in OS? ›

The two types of data encryption methods are Symmetric Encryption and Asymmetric Encryption. Symmetric encryption is also known as private-key cryptography or secret key algorithm and requires both the parties of sender and receiver to have access to the same key to decrypt the data.

Which file is best to encrypt? ›

What files you need to encrypt
  • Banking documents. One obvious use case for file encryption is banking documents. ...
  • Work files. ...
  • Hard drive backups. ...
  • Images. ...
  • Videos. ...
  • Documents. ...
  • PDFs. ...
  • Spreadsheets.
Nov 25, 2022

Can 7-Zip decrypt? ›

You can attach the 7Z file to an email and send it to a recipient. The recipient must know the document password to open and decrypt the file. Save the 7z document attached to the email to your computer and then Decrypt it using 7-zip so the document can be opened and updated.

How to encrypt a zip file in command prompt? ›

Type this command into Terminal: zip -er filename. zip. Step 4. Enter and verify the password to encrypt the Zip file.

Can I create a password protected folder on my computer? ›

Use encryption to password protect a folder or a file

Navigate to the folder or file you want to encrypt. Right-click on the item, click Properties, then click Advanced. Check Encrypt contents to secure data. Click OK, then click Apply.

What is Windows default zip encryption? ›

Windows 10 uses the AES encryption method with 128 and 256-bit key lengths. When you zip a any file it is only zipped, there isn't any encryption applied.

What is the difference between 7-Zip and 7z? ›

What is the difference between a zip file and a 7-zip file? Both zip and 7z are lossless compression formats. 7z is newer and give you a better compression ratio but it's not as widely supported as . zip.

Can 7-Zip encrypt a flash drive? ›

Now that you have 7-Zip on your flash drive, you can use it encrypt and decrypt files on any Windows computer! You can encrypt a single file, multiple files, or an entire folder! We will encrypt a single file.

Which is more secure 7-Zip or WinRAR? ›

WinRAR uses an AES-128-bit encryption, but 7-Zip uses the more secure AES-256. This means that a password-protected ZIP file created in 7-Zip would take longer to crack than a RAR file created in WinRAR. A lot of security comes down to password quality, though, too.

Which compression is better than zip? ›

The RAR file format makes use of a compression algorithm. It is comparatively much more efficient and substantially better than the DEFLATE method of compression in ZIP.

Should I encrypt or zip first? ›

You should compress before encrypting. Encryption turns your data into high-entropy data, usually indistinguishable from a random stream. Compression relies on patterns in order to gain any size reduction.

What software will open a 7z file? ›

WinZip opens and extracts 7z Compressed Archive Files—and many more formats.

Which is better 7-Zip or WinZip? ›

The answer is simple: it's because you can do so much more with WinZip and you can do it faster, better and with ongoing support for even more productivity and convenience features. WinZip vs 7-Zip is no match: WinZip is a more versatile, powerful, and simpler alternative to 7-Zip.

Is 7-Zip better than Windows 10? ›

7-Zip is significantly faster than Windows 10 at compressing files, it is more effective (smaller outputs), and is better at estimating time to completion/progress.

Should I trust 7-Zip? ›

If you see the 7-Zip program on your Windows computer, it may be listed as 7z.exe. The 7z exe will not harm your computer. It is possible that an executable file or other file inside of a 7-Zip archive could be a virus, so as with any file, you should only open 7-Zip archive files sent by someone you trust.

What is the maximum ZIP compression 7-Zip? ›

7-Zip is a file archive with the highest compression ratio. It works on the 7z format, which is the successor to the zip format. This format enables it to achieve more than a 1350 percent compression ratio compared to the zip format.

Is 7-Zip completely free? ›

7-Zip is free software with open source.

Can you password protect a 7-Zip folder? ›

7-Zip can package a single file, multiple files, or an entire folder into a passphrase-protected and encrypted package. With 7-Zip Open, select the file(s) and/or folder(s) you wish to encrypt. Right click on the selected file(s) and/or folder(s) and click 7-Zip, and from the side tab click Add to archive.

Can 7-Zip encrypt files? ›

If you do not want people to see the names of the files in the archive before entering the password check off the check box “Encrypt file names.” If you do not check this off the file names will be visible before 7-Zip requests the password. E. See E in the above screen shot. Then click the OK button.

What is 7-Zip most secure encryption? ›

Encryption method = AES-256 (the strongest and most secure encryption method) Encrypt the filenames = Enabled (check it) (this encrypts and hides the names of your files making it much more difficult to crack)

Is 7-Zip a vulnerability? ›

7-Zip vulnerability or CVE-2022-29072 is an active zero-day vulnerability and is characterized as allowing privilege escalation and command execution for Windows when a file with the .

How do I password protect a zip folder in Windows 10? ›

How do I password protect a zipped folder in Microsoft 10
  1. Right-click (or press and hold) a file or folder and select Properties.
  2. Select the Advanced button and select the Encrypt contents to secure data check box.
  3. Select OK to close the Advanced Attributes window, select Apply, and then select OK.
Mar 29, 2018

Can you password protect a compressed zipped folder? ›

Zipped folder

Select Send to, then Zip folder (compressed). Follow the prompts to name and save the folder. Double-click the zipped file, then select File and Add Password.

Can Windows encrypt ZIP files? ›

Encrypt a ZIP file with Windows 10

Here are the steps you should follow. Right-click the ZIP file you want to encrypt and select properties. Check the box "Encrypt contents to secure data." Select OK to close the Advanced Attributes window.

Does Windows 10 support encrypted ZIP files? ›

Windows 10 only offers a way to encrypt a zip file, not password protect it. So, to password protect a zip file on Windows 10, you need a third-party app that runs on Windows. An example of such a third-party app is WinRAR.

What is the difference between WinZip and 7-Zip? ›

What is the difference between WinRAR, 7-Zip, and WinZip? Each of these programs has compression software in them to reduce the file size of large files for sending across the web. WinRAR specializes in compressing in the RAR format, 7-Zip specializes in compressing into the 7z format, and WinZip into the Zip format.

Can an encrypted zip file have two correct passwords? ›

A ZIP file with two passwords

zip. But the researcher demonstrated that when extracting x. zip using a completely different password, he received no error messages. BleepingComputer was able to successfully reproduce the experiment using different ZIP programs.

What is better than 7-Zip? ›

  • 559. PeaZip. Free • Open Source. File Archiver. ...
  • 1110. WinRAR. Paid • Proprietary. File Archiver. ...
  • 161. Bandizip. Freemium • Proprietary. ...
  • WinZip. Paid • Proprietary. File Archiver. ...
  • Keka. Free • Proprietary. File Archiver. ...
  • 243. The Unarchiver. Free • Proprietary. ...
  • IZArc. Free • Proprietary. File Archiver. ...
  • NanaZip. Free • Open Source. File Archiver.
Feb 16, 2023

What is the strongest encryption in the world? ›

AES 256-bit encryption is the strongest and most robust encryption standard that is commercially available today. While it is theoretically true that AES 256-bit encryption is harder to crack than AES 128-bit encryption, AES 128-bit encryption has never been cracked.

Top Articles
Latest Posts
Article information

Author: Domingo Moore

Last Updated:

Views: 6742

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Domingo Moore

Birthday: 1997-05-20

Address: 6485 Kohler Route, Antonioton, VT 77375-0299

Phone: +3213869077934

Job: Sales Analyst

Hobby: Kayaking, Roller skating, Cabaret, Rugby, Homebrewing, Creative writing, amateur radio

Introduction: My name is Domingo Moore, I am a attractive, gorgeous, funny, jolly, spotless, nice, fantastic person who loves writing and wants to share my knowledge and understanding with you.