poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 35897] Password protected files
Date Mon, 17 Mar 2014 13:58:29 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=35897

--- Comment #18 from ns <nina.staats@gmail.com> ---
(In reply to Trejkaz (pen name) from comment #16)
> This could be a coincidence, but...
> 
> http://msdn.microsoft.com/en-us/library/dd952596%28v=office.12%29.aspx
> Says the 0x0002 and 0x0003 values refer to
> RC4 CryptoAPI encryption header structure[MS-OFFCRYPTO], 2.3.5.1
> 
> But if you look that one up:
> http://msdn.microsoft.com/en-us/library/dd922755(v=office.12).aspx
> EncryptionVersionInfo (4 bytes): A Version structure (section 2.1.4) that
> specifies the encryption version used to create the document and the
> encryption version required to open the document. Version.vMajor MUST be
> 0x0002, 0x0003, or 0x0004<22>
> 
> The note says:
> 
> <22> Section 2.3.5.1: Applications in the 2007 Office system earlier than
> Service Pack 2 set a Version.vMajor value of 0x0003. Versions with Service
> Pack 2 and Office 2010 set a Version.vMajor value of 0x004. Office 2003
> applications set a Version.vMajor version of 0x0002.
> 
> So I guess it's just a newer format?

I am wondering as Trejkaz states, that this is just RC4 encryption, but it's a
different version number, which gives us 4 instead of 0-3.  I will download POI
source and see if I can just change that line of code - that type=4 just does
RC4 decryption and see if that works.  Worth at shot.  If it does, I'll post it
up here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message