How do I passwor dlock...

J

Jialiang Ge [MSFT]

Hello Dave,

XlSX file:
http://office.microsoft.com/en-us/help/HP100785801033.aspx (Protect
worksheet or workbook elements)

DOCX file:
http://office.microsoft.com/en-us/word/HA012189781033.aspx (Help protect
your document against unwanted changes and comments)
For instance, go to Review Tab -> Protect Document->Restrict Formatting and
Editing->Allow only this type of edit in the document (No changes (Read
Only))->Yes, Start Enforcing Protection->Enter password and confirm
password.

RTF, and Word XML can also be protected with the methods above, however,
the protection is only enforced when they are opened with Microsoft Office
Word. For instance, if a rtf protected with a password is opened in
Wordpad, rather than, Office Word, it can still be freely edited. There
does not exist a good resolution for such scenarios. A possible workaround
is to use File system access control to protect access to documents
(http://msdn2.microsoft.com/en-us/library/aa190075(office.10).aspx).

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jialiang Ge [MSFT]

Hello Dave,

The file password in Office Open XML documents is not a standard ZIP
password. Office encrypts the entire ZIP file and stores it as a stream in
an iStorage (http://msdn2.microsoft.com/en-us/library/aa380015.aspx).
Therefore, it is not possible to open such a office file with Zip password
functions. The decription of encrypted office documents is undocumented, or
even confidential due to security issues. I have sent an email to the
product team, to see if it is possible to be achieved. I will get back to
you as soon as possible.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jialiang Ge [MSFT]

Hello,

According to the response of the product team, when you add a password to
an Excel file,

(1) it first adds the password hash to the XML document (as you've already
found documented in the OOXML spec, or you may have a look at
http://blogs.infosupport.com/wouterv/archive/2006/11/21/Hashing-password-for
-use-in-SpreadsheetML.aspx which corrects some mistakes of the hash
function in the spec.)

(2) and then encrypts the entire file (which is a separate MS-specific step
outside of the OOXML spec).

Therefore, the encryption method is undocumented. My guess is that this is
done via some sort of Windows encryption API. I am asking for more
information.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jialiang Ge [MSFT]

Hello Dave,

According to the product team's reply, Microsoft is working on releasing
the encryption/decryption method to the web, it would be either this or
next month. Currently the documentation is going through legal review. Is
the issue critical? I will notify you when it is released.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top