Encrypt And Decrypt ODS files with Golang via C++
Contents
[
Hide
]
OpenOffice.org is a full-featured office suite that supports password‑protecting and encrypting files. However, an encrypted ODS file can only be opened by OpenOffice after providing the password. Excel cannot open the encrypted ODS file and may raise a warning message. The encryption options are not applicable for ODS files unlike other file types.
Aspose.Cells allows you to encrypt and decrypt ODS files. Decrypted ODS files can be opened in both Excel and OpenOffice.
Aspose.Cells allows you to encrypt and decrypt ODS files. Decrypted ODS files can be opened in both Excel and OpenOffice.
Encrypt with OpenOffice Calc
- Select Save As and click the Save With Password box.
- Click the Save button.
- Type your desired password into both the Enter Password to Open and Confirm Password fields in the Set Password window that opens.
- Click the OK button to save the file.
Encrypt ODS file with Aspose.Cells for Go via C++
For encrypting an ODS file, load the file and set the WorkbookSettings.GetPassword() value to the actual password before saving it. The resulting encrypted ODS file can be opened only in OpenOffice.
Decrypt ODS file with Aspose.Cells for Go via C++
For decrypting an ODS file, load the file by providing a password in the LoadOptions.GetPassword() property. Once the file is loaded, set the password to null.