Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password protected file #199

Closed
hieubq90 opened this issue Mar 26, 2018 · 12 comments
Closed

Password protected file #199

hieubq90 opened this issue Mar 26, 2018 · 12 comments
Labels
enhancement New feature or request

Comments

@hieubq90
Copy link

I have a use case for my business scenario where I need to password protect my generated excel files before I can email them to the client.
It would be great if we can have a password protection feature in the library.
Thank you!

@xuri xuri added the enhancement New feature or request label Mar 26, 2018
@xuri
Copy link
Member

xuri commented Mar 26, 2018

Thanks for your issue. I have added this feature request to the Roadmap. In order to support encryption, we need to implement these encryption standards and many more. It would require a very large number of test cases would be several weeks of work involved. That's an interesting job and I will consider adding support for this feature later. I'll certainly accept that patch if somebody did that an also welcome to contribute to this project.

@msiemens
Copy link

Would it for now be possbile to expose the xlsxWorkbookProtection struct in the public API? That way I could implement password protection on the application side for now.

@xuri
Copy link
Member

xuri commented Jul 30, 2018

Welcome to contribution! I think xlsxWorkbookProtection needn't be an exportable struct. We can add a new function such as SetPassword() to manipulate it internally.

@mohamedainab
Copy link

Any progress on this?

@loveCatCoder
Copy link

This feature is essential.

@tsubus
Copy link

tsubus commented Feb 24, 2020

Has anyone found a way to get it working temporarily until it's officially released?

@atlasW
Copy link

atlasW commented Aug 13, 2020

two years latter....Still not implemented

@xuri
Copy link
Member

xuri commented Aug 31, 2020

I just initialize the decryption protection spreadsheet support, and I'll add encryption support later.

@xuri xuri removed the in progress Working in progress label Sep 2, 2020
@xuri xuri added this to Done in v2.3.1 Sep 22, 2020
nullfy pushed a commit to nullfy/excelize that referenced this issue Oct 23, 2020
nullfy pushed a commit to nullfy/excelize that referenced this issue Oct 23, 2020
@m3ng9i
Copy link

m3ng9i commented Jan 10, 2021

This issue is closed. May I ask is there any time plan for encryption support? The document mentioned: "The excelize just support decrypt and not support encrypt currently, the spreadsheet saved by Save and SaveAs will be without password unprotected."

xuri added a commit that referenced this issue May 29, 2022
@xuri
Copy link
Member

xuri commented May 31, 2022

Sorry for my late reply. I have just initialized the workbook encryption support. Please upgrade to the master branch code if you like.

@kknifes
Copy link

kknifes commented Jun 27, 2022

Whether it can be found in readme example encryption usage?

@xuri
Copy link
Member

xuri commented Jun 28, 2022

Hi @kernel-1, please update and use the master branch code for the beta, and reference the example. Specify the password in the options of the SaveAs function. Note that this feature is still a work in progress, and will be released in the next version.

@xuri xuri added this to Feature in v2.6.1 Jul 7, 2022
Sangua633 added a commit to Sangua633/excelize that referenced this issue Aug 20, 2022
rodoard pushed a commit to sheetrocks/excelize that referenced this issue Aug 26, 2022
xuri added a commit to carbin-gun/excelize that referenced this issue Oct 9, 2022
xuri pushed a commit to carbin-gun/excelize that referenced this issue Oct 9, 2022
xuri added a commit to JDavidVR/excelize that referenced this issue Jul 11, 2023
xuri pushed a commit to JDavidVR/excelize that referenced this issue Jul 11, 2023
jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this issue Oct 22, 2023
jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this issue Oct 22, 2023
timerzz added a commit to timerzz/excelize that referenced this issue Dec 26, 2023
…-os#199

- Remove exported variable `ErrEncrypt`

(cherry picked from commit 7a6d5f5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
v2.3.1
  
Done
v2.6.1
Feature
Development

No branches or pull requests

9 participants