Both are secure.

Although both LibreOffice and Apache OpenOffice can open and edit native Microsoft formats DOCX and XLSX, only LibreOffice is able to save to these formats. If you’re going to be sharing documents with people using Microsoft Office, LibreOffice might therefore be the better choice.

I hope that helps.