You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/09/10 20:31:30 UTC
[Bug 55544] New: org.apache.poi.EncryptedDocumentException:
Unsupported hash algorithm when trying to decrypt Excel 2013
https://issues.apache.org/bugzilla/show_bug.cgi?id=55544
Bug ID: 55544
Summary: org.apache.poi.EncryptedDocumentException: Unsupported
hash algorithm when trying to decrypt Excel 2013
Product: POI
Version: 3.9
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: POIFS
Assignee: dev@poi.apache.org
Reporter: bknippen@abinitio.com
Trying to create an EncryptionInfo from an encrypted Excel 2013 file results in
an org.apache.poi.EncryptedDocumentException exception. The hashAlgorithm in
the EncryptionHeader of the document is "SHA512" and EncryptionHeader has this:
String hashAlg = keyData.getNamedItem("hashAlgorithm").getNodeValue();
int hashSize = Integer.parseInt(keyData.getNamedItem("hashSize")
.getNodeValue());
if ("SHA1".equals(hashAlg) && hashSize == 20)
hashAlgorithm = HASH_SHA1;
else
throw new EncryptedDocumentException("Unsupported hash algorithm");
Would be good to have support for Excel 2013 documents
--
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
[Bug 55544] org.apache.poi.EncryptedDocumentException: Unsupported
hash algorithm when trying to decrypt Excel 2013
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55544
Jeff Grossman <je...@prolifics.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jeff@prolifics.com
--- Comment #4 from Jeff Grossman <je...@prolifics.com> ---
Created attachment 31092
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31092&action=edit
another test case (password "welcome1")
Generated by a third-party server process.
The EncryptionInfo says, among other things:
keyBits="256" hashSize="64" hashAlgorithm="SHA512"
--
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
[Bug 55544] org.apache.poi.EncryptedDocumentException: Unsupported
hash algorithm when trying to decrypt Excel 2013
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55544
bknippen@abinitio.com changed:
What |Removed |Added
----------------------------------------------------------------------------
OS|Linux |All
--
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
[Bug 55544] org.apache.poi.EncryptedDocumentException: Unsupported
hash algorithm when trying to decrypt Excel 2013
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55544
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Nick Burch <ap...@gagravarr.org> ---
As of r1522074 it's hopefully supported. I've added a simple unit test that
shows we can now process the header, please re-open the bug if anything further
down the line fails with it!
--
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
[Bug 55544] org.apache.poi.EncryptedDocumentException: Unsupported
hash algorithm when trying to decrypt Excel 2013
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55544
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Could you please upload a small sample file that shows the problem?
--
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
[Bug 55544] org.apache.poi.EncryptedDocumentException: Unsupported
hash algorithm when trying to decrypt Excel 2013
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55544
Bug 55544 depends on bug 55818, which changed state.
Bug 55818 Summary: Add encryption support
https://issues.apache.org/bugzilla/show_bug.cgi?id=55818
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--
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
[Bug 55544] org.apache.poi.EncryptedDocumentException: Unsupported
hash algorithm when trying to decrypt Excel 2013
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55544
Jeff Grossman <je...@prolifics.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #5 from Jeff Grossman <je...@prolifics.com> ---
I have uploaded a new test case, per Andreas' request. Problem posting in the
archive at:
http://mail-archives.apache.org/mod_mbox/poi-user/201311.mbox/%3C6997BC53406F47B4AB0F17A07F2EED83@ad.prolifics.com%3E
Also, per Andreas' request, I have verified that we are using the correct JCE
version.
--
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
[Bug 55544] org.apache.poi.EncryptedDocumentException: Unsupported
hash algorithm when trying to decrypt Excel 2013
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55544
bknippen@abinitio.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--
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
[Bug 55544] org.apache.poi.EncryptedDocumentException: Unsupported
hash algorithm when trying to decrypt Excel 2013
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55544
Andreas Beeker <an...@gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |55818
--
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
[Bug 55544] org.apache.poi.EncryptedDocumentException: Unsupported
hash algorithm when trying to decrypt Excel 2013
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55544
--- Comment #2 from bknippen@abinitio.com ---
Created attachment 30816
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30816&action=edit
example workbook for reproducing probelm
password for EncryptedBook.xlsx is: "this is a test"
--
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
[Bug 55544] org.apache.poi.EncryptedDocumentException: Unsupported
hash algorithm when trying to decrypt Excel 2013
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55544
Andreas Beeker <an...@gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Andreas Beeker <an...@gmx.de> ---
As per #55818 this has been fixed too, so I'm closing this for now.
> Jeff wrote on 21.12.2013 04:34:
>
> Short answer: The code works.
>
> Long answer: The code wasn't working, no matter what JCE files we tried, no matter what JVM we tried. Then, I wondered whether our test file -- the one with all the birthdays, not the one I had made for you -- was the problem. I acquired eight more of them and... sure enough they all open just fine.
>
> Commit the branch, mark the bug, I'm happy.
>
> Jeff
--
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