Fxing bug #4143 and changing the parameters order
Allowing for empty or null password
Adding support for LibreOffice 3.6