Return-Path: X-Original-To: apmail-poi-dev-archive@www.apache.org Delivered-To: apmail-poi-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF0D3C5F8 for ; Mon, 17 Mar 2014 13:59:00 +0000 (UTC) Received: (qmail 57132 invoked by uid 500); 17 Mar 2014 13:59:00 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 56849 invoked by uid 500); 17 Mar 2014 13:58:57 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 56830 invoked by uid 99); 17 Mar 2014 13:58:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2014 13:58:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2014 13:58:52 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 620C51926A; Mon, 17 Mar 2014 13:58:30 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 35897] Password protected files Date: Mon, 17 Mar 2014 13:58:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: POI Overall X-Bugzilla-Version: 3.8-dev X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: nina.staats@gmail.com X-Bugzilla-Status: NEEDINFO X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=35897 --- Comment #18 from ns --- (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