Decrypt Filestream of MS Word Password protected File

A

Aerojade

C#, VS2005, Office2003.

I have a MS Word File that is password protected and the password is known
to me. Is it possible to create a filestream of the word document and then
decrypt the filestream since i know the password. I mean, the output after
decryption of the Filestream should be identicle to a filestream of the same
MS Word file without password protection. Please help.
 
T

Tony Jollans

No, or, at least, not easily. The file is not held as, nor encrypted as, a
single stream. It is a compound document and (some of) the individual
streams within it are encrypted. I am no expert in this, but, in theory, if
you break the file into individual streams you can determine the encryption
provider used and may be able to decrypt individual streams and put the
document back together.
 
C

Cindy M.

C#, VS2005, Office2003.
I have a MS Word File that is password protected and the password is known
to me. Is it possible to create a filestream of the word document and then
decrypt the filestream since i know the password.
Supplementing Tony's response:

You might want to pursue this in the forum "Office binary file formats":
http://social.msdn.microsoft.com/Forums/en-US/os_binaryfile/threads/

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top