How can I unlock a Microsoft .docx document?
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Popsicle Puzzles
--
Chapters
00:00 How Can I Unlock A Microsoft .Docx Document?
00:22 Answer 1 Score 13
01:36 Accepted Answer Score 75
02:21 Answer 3 Score 2
02:46 Answer 4 Score 11
03:19 Thank you
--
Full question
https://superuser.com/questions/486844/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#microsoftword #docx
#avk47
ACCEPTED ANSWER
Score 75
DocX is a compressed zip container file. Make a copy of the original docx file. If you unzip it, there is a subfolder named word
with a file named settings.xml
. You can open settings.xml with a plain text editor.
Within that there is a block of text:
<w:documentProtection
w:edit=""
w:enforcement="1"
w:cryptProviderType=""
w:cryptAlgorithmClass=""
w:cryptAlgorithmType=""
w:cryptAlgorithmSid=""
w:cryptSpinCount=""
w:hash=""
w:salt=""/>
You can either change w:enforcement value to 0 or remove the block entirely.
Then you zip up the whole thing again (don't zip up the whole folder: the content_types.xml
and subfolders must be root of the zip file.), rename the result to have a Docx extension, and then open it in word.
ANSWER 2
Score 13
From this link: http://people.csail.mit.edu/seth/misc/unlockworddoc.html
How to Unlock a Word Document under Windows
Seth Teller, August 2009
Some authors (for example, of forms to be filled out) "lock" their documents under Windows. This is annoying, as it prevents you from fixing errors or adding anything to the document.
If you web-search on "unlocking word document," you get a bunch of pages with advice that doesn't work under Windows, or pointers to paid software. Here is a method that works, and is free:
Open your document in Word, then save it in ".xml" format.
Open the .xml doc in wordpad, emacs, or your favorite text editor.
Search for the string w:enforcement="1".
Replace the "1" with a "0" to disable enforcement (i.e., unlock the document).
Save the document from your text editor.
Open the .xml document in Word.
Choose "Save as..." and save it as a .doc or .docx file.
Your Word document can now be edited normally. Enjoy!
Mac users: ExtendScript Toolkit works well as a text editor in this workaround.
ANSWER 3
Score 11
MS Word has used 128-bit AES encryption since Office 2007 so no, there's no easy way to unlock it.
If you think your password is simple enough or vulnerable to a dictionary attack, you could try one of the various password cracking apps available (caveat downloader).
It's trivial to remove the Edit protection from Word documents by editing settings.xml
within the compressed .docx file as discussed in other answers here. However, as you have applied Encrypt with Password
to require a password to open the document, that method won't be available.
ANSWER 4
Score 2
Which OS and version of Word? If messing about with XMLs and text editors is not your cup of tea, in Word 2010 for Windows at least you can remove all restrictions, passwords, final locks etc. from File / Info / Permissions
:
Also make sure the file is not set to Read-only (close Word, right-click the file, check Properties / General tab / Attributes
).