Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - New code for LibreOffice password protected files
New code for LibreOffice password protected files
 
   NeoOffice Forum Index -> NeoOffice Testing
View previous topic :: View next topic  
Author Message
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: 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

PostPosted: 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
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: 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
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: 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
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Testing All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.