Addition for write protected sheets #363
No reviewers
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#363
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have added write protection for xml sheets using password hash from http://www.openoffice.org/sc/excelfileformat.pdf format.
It was tested and its working well. It is nothing but addition of one tag to sheet.
Hello, any updates on this? That would be a great feature to have.
The relevant sections of the official specs include
Keys attached to the worksheet object should be prefixed with an exclamation point (like
!ref
or!cols
).Started digging into this, looks straightforward but we're going to have to make some changes (I'll rewrite the commit):
According to MS-XLSB, the sheet protection info should show up after the data table but before the merge cells. The write line was put in the right position
The worksheet key should be
!sheetProtection
There are two helper functions for generating the XML:
wxt_helper
will generate the attribute string andwritextag
will generate the xml tag given a tag name, body, and properties object; andwxt_helper
. In this case you could just use writextag on the sheetProtection object.According to MS-XLSB, the actual password verifier algorithm is based on [MS-OFFCRYPTO] section 2.3.7.1, Binary Document Password Verifier Derivation Method 1. Incidentally we have that algorithm!.
Pull request closed