Bug 42647 - command line option to specify password
Summary: command line option to specify password
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.4.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Commandline
  Show dependency treegraph
 
Reported: 2011-11-06 11:37 UTC by Battery Staple
Modified: 2016-10-17 02:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Battery Staple 2011-11-06 11:37:45 UTC
Hi,

it would be very nice if one could open libreoffice with

soffice --password="passwordstring" [file]

and

soffice --passfile="/location/to/password/in/file" [file]

I'd like to store encrypted libreoffice files on dropbox, but I really do not want to type in my [random] password every time.

Thanks a lot!
Comment 1 sasha.libreoffice 2012-04-19 04:42:35 UTC
Thanks for new idea
Writing password as plain text that anyone can see it.
Comment 2 Battery Staple 2012-04-19 07:35:05 UTC
I've described a scenario where it makes sense to supply the password in plaintext. Plus I've asked for keyfile support, so what's your problem with that?
Comment 3 sasha.libreoffice 2012-04-19 22:17:00 UTC
Thanks for additional information.
Integration with system and desktop password handling will be also interesting
Comment 4 Mani 2015-08-03 05:21:41 UTC
Assigning BUG to me.

I would like to work on this enhancement feature. If anyone else working on this bug, kindly let me know.
Comment 5 Thibaut Barrère 2016-04-28 09:15:14 UTC
I tried to use soffice to automate conversion of XLSX encrypted files in a production environment, and ended up finding this ticket.

If we were to follow twelve-factor config recommendations (http://12factor.net/config), which is often used today in PaaS, then we could have passwords set in environment, then call:

soffice --password="$PASSWORD"

Which is not stored in history etc.

I would definitely have a use for that (plenty of "ETL" types of work requires conversion of all kinds, and soffice is a great way to do that even on production servers).