Page 1 of 1

[Solved] OpenOffice "Save with Password" algorithm

Posted: Thu Dec 16, 2021 9:42 pm
by rusofil
Hi

While it may be obvious to some, I didn't find an info I need. What kind of protection does OO use when I want to protect a document with a password? I need something that protects my files with AES256 and well, I'm not sure if it's safe to password protect OO files. Or is there a way to choose a type of cipher? When I navigate to "protect my file/spreadsheet etc." all I can see is a simple two field window where I can type my password and repeat it. How do I know what's being used to protect my file? I'd be grateful if anyone unclouded this issue to me.

Re: Open Office file protection

Posted: Thu Dec 16, 2021 10:23 pm
by MrProgrammer
rusofil wrote:What kind of protection does OO use when I want to protect a document with a password?
If I save a file and specify Save with Password, the file's manifest contains:
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="content.xml" manifest:size="2515">
   <manifest:encryption-data manifest:checksum-type="SHA1/1K" manifest:checksum="WQI326oDGWSHcrWwh+7ejGzu+NE=">
      <manifest:algorithm manifest:algorithm-name="Blowfish CFB" manifest:initialisation-vector="jkVtDP9ziy8="/>
      <manifest:key-derivation manifest:key-derivation-name="PBKDF2" manifest:key-size="16"
                               manifest:iteration-count="1024" manifest:salt="035CTtYXgFf1X7B63TorRA=="/>
      <manifest:start-key-generation manifest:start-key-generation-name="SHA1" manifest:key-size="20"/>
   </manifest:encryption-data>
</manifest:file-entry>
https://www.schneier.com/academic/blowfish/

If this encryption doesn't meet your needs, encrypt the file with your own tool. This is a user-to-user forum. Developers don't visit here.

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the subject field. Select the green checkmark icon at the same time.

Re: Open Office file protection

Posted: Thu Dec 16, 2021 10:36 pm
by FJCC
I don't know if the encryption section on this old page is still relevant. https://cwiki.apache.org/confluence/dis ... ease+Notes

Re: Open Office file protection

Posted: Thu Dec 16, 2021 10:55 pm
by RoryOF
Be aware that the encryption used by OpenOffice is effectively unbreakable by the ordinary, or even the advanced User. A lost password will render the file irrecoverable under normal circumstances.

Re: Open Office file protection

Posted: Thu Dec 16, 2021 11:13 pm
by John_Ha