oodecr is a bash script and related utilities that does OpenOffice encryption. It promts the user for a password and then either writes the decrypted
content.xml to a file or to a pager, such as
less after optionally formatting it with
xmllint -format. For information about the encryption format see the OpenOffice encryption page. Keep in mind that I'm not a cryptographer. I just find this stuff interesting.
oodecr is a bash script and related utilities that decrypt OpenOffice documents. It can be downloaded here. Once you've downloaded and installed it read the
README file for additional information. But to get started quickly try the following
oodecr -fpv secret-file.odt
The above will decrypt the
secret-file.odt. The result is formatted (
-f switch) and then passed through a pager (
-p switch). Verbose output (
-v switch) let's you know what it is doing. Finally, unless the
-k (keep) switch is used the file is securely deleted with
oodecr is a a bash script that depends on various executables. It applies the steps described on my OpenOffice page.
META-INF/manfiest.xmlis consulted for cipher information.
pbkdf2executable to generate the key.
opensslexecutable is used to decrypt
SHA1/1Kvalue is compared to the SHA1 of the first 1024 bytes of the deflated data to see if the password is correct.
gunzip -cof the previously produced gzip file is displayed to the user.