# 如何去掉Word文档docx的密码保护

*Published:* 2024-01-04
*Author:* 客服001

#### 温馨提醒

如果文章内容或图片资源失效，请留言反馈，我们会及时处理，谢谢

本文最后更新于2024年1月4日，已超过 180天没有更新



**教程如下**

修改docx后缀为zip，然后解压，解压后得到的文件：

> │ \[Content\_Types\].xml  
> │ \_rels.docx  
> │  
> ├─docProps  
> │ app.xml  
> │ core.xml  
> │ custom.xml  
> │  
> ├─[word](https://www.xarjtc.com/tag/word "查看word此标签更多文章")  
> │ │ document.xml  
> │ │ endnotes.xml  
> │ │ fontTable.xml  
> │ │ footer1.xml  
> │ │ footer2.xml  
> │ │ footer3.xml  
> │ │ footnotes.xml  
> │ │ header1.xml  
> │ │ header2.xml  
> │ │ header3.xml  
> │ │ settings.xml  
> │ │ styles.xml  
> │ │ webSettings.xml  
> │ │  
> │ ├─theme  
> │ │ theme1.xml  
> │ │  
> │ └─\_rels  
> │ document.xml.rels  
> │  
> └─\_rels  
> .rels

word下有个settings.xml，这里就是需要修改的地方：

```
<w:documentProtection w:edit="readOnly" w:enforcement="1" w:cryptProviderType="rsaAES" w:cryptAlgorithmClass="hash" w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="14" w:cryptSpinCount="100000" w:hash="0SwG20V+DkTI6JW0IvQ0Gd8RQhsRXhFPwzatyH2KEqdmC9OTYmon48qoY9BkIBxjcwX7oK9oAJ5J45nCy8OxAw==" w:salt="PE1oBwGXGyHzib8jk1CyPA=="/>
```

我们需要把上面这几行去掉，然后重新打包为zip，再修改文件后缀名为docx即可解除保护。