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

how to set Password when writeFile ? #791

Closed
parkAlly opened this issue Aug 23, 2017 · 1 comment
Closed

how to set Password when writeFile ? #791

parkAlly opened this issue Aug 23, 2017 · 1 comment

Comments

@parkAlly
Copy link

I want to set password when writeFile.
Do you support that feature?

var wb , ws = {}; 
ws['!protect'] = false;
wb.Sheets['test'] = ws;
XLSX.writeFile(wb, 'xlsxFile', {password : 'test1234'});
@SheetJSDev
Copy link
Contributor

A quick note on the feature: XLSX / XLSB ("ECMA-376") encryption involves generating a normal file and packaging the whole thing in an encrypted blob within a CFB container (the same type of container used in XLS).

We offer this in the Pro compendium. Since companies have paid for the features already, it would be unfair to them if we turned around and made it available as open source. We have a longer comment in a gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants