[GH-ISSUE #436] password #340

Closed
opened 2026-05-05 12:10:37 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @TThityou on GitHub (Mar 31, 2024).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/436

How to create a file with a password?

When the document is opened by execl, it will be prompted for a password.I did not find how to set the password to the file in this project.Thank you for your answer.

Originally created by @TThityou on GitHub (Mar 31, 2024). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/436 # How to create a file with a password? When the document is opened by execl, it will be prompted for a password.I did not find how to set the password to the file in this project.Thank you for your answer.
Author
Owner

@jmcnamara commented on GitHub (Mar 31, 2024):

Libxlsxwriter only supports worksheet passwords which don't enable encryption and offers very weak protection.

To protect the entire workbook you could use msoffice-crypt. It has a command line application but also a library.

<!-- gh-comment-id:2028886138 --> @jmcnamara commented on GitHub (Mar 31, 2024): Libxlsxwriter only supports [worksheet passwords](https://libxlsxwriter.github.io/worksheet_8h.html#a1b49e135d4debcdb25941f2f40f04cb0) which don't enable encryption and offers very weak protection. To protect the entire workbook you could use [msoffice-crypt](https://github.com/herumi/msoffice). It has a command line application but also a library.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#340
No description provided.