Password-protecting a file means locking it so only someone who knows the password can open it.
This guide is for anyone who sends payslips, contracts or customer lists by email or cloud link. You do not need technical skills. It covers PDFs, zip files and Office files, and how to share the password safely.
In short
- A file password scrambles the contents with encryption, so a stolen copy is hard to read.
- The lock is only as strong as the password. A short or common password can be guessed.
- Never send the password in the same email or chat as the file.
- If you lose the password, you may lose the file. Keep it in a password manager.
What you will learn
- Add a password to a PDF, a zip file and an Office file.
- Tell an "open" password apart from an "edit" password.
- Judge how strong your file lock really is.
- Share the password in a safer way.
- Lock with a password (encrypt)
- scramble a file so it only opens with the right password.
- Open password
- the password you need to see the file at all.
- Edit password
- a password that limits changes, printing or copying, not reading.
What is password-protecting a file?
Think of a locked diary. Anyone can pick it up, but they cannot read the pages without the key.
A password-protected file works the same way. The file can be copied, emailed or lost, but the contents stay scrambled until someone types the password. Many common tools offer this. Products are listed alphabetically here: 7-Zip can lock archives with AES-256 encryption [3]. Adobe Acrobat can lock PDFs [2]. Microsoft Office has an "Encrypt with Password" option [1].
Where the comparison stops working: a diary lock can be forced with a screwdriver. A well-encrypted file cannot be forced open that way. Instead, someone has to guess the password, so a strong password matters far more than the lock itself.
Not every file password is the same. Acrobat lets you set a password for viewing or for editing [2]. Only a viewing (open) password keeps people from reading the file.
Why does it matter?
Files travel. They sit in inboxes, shared folders and old laptops for years. A lock on the file stays with it wherever it goes.
If you send personal data at work
What could happen: an email with a payslip goes to the wrong person, and anyone can open the file.
Check this: lock files that hold personal data before you send them.
If you run a small business
What could happen: staff share one weak password for every locked file, so the lock does little.
Check this: use a different strong password for each file you send outside.
If you work in IT support
What could happen: a locked attachment you did not expect arrives with its password in the same email.
Check this: treat surprise locked attachments with extra care.
What does it look like?
Here is a made-up note someone might keep when sending a locked file. It shows what to record, and what not to send together.
Example only. All values are made up.
File: EXAMPLE-payslips-0000.zip (1) Lock type: AES-256, open password (2) Password: stored in password manager only (3) Sent by: email to [email protected] (4) Password sent by: text message, not email (5) Delete shared copy after: 00 days (FAKE) (6)
- The locked file. Its name should not give away what is inside.
- The kind of lock. An open password stops reading, not just editing.
- In a real file, this line would contain only where the password is kept, never the password itself.
- The channel used for the file.
- A different channel for the password, so one stolen inbox is not enough.
- A reminder to clean up shared copies once they are no longer needed.
Why this is risky: if the file and its password travel in the same email, anyone who reads that email has both.
The safer way: send the file one way and the password another way, such as a phone call or text message.
How does it work?
- You choose a password. The tool turns it into a secret key. 7-Zip, for example, uses a function based on SHA-256 to make that key [3].
- The tool scrambles the file. The key is used to encrypt the contents. Without the key, the data looks like noise.
- You save the file. In Office, the lock only takes effect once you save [1].
- Someone opens the file. They type the password, the tool rebuilds the key, and the contents unscramble.
- A wrong guess fails. An attacker with a copy can keep guessing on their own computer. That is why the password must be long and hard to guess.

How strong is it really? The scrambling is usually not the weak spot. The password is. For account passwords, NIST asks for at least 15 characters when a password is used on its own [5]. It also says to block common and leaked passwords [5]. A file password deserves the same care.
Office passwords are case-sensitive and can be up to 15 characters long [1]. Use the full length if you can.
A worked example
This story is made up to show the idea.
Wren Zamora does the books for a small garden centre. Each month she emails payslips to an outside payroll firm. One day she sends the file to an old address by mistake.
Her heart sinks. Then she remembers that the payslips were in a zip file with an open password. The password was not in the email. The person who got the file by mistake cannot read the payslips.
Still, Wren looks back at her habits. She had been using the same short password every month, the shop name plus the year. Anyone who knew the shop could have guessed it.
She makes three changes. First, she lets her password manager create a new long password for each month's file. Second, she rings the payroll firm and reads the password out, instead of typing it in a follow-up email. Third, she checks the address twice before pressing send.
She also learns that some PDF tools offer an edit password. That only limits changes and printing. For payslips she always uses an open password.
A month later, the payroll firm asks her to switch to their secure upload page instead. Wren agrees. She still locks the file first, because the lock stays with the file wherever it goes.
Wren learned that a lock only helps if the password is strong and travels separately.
Myths and mistakes
| What people think | What is true |
|---|---|
| Any file password stops people reading it. | An edit or permissions password limits changes, printing or copying. Only an open password stops reading [2]. |
| Sending the password in the next email is fine. | Anyone who can read the first email can usually read the second one too. Use a different channel. |
| The company that made the tool can unlock my file. | Do not count on it. Microsoft advises keeping a copy of the password in a safe place [1]. |
| A short password is fine because the encryption is strong. | Someone with a copy can guess again and again. A short or common password undoes a strong lock. |
| Once locked, the file is safe for ever. | Anyone you give the password to can save an unlocked copy. Share the password only with people who need it. |
What can I do this week?
- Find one file you send regularly that holds personal data, and lock it with an open password.
- Store each file password in a password manager, not in a note on your desk. The NCSC encourages password managers, which can create strong passwords for you [4].
- Agree with one regular contact how you will share passwords, such as by phone.
- Delete old unlocked copies of sensitive files from shared folders.
Checklist
- I use an open password when I need to stop people reading a file.
- My file passwords are long, at least 15 characters where the tool allows it.
- I use a different password for each file I send outside.
- I never send the password in the same message as the file.
- I keep file passwords in a password manager.
- I check the recipient's address before I press send.
- I am careful with locked attachments I did not expect.
Common questions
Is a password-protected zip file safe?
It can be, if the tool uses strong encryption and the password is long. 7-Zip, for example, offers AES-256 for its own 7z format. Check that your tool says it encrypts the contents, and never reuse a short password.
What is the difference between an open password and an edit password?
An open password stops anyone without it from seeing the file. An edit password lets people read the file but limits changes, printing or copying. For private data such as payslips, use an open password.
How should I send the password?
Use a different route from the file. If the file goes by email, share the password by phone call or text message. That way, one hacked inbox is not enough to open the file.
What if I forget the password?
You may not get the file back. Microsoft suggests keeping a copy of the password in a safe place. A password manager is a good home for it, and it can create strong passwords for you as well.
Why does my email system block some locked files?
Some workplaces hold or block locked attachments, because a locked file is harder for security tools to check. Ask your IT team what the rule is, and how they prefer you to share private files instead.
Where next?
Ready for the detail? Read the practitioner guide: Information Rights Management and Persistent File Protection Guide. It explains how organisations protect files with rights that follow the file, beyond a single shared password.
Also useful:
- Encryption for Beginners
- Password Managers for Beginners
- Password Security for Beginners
- Email Encryption for Beginners
Related NHI Mgmt Group resources: Password-Protected Attachment Evasion Guide, AES Encryption for Beginners and Data Privacy for Beginners.
Key terms
- Encryption
- Turning readable data into a scrambled form that only the right key can turn back.
- Password
- A secret string of characters a person uses to prove who they are or to unlock something.
- AES-256
- A widely used encryption method with a 256-bit key.
- Password strength
- How well a password resists guessing. Length and uniqueness matter most.
- Password manager
- A tool that creates, stores and fills passwords so you do not have to remember or reuse them.
- A shared item that needs an extra password before the receiver can open it.
Sources and further reading
- Microsoft Support, "Protect a document with a password". https://support.microsoft.com/en-us/office/protect-a-document-with-a-password-05084cc3-300d-4c1a-8416-38d3e37d6826 (accessed 30 Nov 2026).
- Adobe Help Center, "Add passwords to PDFs". https://helpx.adobe.com/acrobat/using/securing-pdfs-passwords.html (accessed 30 Nov 2026).
- 7-Zip, "7z Format". https://www.7-zip.org/7z.html (accessed 30 Nov 2026).
- NCSC, "Use a strong and separate password for email", Top tips for staying secure online. https://www.ncsc.gov.uk/collection/top-tips-for-staying-secure-online/use-a-strong-and-separate-password-for-email (accessed 30 Nov 2026).
- NIST, SP 800-63B-4 "Digital Identity Guidelines: Authentication and Authenticator Management", 2025. https://pages.nist.gov/800-63-4/sp800-63b.html (accessed 30 Nov 2026).