About Encryption
About encryption and encryption methods
WinZip's® encryption facility gives you a way to protect sensitive documents contained in your archives from unauthorized viewing. The contents of the files that you want to protect are encrypted by WinZip based on a password that you specify. In order for WinZip to later extract the original contents of the encrypted files, the correct password must again be supplied.
This section gives a general overview of WinZip's encryption facilities. Once you are familiar with this information, you can read about the specifics of using encryption.
WinZip provides two encryption methods for Zip files (.zip or .zipx):
-
AES-256 Quantum Resistant encryption (AE-3): this encryption technique extends the existing AE-1 and AE-2 encryption methods. It is designed to remain secure against known quantum-computing attacks. AE-3 uses the more modern AES-GCM (Galois/Counter mode), which incorporates built-in authentication and is widely recommended for modern applications.
AE-3 uses a FIPS 140-3 validated cryptographic module. FIPS 140-3 is the standard for cryptographic protection that federal agencies and their contractors, including those in DFARS environments, are required to meet.
At this time, WinZip 31.0/77.2 or later is required to decrypt a Zip file that has been encrypted using AES-256 Quantum Resistant encryption. -
Compatible AES-256 encryption (AE-1 and AE-2): AES is the Advanced Encryption Standard, which is the result of a three-year competition sponsored by the U.S. Government's National Institute of Standards and Technology (NIST). This encryption method, also known as Rijndael, has been adopted by NIST as a Federal Information Processing Standard.
WinZip supports 256-bit AES encryption. This number refers to the size of the encryption key that is used to encrypt the data.
The security of your data depends not only on the strength of the encryption method but also on the strength of your password, including factors such as length and composition of the password and the measures you take to ensure that your password is not disclosed to unauthorized third parties. Please read about encryption passwords and about password policy standards defined in the WinZip configuration.
Note that the Zip file format extension used by WinZip to store Compatible AES-256-encrypted files is supported by WinZip 9.0 or later and by many other Zip file utilities. The technical specification for WinZip's Compatible AES-256 format extension is available on the WinZip web site.
Limitations to be aware of
WinZip's AES encryption facility is much stronger than the older Zip 2.0 (legacy) encryption method, and it can help meet the need that many WinZip users have for preventing their confidential information from being viewed by unauthorized individuals. There are, however, some limitations that you should be aware of:
- Encryption applies only to the contents of files stored within a Zip file. Information about an encrypted file, such as its name, date, size, attributes, CRC, and compression ratio, is stored in unencrypted form in the Zip file's directory and can be viewed, without a password, by anyone who has access to the Zip file.
- WinZip's encryption method does not authenticate the Zip file as a whole. (AE-3 does authenticate the contents of each encrypted file, so tampering with that data is detected, but it does not protect the structure of the Zip file.) WinZip’s encryption is intended to prevent someone who doesn't know the correct password from finding out the contents of your encrypted data. The password is not needed for actions that do not involve decryption of the encrypted contents of data stored within a Zip file. In particular, encrypted files can be deleted from a Zip file, or can be renamed within a Zip file, and new, unencrypted, files can be added to a Zip file, without a password.
- WinZip uses password-based encryption, and even a strong encryption algorithm like AES is of little or no benefit if the passwords you use are weak, or if you do not keep track of them in a secure manner.
Notes on encryption safety
Encryption provides a measure of safety for your sensitive documents, but even encrypted documents can be compromised (regardless of whether they were encrypted by WinZip or by other encryption software). Here are some of the ways this can occur. This is by no means an exhaustive list of potential risks; it is intended only to give you an idea of some of the safety issues involved with sensitive documents.
- If a keystroke monitor or other malicious code (such as a virus) is running on your computer, your password may be recorded when you type it. Keep your security software up to date and follow other recommended computer safety practices.
- If you extract an encrypted file and then delete the extracted file, it may be possible for someone to later "undelete" the extracted file using file recovery software or the Recycle Bin.
- When you open or view a file from an archive (e.g., by double-clicking it), WinZip must extract the file to a temporary location so that the associated program can open it. Normally, beginning with WinZip 14.0, when an encrypted file is temporarily extracted for these actions, WinZip will automatically wipe the temporary file prior to deleting it. However, if you subsequently close WinZip without first closing the program that is using the file, WinZip may not be able to wipe and delete the temporary copy of the file, thereby leaving it on disk in unencrypted form. The associated program may also make one or more backup copies of the decrypted file, and WinZip will not be able to wipe or delete those copies. If a file is unable to be wiped, it may be possible for someone to later recover the deleted file using file recovery software or the Recycle Bin.
- When you "move" files to a Zip file by choosing the Move action in the Add dialog, WinZip moves the files into the Zip file by compressing them and then deleting the original files from the disk. WinZip will not wipe the original, unencrypted file prior to deleting it. It may be possible to recover the original, unencrypted files from the disk.
- After adding or extracting encrypted files, some or all of the unencrypted file contents or of your password data may remain in your computer's memory or the page swap files on disk. A malicious user may be able to retrieve this unencrypted information.
- WinZip does not encrypt Zip file comments or, as described above, information about encrypted files such as their names, dates, etc. Any user with access to the Zip file can view this information without a password.
You may be able to eliminate some of these exposures using specialized software such as virus scanners, disk erasers, etc.
Technical information on AES key generation (AE-1 and AE-2)
When you use Compatible AES-256 encryption with WinZip, the passwords that you enter are converted into keys of the appropriate length (256 bits). This is done through the PBKDF2 algorithm defined in RFC 2898 (also available as Public Key Cryptography Standard #5) with an iteration count of 1000. WinZip uses 16-byte salt values with 256-bit encryption.
One purpose for the “salt” values used with WinZip’s AES encryption is to yield different encryption keys for each file, even if multiple files are encrypted with the same password. WinZip uses 16-byte salt values, so even if very large numbers of files (millions or more) are encrypted with the same password, it is extremely unlikely that two of them will be encrypted with the same key. This matters because someone who obtained copies of two files encrypted with the same key could learn information about their contents.
As part of the process outlined in RFC 2898 a pseudorandom function must be called; WinZip uses the HMAC-SHA-1 function for this purpose, a well-established algorithm widely used for this purpose. The PBKDF2 function repeatedly calls HMAC-SHA-1, which produces a 160-bit hash value as a result, mixing the outputs in a fairly complicated way, eventually yielding a 256-bit encryption key as a result.
Note that, if you are using 256-bit AES encryption, the fact that HMAC-SHA-1 produces a 160-bit result means that regardless of the password that you specify, the search space for the encryption key is unlikely to reach the theoretical 256-bit maximum, and cannot be guaranteed to exceed 160 bits. This is discussed in section B.1.1 of the RFC 2898 document.
Comments
0 comments
Article is closed for comments.