Helping people with computers... one answer at a time.

ZIP files are a archive format that includes optional password protection. If you don't have the zip file password you may still be able to get in.

I used a password while zipping a file, but unfortunately I've since forgotten the password I used. How can I unzip the archive and retrieve the file?

In a perfect world, the answer should be "you can't". I mean, you should be able to open a password protected files ONLY if you have the password right? Otherwise what's the point?

The fact that the answer isn't "you can't" should concern you.

First, the answer: if you search Google for "zip file lost password" you'll get a page full of results for various providers of zip file password crackersrecovery tools. Some are free, some are not. While I haven't tried them, the tools are out there.

In looking at the tools, the techniques to crack a zip file password boil down to three different approaches:

  • Brute Force Attack - make up and try every possible password. This sounds time consuming and it can be. However if you can provide hints, such as the approximate length of the password you used or perhaps the first character of your forgotten password, you can cut down the time dramatically.

  • Dictionary Attack - by quite literally using a dictionary of words, the tool can try various combinations until something works. If you recall that your password was in fact a word or combination of words, a dictionary attack can once again reduce the amount of time it might take to discover the forgotten password.

  • Known-plaintext Attack - If you have an original unencrypted copy of any file in the zip file (the "known plaintext", in cryptography-speak), that file, plus the encrypted zip file, can be used to reverse-calculate the password and thus extract all the other files.

"Password protecting a ZIP file is fairly poor security. It can be cracked ..."

Now, many of these techniques rely on time. Depending on your computer and the password to be discovered, you may end up turning a password crackerrecovery tool loose and have it take a few hours - or perhaps days - to recover the password. Perhaps that's too long, but perhaps not. That depends on your needs.

There are a couple of very important lessons to be learned here, however:

Password protecting a ZIP file is fairly poor security. It can be cracked, simple as that. With enough resources, and a poor or even moderately secure password, it can be cracked reasonably quickly.

"Strong" passwords are a must. If you're going to use words from the dictionary as a password, it's almost like having no password at all, cracking it is that easy. If you use a good, long and strong password then you can increase dramatically the amount of time it will take to crack or recover the zip file.

It's possible that the protection provided by a zip file is enough for you, and that's fine. Zip files are a compression format first, and an encrypting archive second. As long as you understand the previous two points, then you can at least make a reasonably informed decision as to which tool to use.

As an alternative, I would recommend something like TrueCrypt which uses much more robust algorithms to produce a virtually uncrackable encryption. If you forget the password to a TrueCrypt volume, you've lost your data. Period.

Like zip files, TrueCrypt volumes can contain many files in a single encrypted package. Unlike zip files, TrueCrypt volumes do not compress the data and you must select the size of your volume when you create it. But both of these differences are easily managed: if you want, you can compress files prior to putting them in a TrueCrypt volume, and it's easy to "grow" your volume, if needed by creating a new one and copying the contents of the old.

As with most things, choosing the right tool for the job is, perhaps, the most important decision even before you start.

Article C2918 - January 31, 2007 « »

Share this article with your friends:

Share this article on Facebook Tweet this article Email a link to this article
Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

February 3, 2007 3:32 AM

reset my password

February 13, 2007 3:59 PM

hey i forgot my pasword and i need help please i need your help:((

February 13, 2007 4:00 PM

i forgot my pasword and i need help please

March 23, 2007 9:06 AM

so how to open the file or extract the file if the password is lost... and cracking or recovery doesnt work at all or failed many time.. Sugestion [ delete the file ] problem solved!

April 29, 2007 3:34 AM

I have forgotten my password to encrypt my drive.. wtf must I do?

Leo A. Notenboom
April 30, 2007 12:26 PM

Hash: SHA1

It depends on what technology you used to encrypt it. But in general, if you
lose the password to an encrypted drive, you're probably screwed. Any decent
encryption technology will not have a password recovery backdoor.

Version: GnuPG v1.4.6 (MingW32)


Dev Sahani
May 13, 2007 12:32 PM


I got a new flash drive and then had heard a lot about the truecrypt software so decided on securing my disk with it. During trying to create a secure volume, I select the full device rather than a single folder. At the step when it asks to format the drive, I clicked on format, but it said that format failed.
I have not been able to access my drive since then. When I plug it into the USB port, it shows as drive letter D: but clicking on it gives back a message 'Please insert a disk'
I have tried to access it via 'computer management' but it simply shows Drive D: as 'no media' Chkdsk says it cannot access the drive. Trying to mount the volume using truecrypt itself does not work either.

Can you please help me, I did not have anything useful on the drive so data recovery is not my concern, all I want is to recover the space on my drive.

Look forward to hearing from you,

Leo A. Notenboom
May 13, 2007 9:14 PM

Hash: SHA1

Using the disk manager you'll probably have to create a new empty partition,
and then format it.


Version: GnuPG v1.4.6 (MingW32)


August 20, 2007 9:44 PM

You can recover your password protected zip file, or a corrupted zip file with Stellar Phoenix Zip Recovery.

Best of luck...

Vineet Kumar
April 1, 2009 5:12 AM

I know the name of best data recovery company and that is

May 14, 2009 6:37 PM

Stellar Phoenix Zip Recovery CAN NOT recovery any passwords. It can repair corrupted passworded files to a specific ZIP version as long as you know what the password is. It's not a password cracking tool at all.

rahul shrivastava
February 6, 2010 12:00 PM

i have encrypted my imp files and now i have lost the password plz help me out .

April 20, 2010 1:27 AM

Just for you reference:
If you want to remove your zip password as you have fogotten the password,one of best choice is
ZIP Password recovery 5.0 which proved to be an effective way to uncover lost or forgotten passwords.

Comments on this entry are closed.

If you have a question, start by using the search box up at the top of the page - there's a very good chance that your question has already been answered on Ask Leo!.

If you don't find your answer, head out to to ask your question.