TechBuzzPro

How to Encrypt Sensitive Files on Your Computer

· 7 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Encrypting sensitive files turns them into unreadable data that only someone with the correct password or key can open. On Windows, the simplest route for most people is to put the files in a password-protected archive (for example with 7-Zip) or to use BitLocker for a whole drive; on macOS you can create an encrypted disk image with Disk Utility or turn on FileVault for the whole disk. Either way, the file is protected at rest: if your laptop is lost or stolen, or someone copies the file without the password, they get nothing useful. Before you start, decide whether you need to protect a few files (archive or disk image) or the entire drive (full-disk encryption), and make sure you have a way to store the password safely — losing it means losing the data.

What You'll Need

  • A computer running Windows 10/11 or macOS (the steps below cover both; Linux users can use GnuPG or VeraCrypt, but those are outside this guide).
  • For the archive method on Windows: 7-Zip installed from the official 7-zip.org site (or another reputable archiver that supports AES-256).
  • For the disk-image method on macOS: Disk Utility, which is built in.
  • A strong, unique password or passphrase that you have not used elsewhere. Aim for at least 12–16 characters, mixing words and symbols.
  • A safe place to record the password — a password manager is ideal. Do not store it in the same folder as the encrypted file.
  • Enough free disk space to hold a copy of the files while you encrypt them.

Step-by-Step

  1. Choose the right method. If you need to protect a handful of documents, photos or a backup, use a password-protected archive (Windows) or an encrypted disk image (macOS). If you want everything on the drive protected automatically, use full-disk encryption: BitLocker on Windows (Settings > Privacy & security > Device encryption, or Control Panel > BitLocker Drive Encryption) or FileVault on macOS (System Settings > Privacy & Security > FileVault). Menu labels can differ slightly by version and region, so look for the closest match.
  2. Gather the files into one folder. Move or copy the sensitive files into a single folder so you can encrypt them in one go. Keep the originals until you have confirmed the encrypted copy opens correctly.
  3. On Windows, create the encrypted archive. Install 7-Zip from the official site, then right-click the folder and choose 7-Zip > Add to archive. In the Archive format box pick 7z (or zip if you need compatibility). In the Encryption section, enter your password twice and choose AES-256 as the encryption method. Tick “Encrypt file names” if you want the contents list hidden too. Click OK and wait for the archive to finish.
  4. On macOS, create an encrypted disk image. Open Disk Utility (Applications > Utilities), choose File > New Image > Image from Folder, select your folder, and set Encryption to 256-bit AES. Enter a strong password, choose a name and location for the .dmg file, and click Save. The resulting disk image requires the password every time it is opened.
  5. Test the encrypted file immediately. Double-click the archive or disk image and enter the password. Confirm that the files inside open correctly and that the contents look complete. This step catches typos in the password and corruption before you delete anything.
  6. Delete the unencrypted originals securely. Once the encrypted copy is verified, remove the plain folder. On Windows, Shift+Delete bypasses the Recycle Bin; on macOS, move the folder to the Trash and empty it. For higher assurance, overwrite free space with a reputable file-shredding tool, since normal deletion only removes the file reference, not the data itself.
  7. Store the password safely and separately. Save it in a password manager, or write it down and keep it somewhere physically secure away from the computer. Do not email it to yourself or keep it in a plain text file on the same machine.
  8. Back up the encrypted file. Copy the encrypted archive or disk image to an external drive or cloud storage. Because it is already encrypted, the backup is safe to store elsewhere as long as the password stays private.

Common Mistakes

  • Using a weak or reused password. A short password or one used on other accounts can be cracked or leaked. Use a long passphrase unique to this file.
  • Forgetting to test the archive. A typo in the password during creation can leave you locked out of your own data. Always open the encrypted file before deleting the originals.
  • Leaving the original files behind. Encrypting a copy does nothing if the unencrypted version stays on the desktop or in Downloads.
  • Storing the password next to the file. A password in the same folder, or in a sticky note on the laptop, defeats the purpose.
  • Assuming deletion is secure. Standard delete and empty trash do not overwrite data; a recovery tool may still find it. Use a shredder if the files are highly sensitive.
  • Encrypting a whole drive without a recovery key. With BitLocker or FileVault, save the recovery key to your account or print it. If the drive fails or the OS needs reinstallation, the recovery key is the only way back in.

Tips

  • Use a passphrase of several random words rather than a single complex word — it is easier to type and harder to crack.
  • Encrypt before you upload. If you send files by email or cloud link, encrypt them first and share the password through a different channel (for example, a phone call or a password manager link).
  • Keep one encrypted backup offline. Ransomware and sync errors can reach cloud copies; an offline encrypted drive is a safe fallback.
  • Label the encrypted file clearly so you know what it is later, but avoid descriptive names that reveal the contents if the file name is visible.
  • Re-encrypt with a new password if you suspect the old one was exposed.

Troubleshooting

  • The archive will not open. Check Caps Lock and keyboard layout, then try typing the password into a plain text field to compare. If it still fails, the password was likely mistyped at creation; restore from a backup or the original files if you still have them.
  • The disk image says it is damaged. Re-download or re-copy the .dmg from your backup and try again. If the file is corrupted, the original folder is your only recovery source.
  • BitLocker or FileVault asks for a recovery key. Use the key saved to your Microsoft account or Apple ID, or the printed copy. Without it, the drive cannot be unlocked and data may be unrecoverable.
  • The encrypted file is much larger than expected. That is normal for archives and disk images, which add overhead. If size is a problem, split the folder into smaller batches.
  • You deleted the originals too early. Stop using the drive and try file-recovery software immediately; the chance of recovery drops the more you write to the disk.

Frequently Asked Questions

Is encrypting a file the same as password-protecting a document?

No. A password on a Word or PDF file often only restricts opening in that app and can sometimes be bypassed. Encryption with AES-256 in an archive or disk image scrambles the data itself, so it cannot be read without the key.

Can I encrypt files on a phone?

Phones encrypt their storage by default when a screen lock is set. For individual files, use the phone's built-in secure folder or a reputable encryption app from the official app store.

What happens if I forget the password?

There is no backdoor. Without the password or recovery key, the data is effectively lost. That is why testing and a safe password record matter before you delete the originals.

Does encrypting a file stop malware from reading it?

No. Encryption protects data at rest. Once you unlock and open the file, malware running on the same computer can read it. Keep the system updated and use reputable security software.

Should I encrypt the whole drive or just the files?

Full-disk encryption protects everything automatically, including temporary files, and is the better default for a laptop. File-level encryption is useful for sharing specific items or storing them on removable media.

Is 7-Zip or Disk Utility safe to use?

Yes, when downloaded from the official source. 7-Zip is free and open source from 7-zip.org; Disk Utility is built into macOS. Avoid third-party “encryption” sites and unknown apps.