How to password protect a file on Windows and Mac
Key takeaways
- In Word on Windows, choose File, Info, Protect Document, Encrypt with Password, then save and reopen the file to confirm it asks for the password.
- Windows file encryption is unavailable in Windows Home, and adding encrypted files to an ordinary ZIP can leave them unencrypted when extracted.
- A normal ZIP is only compression, so use 7-Zip with AES-256, or 7z with Encrypt filenames in Keka on Mac, to protect content.
- Use a unique password from a password manager, send it through a separate channel from the attachment, and attach the encrypted copy, not the original.
To password protect a file on Windows or Mac, use the document’s built-in encryption feature, create an encrypted archive, or place files inside an encrypted Mac disk image. The right choice depends on whether you want to protect one document, store several files privately, or share them with someone using another operating system. These methods provide different kinds of protection, so choose the one that matches how you will use the file. (support.microsoft.com)
How do you password protect files on Windows?
On Windows, you can give a Word document its own opening password or use an archive application to encrypt other file types. Windows also offers Encrypting File System (EFS) on supported editions, but that protects files using encryption keys associated with your account rather than a separate password you give a recipient. For sharing, choose document encryption or an encrypted archive. (support.microsoft.com)
Add an opening password in Microsoft Word
For a Word document, the desktop application lets you add a password without putting the document into another container. On Windows, follow these steps:
- Open the document in Word.
- Select File > Info > Protect Document > Encrypt with Password.
- Enter your password and select OK.
- Enter it again to confirm.
- Save the document so the protection takes effect. (support.microsoft.com)
Close the document and reopen it as a final check before sharing. Choose encryption that requires a password to open the document, rather than a setting that only restricts editing. Word for the web cannot password-encrypt documents; use the desktop application for this task. (support.microsoft.com)
Understand the limits of Windows file encryption
For local protection on a supported Windows edition, right-click a file or folder, select Properties > Advanced, check Encrypt contents to secure data, and apply the change. Microsoft notes that this file-encryption feature is unavailable in Windows Home. If the option is missing, use a document password or encrypted archive instead. (support.microsoft.com)
EFS is not a portable password prompt: your authorized Windows account can open protected files normally. It therefore serves a different purpose from encrypting an attachment for someone else. Microsoft also warns that adding EFS-encrypted files to an ordinary ZIP can leave them unencrypted when extracted, so do not treat ordinary compression as a substitute for archive encryption. (microsoft.com)
How do you password protect files on a Mac?
To password protect files on a Mac, use Preview for PDFs, Word’s document protection for Word files, or Disk Utility for a collection of files. An encrypted disk image acts as a protected container that you unlock to access its contents. For a recipient using Windows, consider an encrypted archive instead of relying on a Mac disk image. (support.apple.com)
Protect a PDF with Preview
Preview includes an option to require a password before someone can open a PDF. This is separate from permissions governing printing, copying, or changes. To keep the contents private, make sure you enable the opening-password option. (support.apple.com)
- Open the PDF in Preview.
- Choose File > Export. Enter a new filename if you want a separate protected copy.
- Select Permissions.
- Check Require Password To Open Document, then enter and verify the password.
- Set the owner password used to manage permissions.
- Select Apply, then Save. (support.apple.com)
The changes take effect the next time you open the PDF. Reopen the exported version to check the password prompt, and take care not to send the unprotected original accidentally. If you created a separate copy, use a filename that makes the protected version easy to identify. (support.apple.com)
For Word on Mac, go to Review > Protect > Protect Document, set a password to open the document, confirm it, and save. A password only for modifying the document is not the same as preventing someone from reading it. (support.microsoft.com)
Create an encrypted container with Disk Utility
Disk Utility can create an encrypted disk image containing several files or folders. This is useful for a private collection you want to open and edit on your Mac. Apple’s process creates the container first; you then copy documents into it. (support.apple.com)
- Open Disk Utility and choose File > New Image > Blank Image.
- Choose a filename, save location, volume name, and sufficient size.
- Choose APFS for use with compatible modern Macs.
- Choose an option from the Encryption menu.
- Enter and confirm the password.
- Choose Single partition – GUID Partition Map and read/write image format.
- Save the image, then copy your files into the mounted volume. (support.apple.com)
Eject the image when finished: while it remains mounted, someone with access to your computer can access its documents. Keep the password safely stored because Apple warns that forgetting it means you cannot open the image. Copying documents into the container does not remove their unprotected originals. (support.apple.com)
Password protect ZIP files for cross-platform sharing
If you are learning how to password protect ZIP files, the essential distinction is between compression and encryption. A normal ZIP bundles files but does not automatically add password protection. Microsoft recommends a third-party application for creating or opening encrypted archives rather than relying on Windows’ built-in archive tools. (support.microsoft.com)
Create an encrypted ZIP on Windows
7-Zip supports AES-256 encryption in ZIP and 7z formats. To password protect ZIP files, install it from the official project’s download source, then use the archive settings below. Make sure you explicitly choose encryption rather than simply creating a compressed folder. (7-zip.org)
- Right-click the file or folder and choose 7-Zip > Add to archive.
- Set Archive format to zip.
- Enter and confirm your password in the encryption section.
- Set Encryption method to AES-256.
- Select OK to create the archive. (imda.gov.sg)
Before sending it, ask the recipient to confirm they have software that supports your archive’s encryption. A .zip extension alone does not guarantee their built-in extraction tool can decrypt it. Test with a non-sensitive sample first if you are unsure about compatibility. (support.microsoft.com)
Create an encrypted archive on Mac
A Mac archive application such as Keka can create password-protected archives. For a straightforward AES-encrypted option, choose 7z, enter the password in the Password and Repeat fields, then drop your files into Keka to create the archive. Its documentation confirms that password-protected 7z archives use AES-256. (github.com)
If you specifically need ZIP, verify that AES encryption is enabled rather than assuming any password setting provides the same protection. Keka’s documentation distinguishes legacy ZIP encryption from AES-encrypted ZIP. Check the application’s settings and test the resulting archive with the recipient’s software. (github.com)
Also consider filenames: Keka documents filename encryption for 7z archives, but not its ZIP archives. If a filename itself reveals sensitive information, use 7z with Encrypt filenames enabled. The recipient will need compatible extraction software. (github.com)
Password security and secure file sharing habits
Strong encryption still needs a strong password. NIST recommends long passwords and password managers that can generate and store unique passwords. Avoid reusing your email or computer login password for a file you plan to share. (nist.gov)
Use this checklist before sending sensitive documents:
- Generate a unique password. Store it in your password manager rather than in a text file beside the archive. (nist.gov)
- Share the password separately. If you email the attachment, provide its password through another channel, such as a phone conversation. (boisestate.edu)
- Test the protected copy. Reopen the saved document or extract the archive before relying on it. Confirm that access requires the intended password. (support.apple.com)
- Check which file you attach. Creating an encrypted copy can leave the original available, so inspect the filename and location before sending. (support.apple.com)
Choose protection that fits the file
Learning how to password protect files starts with choosing the right tool: document encryption for individual documents, an encrypted disk image for Mac storage, or an encrypted archive for sharing. Whatever you choose, verify the protected copy and store its password safely. Those final checks help turn a password setting into practical protection. (support.microsoft.com)
Related guides
- What is the right to be forgotten?
- Covered entity vs business associate under HIPAA
Sources
- Protect a Word document with a password | Microsoft Support
- How To Encrypt a File or Folder | Microsoft Support
- How to Encrypt a File in Windows 11 | Microsoft Windows
- Password-protect a PDF in Preview on Mac - Apple Support
- Create a disk image using Disk Utility on Mac - Apple Support (IN)
- Zip and unzip files | Microsoft Support
- 7-Zip
- imda.gov.sg: Dpe configuration guide
- Compressing with Keka · aonez/Keka Wiki · GitHub
- ZipAES · aonez/Keka Wiki · GitHub
- How Do I Create a Good Password? | NIST
- How to Encrypt a PDF Document - Office of Information Technology