[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


ZIP file encryption

Posted on 2004-11-22
Medium Priority
Last Modified: 2013-11-20
    Zip file is a compress file. It consists of a sequence of
   [local file header]
    [file data]
    [data descriptor]

Where second field(file data ) contains actual file data which is in encrypted form. I found its format from www.worsit.org
I'm interested to know about this encryption. How we convert it back to original data. As there are some Mathematics algorithms appied on Zip file. Where can i find the details of such algo?  In header of zip file, there is 4 bytes value, CRC. What is this and how we calculate this value? I want complete descryption. If anybody help then thanks in advance.

Question by:ManojKrChauhan
  • 3
  • 3

Author Comment

ID: 12751563
     Sorry for late reply. Actually my account has been suspended due to some reason. Actually my motive for  zip file is to knowing about its internal format. Since there are many types of zip file as i found. Some are encrypted.Some contains password. How much types of zip files are available?
Also For a encrypted file, there are 12 bytes we used after "local file header". These bytes contains encryption information. How we calculate these bytes?
The sites which you told don't have enough information for me. So please tell me other links.
LVL 55

Expert Comment

by:Jaime Olivares
ID: 12753622
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 55

Accepted Solution

Jaime Olivares earned 375 total points
ID: 12753631
Also notice that in some links posted earlier, they mention a ZLib library, which is the fundamental library that access .zip files in different compresssion formats.

Author Comment

ID: 12760925
There is a 12 bytes encryption header after local file header. These 12 bytes are initialized using password. I want to know
1. Password only stores in encryption header?
2. What is difference between encryption headers for simple zip file, PKZip and TD.
As you gave a link http://www.codeproject.com/cpp/zip.asp, I found how encryption header is made(by generating random numberand initialized with password). But when i apply same technique on other zip files then it failed. So i want to know how many types of techniques used for different zip files?
This is last query regarding zip file.

Author Comment

ID: 12772156

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month19 days, 9 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question