1

Help!

I have a password protected Excel 2007 file and I lost the password. Any code in .NET to open such a file?

Basically, I would need just a snapshot of the contents of the file.

Thanks.

1 Answer 1

2

The only way in .Net I can think of would be to automate Excel and keep trying to enter different passwords, but it might be better to try to get hold of some app that might do that for you a bit more efficiently. This is assuming that you've used some simple word as the password, as far as I know there's no shortcuts so it'll have to do a dictionary attack, so if you've used a difficult password it might take a very long time to find otherwise.

Sign up to request clarification or add additional context in comments.

1 Comment

Office 2007 uses AES128 for its default protection scheme, so a dictionary attack is the only option. In addition, there is no chance for a partial decryption to recover a 'snapshot' of the file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.