Share via

How does password protection work for MS Word ? Which encryption is utilized ? Please relevant documentation links for details.

Amit Purswani 20 Reputation points
2025-12-11T14:05:27.3433333+00:00

How does password protection work for MS Word? Which encryption is utilized? Which encryption Key is utilized and how is it kept secured? Please share relevant documentation links for details.

Microsoft 365 and Office | Word | For education | Other

Answer accepted by question author
  1. Alexis-NG 15,145 Reputation points Microsoft External Staff Moderator
    2025-12-11T15:39:02.56+00:00

    Hi @Amit Purswani,

    Thank you for posting your question to Microsoft Q&A Forum.

    Password protection in Microsoft Word uses strong encryption to secure documents and their contents.

    There is two types of passwords:

    • Encryption to open/view: Requires a password to decrypt and display document content.
    • Modification restriction: Uses a password to prevent editing, but this does not encrypt content and is relatively weak.

    The specific encryption depends on the version of Microsoft Office used:

    Office Version Encryption Type Key Size Key Derivation & Hash Mode & Salt
    Office 2007 AES 128-bit SHA‑1, stretched 50,000 iterations Not specified
    Office 2010 AES 128-bit SHA‑1, stretched 100,000 iterations
    Office 2013 AES 128-bit SHA‑1 (default), SHA‑512 option
    Office 2016 and later AES 256-bit SHA‑2 (e.g. SHA‑512) CBC mode, 16-byte salt

    All these versions use Microsoft's Office Document Cryptography Specification ([MS‑OFFCRYPTO]) to manage keys, salts, and encryption settings.

    Password protection encrypts your document so only those with the correct password can access it. The process includes:

    1. Password Entry
      Set a password via File > Info > Protect Document > Encrypt with Password.
    2. Key Derivation
      Word converts the password into a strong key using SHA‑1 or SHA‑2 hashing, salt, and thousands of iterations.
    3. Encryption
      The key encrypts the document with AES (128- or 256-bit), typically in CBC mode.
    4. Storage
      Metadata (salt, iterations, algorithm info) is stored in the file, but the key itself is never saved.
    5. Decryption
      Opening the file requires the correct password to regenerate the key and decrypt the content.
    6. Safety
      Lost passwords cannot be recovered unless an IT tool like DocRecrypt was set up beforehand.

    In conclusion, Microsoft Word secures documents using strong AES encryption (128‑bit or 256‑bit). The encryption key is derived from the password through a robust process involving hashing (SHA‑1 or SHA‑2), salt, and multiple iterations, ensuring high security. While metadata such as salt and algorithm details is stored in the file, the actual key is never saved decryption only occurs when the correct password is provided. Note that simple modification protection without encryption does not offer real security.

    Please refer to the following official Microsoft articles for more information:

    Protect a Word document with a password - Microsoft Support

    Encryption in Microsoft 365 | Microsoft Learn

     

    I hope this information is helpful.

    Thank you for your patience and your understanding. If you have any questions or need further assistance, please feel free to share them in the comments on this post so I can continue to support you.

    I look forward to continuing the conversation.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.