View previous topic :: View next topic |
Author |
Message |
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Wed Mar 27, 2013 6:33 pm Post subject: New code for LibreOffice password protected files |
|
I couple of weeks ago I found that in LibreOffice 3.5 and higher, LibreOffice saves password protected files using a different encryption algorithm.
Since NeoOffice's underlying OpenOffice.org 3.1.1 code does not support the AES-256 algorithm that LibreOffice now uses, any password protected files saved in LibreOffice could no longer be opened in NeoOffice. Unfortunately, backporting the LibreOffice 3.5 code was not feasible as their code uses incompatible changes from OpenOffice.org 3.4.1 changes so I had to implement my own custom code to support the AES-256 algorithm.
The good news is that after much work I was able to successfully implement this new algorithm and the new code is in the following test patch. Can anyone can test my code by saving a password protected file in LibreOffice 3.5 or higher and then confirm that NeoOffice can open the LibreOffice file? Also, if you resave a LibreOffice password protected file, it should save using NeoOffice's existing encryption algorigthm so that LibreOffice as well as older versions of NeoOffice should be able to open the file:
Intel:
http://juliette.neooffice.org/test/NeoOffice-3.3-Patch-5-Test-5-Intel.dmg
Patrick |
|
Back to top |
|
|
amayze The Merovingian
Joined: Oct 24, 2005 Posts: 561 Location: Edinburgh, Scotland
|
Posted: Thu Mar 28, 2013 2:43 am Post subject: |
|
I've installed Patch 5 Test 5 and confirm that it works as expected.
A document saved in LibreOffice 4.0 with a password can be opened in NOP5T5.
Once changes are made and the document saved in NeoOffice it can be opened in both LibreOffice 4.0 and NeoOffice 3.2.1.
A couple of observations:
1. NeoOffice 3.2.1 opens password protected documents behind the current window. This is fixed in NeoOffice 3.3
2. LibreOffice has no lower limit on password length whereas NeoOffice requires 5 or more characters. However NeoOffice is quite happy both opening and re-saving a LibreOffice document with a short password so it's not an issue, just another point where NeoOffice is more sane than LibreOffice.
Cheers,
Andy |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Thu Mar 28, 2013 9:23 am Post subject: |
|
amayze wrote: | 1. NeoOffice 3.2.1 opens password protected documents behind the current window. This is fixed in NeoOffice 3.3 |
This is another reason that I am glad that we stopped using Java in NeoOffice 3.3. Keeping Java's window behavior in sync with what the OpenOffice.org code wants was a continual source of problems when we used Java.
amayze wrote: | 2. LibreOffice has no lower limit on password length whereas NeoOffice requires 5 or more characters. However NeoOffice is quite happy both opening and re-saving a LibreOffice document with a short password so it's not an issue, just another point where NeoOffice is more sane than LibreOffice. |
The "5 or more characters" requirement is actually imposed by the password input dialog in NeoOffice's underlying OpenOffice.org code. It seems odd that that requirement was removed in LibreOffice as documents with short passwords are easy to crack regardless of the encryption algorithm used.
Patrick |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Mon Apr 22, 2013 9:31 am Post subject: |
|
FYI. I have included code that enables opening LibreOffice password protected files in NeoOffice 3.3 Patch 6. The patch can be downloaded from the NeoOffice patch download page.
Patrick |
|
Back to top |
|
|
|