Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 2nd, 2006, 08:46 AM
Authorized User
Join Date: Oct 2006
Location: Kolkata, West Bengal, India.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Frnds,

            I am in big trouble. Few days ago I set a password for my impotant excelsheet. But unfortunately I have forgot that password. Is there any way to recover the password?

Please help me.

Old November 2nd, 2006, 09:51 AM
Friend of Wrox
Join Date: Jun 2003
Location: London, , United Kingdom.
Posts: 173
Thanks: 0
Thanked 3 Times in 3 Posts

I should preface this reply by saying that I am not a big fan of helping people crack Excel as it is generally illegal. I will however outline how password protection works in Excel so that others here understand just how secure their password protected data is.

There are three flavours of password protection in Excel and each one requires a different approach to circumvent.

Sheet / Workbook protection: The protection here is laughably insecure with Excel converting your supplied password into one of 192,512 different binary combinations. All you need to do is write a bit of code that loops through all binary combinations of password and sooner or later you'll get lucky and open it. You can write a procedure in VBA to open this protection in about 2 minutes at the worst.

VBA code protection: The encryption of the password is altogether of a stronger flavour here. There's no easy try all the possible combinations method available. However, by inspecting the binary code of the file it is possible to infer the password (in older versions of Excel) or remove the password (in all current versions of Excel). This is no simple process but is sufficiently widely know that there are programs you may buy out there that will give a 100% password removal within seconds. Beware since this is the case it should always be assumed that a sufficiently determined hacker will get into your VBA code.

File Open Protection: This is the strongest and best password protection. I am pretty sure that the encryption here is as strong as the US government will allow civilian companies to sell outside the US as stronger encryption is considered to be a military weapon. There is no backdoor cracking method available for this so the only way to open it is to correctly guess the password or to try every possible encoded option. A lot of times people will select "weak" password, such as a name, date or word. In this instance the quickest way in is a so-called dictionary attack, where all likely weak passwords are iterated through by a program (hence dictionary). This would always be the first port of call for attempting to open a protected Excel file. Be warned that if you use such weak passwords then pretty much anyone can again buy software to crack your files open in a relatively short time period (couple of hours at most). If the dictionary attack fails then the next port of call is to try every possible combination. This is much the same principle as the method by which you crack sheet protection however there are many, many more combinations to try. Practically this can only be achieved by setting a supercomputer to the task for several days. However, once again, there are companies out there that will, for a fee, set aside their supercomputers to help you out. They may well ask you security questions to verify that you're not acting illegally.

Well anyway that's about all I know on the matter. The long and the short of it is that if you're determined to get into all but the most simple of protection you can do it so long as you pay someone.

Hope this helps,

Old November 15th, 2006, 01:10 AM
Authorized User
Join Date: Oct 2006
Location: Kolkata, West Bengal, India.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts

Can you please tell me some reference site from where I can get the solution for this problem???


Old November 16th, 2006, 08:26 PM
Authorized User
Join Date: Jul 2006
Location: Kalamazoo, MI, USA.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts

Do a Google search on Excel Password Hack.
Old March 17th, 2010, 05:23 AM
Registered User
Join Date: Mar 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Cool Guarantee remove excel and office password

Hi All,

We can use password.xla for unprotect or modify, but if you want to remove password to open please contact me: ads.tacton@gmail.com, i can help you for all type of office product not only excel file,

Office Expert

Similar Threads
Thread Thread Starter Forum Replies Last Post
forgot sa password, unable to change... help happygv SQL Server 2000 14 April 29th, 2010 02:26 AM
Chapter 7 Email setting for "forgot password?" hdpark BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 10 April 23rd, 2008 02:48 PM
VBAProject Password closing Excel jdmurcia Excel VBA 1 December 4th, 2004 09:41 AM
Forgot password for phpmyadmin AMP_Engineer BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 September 8th, 2004 04:59 AM
Forgot password? developerz BOOK: ASP.NET Website Programming Problem-Design-Solution 1 November 30th, 2003 04:36 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.