Word document encryption

Source: Internet
Author: User

Document security is a topic of great concern to every user, especially in public offices. How to protect our documents more effectively is an urgent issue. Word has a very powerful text editing function. It is a very common office software in our daily work and life. At the same time, word also provides many security and protection functions, next let's take a look at the encryption techniques for Word documents. These methods have their own xuanjicang. The so-called "one hill is higher than one hill!

1. Common Encryption

First open the Word Document to be encrypted and select"Tools""Option"Command, select"Save"Tag, in the"Open the permission PasswordAndChange the permission password"Enter the password, and then click"OK"Button to exit and save the document. Note: The "Open permission password" and "Change permission password" can be the same or different. You can set "Open permission password" to prevent others from opening this document, the purpose of setting "Change permission password" is to prevent others from modifying this document. If only "Change permission password" is set, others can still open this document, but if they do not know the password, no modifications can be made.

2. template Encryption

First, go to the C: \ WINDOWS \ Application Data \ Microsoft \ templetas folder and find the general template (normal. DOT), select "Tools> options", and set a password for the template in the same way as the preceding steps. Note that when saving, select the Save type as "Document Template (DOT )". At this time, due to normal. dot has been enabled, so you cannot save the encryption template as the default general template. First, save it as "normal1.dot", close the word, and then "normal. delete "dot" and rename "normal1.dot" to "normal. dot ". In this way, every time you start word, you will be prompted to enter the password (2). If you do not have a password, you can enter it, but you cannot use the default template.

3. Automatic macro Encryption

In fact, we can also use macros to automatically encrypt the document, select the "tool → macro" command, pop up the "macro" dialog box, and enter "autopassword" in "macro name ", select "all activity templates and documents" in "macro location", and click "CREATE". The "macro" editing window appears.Source codeInsert the following between Sub autopassword () and end sub in the window:Code:

With options
. Allowfastsave = true
. Backgroundsave = true
. Createbackup = false
. Savepropertiesprompt = false
. Saveinterval = 10
. Savenormalprompt = false
End
With activedocument
. Readonlyrecommended = false
. Embedtruetypefonts = false
. Saveformsdata = false
. Savesubsetfonts = false
. Password = "2002"
. Writepassword = "2002"
End
Application. defaultsaveformat = ""

Note: ". password = "" and "writepassword =" respectively indicate "Open permission password" and "Modify permission password". In this example, both "2002" is used to open and modify the permission password ", you can modify the settings on your own.

After entering the above Code, click "save Normal" in the "file" menu, and then click "close and return to Microsoft Word ".

Next, to make it easier to use the macro, You need to specify a shortcut key for it. On the word toolbar, right-click, select "Custom" from the context menu, and select the "command" tab in the "Custom" window, click "keyboard", select "macro" in "category", and find "autopassword" in "macro ", then, press the custom shortcut key in "Press new shortcut key", such as "Alt + Ctrl + P", and then click "specify. In the future, if you create a new document, you only need to press Alt + Ctrl + P to add a password for the document.

Note: Do not use phone numbers, birthdates, ID cards, or other numbers that are easy to guess. The password length must be at least six digits. Do not use only one element for passwords. word passwords support letters (case-sensitive), numbers, and symbols (full-width). It is best to mix them.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.