HP TECH TAKES /...

Exploring today's technology for tomorrow's possibilities
How to Encrypt a File

How To Encrypt Files for Maximum Security

Linsey Knerl
|
Reading time: 6 minutes
If you don’t want prying eyes snooping on your private information, encryption is a must. Think of it as a digital lockbox for your sensitive data. AES encryption, a highly secure method, ensures that your data remains protected from unauthorized access. The good news is that you don’t need to be a tech whiz to encrypt files. This step-by-step guide will walk you through the process, making it easy to safeguard your data.
From personal emails to confidential business documents, anyone can protect their information and keep it safe from prying eyes.

Why Should You Practice File Encryption?

You might associate encryption with government secrets and espionage, but in today’s digital landscape, it’s an essential practice for everyone. Everyday consumers are at high risk of having their personal data, sensitive files, and files stolen, and the consequences can be devastating.

Keep Sensitive Personal Information Safe

It’s a good idea to encrypt any files containing sensitive data:
  • Passwords: Protect your login credentials from unauthorized access.
  • Financial Information: Secure your bank account details, credit card numbers, and other financial records.
  • Personal Documents: Safeguard sensitive documents like tax returns, medical records, and legal documents.
  • Photos and Videos: Prevent unauthorized access to personal photos and videos, especially those stored in the cloud.

Prevent Data Exploitation

Beyond security risks, encryption helps you control your data in an age of data collection and monetization. Even if there’s no immediate threat to your security, you might choose to encrypt your data for privacy reasons, ensuring that it’s not used for commercial purposes without your consent.

How to Encrypt Files in a File Folder or Individual File

Different encryption methods and systems, such as AES encryption and symmetric/asymmetric cryptography, are utilized to keep files private and secure from unauthorized access. There are various methods for encrypting files, depending on your operating system and the type of file you want to protect.

Using Built-in Windows Encryption (Windows Pro, Enterprise, and Education Editions)

Windows Pro, Enterprise, and Education Editions come with a built-in encryption feature called Encrypting File System (EFS). Here’s how to use it:
  1. Locate the File or Folder: Right-click on the file or folder you want to encrypt.
  2. Select Properties: Choose “Properties” from the context menu.
  3. Go to Advanced: In the Properties window, click the “Advanced” button.
  4. Enable Encryption: Check the box next to “Encrypt contents to secure data.”
  5. Apply Changes: Click “OK” to close the Advanced Attributes window, then click “Apply” and “OK” again to save your changes.
Note: Your files are now encrypted using your Windows login password. To access them, you’ll need to be logged in to your Windows account. This method is tied to your user account, so it’s crucial to have strong passwords and separate user accounts on shared computers. The result of this process is an encrypted file that can only be accessed by the user account that encrypted it.
Backing Up Your Encryption Key:
It’s highly recommended to back up your encryption key to prevent data loss in case of a system failure or forgotten password. Windows will usually prompt you to create a backup when you first encrypt a file or folder. Here’s how to do it:
  1. Connect a USB Drive: Insert a USB drive into your computer.
  2. Initiate Backup: You may see a notification to back up your file encryption key. If not, you can search for “Manage BitLocker” in the Windows search bar.
  3. Follow the Prompts: Click “Back up now (recommended)” and follow the on-screen instructions to save your encryption key to the USB drive. You can also choose to save the key to your Microsoft account or print a copy.

Using Microsoft Office to Encrypt Files

If you have a Home version of Windows or need to encrypt specific Office documents, you can use the built-in encryption feature within Microsoft Office apps:
  1. Open the Office App: Open the relevant Office app (Word, Excel, PowerPoint, etc.).
  2. Open the File: Click “Open Other Documents,” then “Browse” to locate and open the file you want to encrypt.
  3. Protect the Document: Go to the “File” tab and select “Protect Document” or “Info” and then “Protect Document”.
  4. Encrypt with Password: Choose “Encrypt with Password.”
  5. Set a Password: Enter a strong password (remember that it’s case-sensitive) and confirm it. After setting a password, you will need the decryption key (password) to decrypt files later.
Note: Once an Office document is encrypted, you’ll need Microsoft Office to open it. Other programs, like Google Docs or Open Office, won’t be able to decrypt it.

Using Third-Party Encryption Software

For more robust encryption options, more granular control, or to encrypt files on other operating systems (like macOS or Linux), consider using third-party encryption software.
Popular options include:
  • VeraCrypt: A free, open-source encryption tool for Windows, macOS, and Linux. VeraCrypt can encrypt entire drives or create encrypted containers for storing files.
  • AxCrypt: A freemium encryption tool for Windows and macOS. AxCrypt integrates seamlessly with File Explorer, allowing you to encrypt and decrypt files with a right-click.
  • 7-Zip: A free, open-source file archiver that offers strong encryption for compressed files. 7-Zip is widely used for its compression capabilities but also provides reliable encryption using the AES-256 algorithm.
Using third-party encryption software is advantageous for encrypting large files, addressing the challenge of sharing large videos or multiple photos without the hassle of file size limits. These tools often offer more advanced features like secure file sharing and key management.
Important: Always choose reputable encryption software from trusted sources, and follow the instructions carefully to ensure proper encryption and data security.

How to Encrypt a PDF File

PDF is one of the many file types that can be securely encrypted. You can use several methods to encrypt a PDF file:
  • Microsoft Office: Export your Office document (Word, Excel, etc.) as a PDF and enable encryption during the export process.
  • Adobe Acrobat: Use the built-in password protection feature in Adobe Acrobat to encrypt your PDF.
  • Third-Party Software: Use encryption tools like VeraCrypt or 7-Zip to encrypt the PDF file directly.

How to Encrypt a Flash Drive

You can encrypt your entire flash drive (or SD card) to prevent unauthorized access to the data it contains:
Windows:
  1. Connect the Drive: Insert the flash drive or SD card into your computer.
  2. Open BitLocker: If you’re using Windows Pro, Enterprise, or Education, right-click on the drive in File Explorer, choose “Turn on BitLocker,” and follow the prompts to set a password.
  3. Use Third-Party Software: If you’re using Windows Home or prefer alternative tools, use software like VeraCrypt to encrypt the drive. When using third-party software, you may need to create a private key for decryption, especially in the context of asymmetric or public-key cryptography, ensuring the safety of your files from unauthorized access.
macOS:
  1. Open Disk Utility: Go to Applications > Utilities > Disk Utility.
  2. Erase and Encrypt: Select the flash drive, click “Erase,” choose a name, select an encrypted format, and set a password.

Delete Temporary Files

After encrypting files, it’s essential to delete temporary files to remove any unencrypted copies that Windows might have created during the process. You can usually do this by searching for “Disk Cleanup” in the Windows search bar and selecting the appropriate drive.

Additional Tips for File Security

  • Strong Passwords: Always use strong, unique passwords for your accounts and encrypted files. A strong password includes a mix of uppercase and lowercase letters, numbers, and symbols.
  • Regular Backups: Back up your important data regularly to a separate location (cloud storage or external hard drive). This helps protect you from data loss due to hardware failures, accidental deletions, or ransomware attacks.
  • Beware of Phishing: Be vigilant against phishing attempts that try to trick you into revealing your passwords or other sensitive information. Phishing emails often appear to be from legitimate organizations, so be cautious about clicking links or opening attachments from unknown senders.

In Summary

Encrypting files is a simple yet powerful way to enhance your data security and protect your sensitive information from unauthorized access. Whether you use built-in operating system features, Microsoft Office tools, or third-party software, incorporating encryption into your data management practices is a wise investment in your digital well-being.

About the Author

Linsey Knerl is a contributing writer for HP® Tech Takes. Linsey is a Midwest-based author, public speaker, and member of the ASJA. She has a passion for helping consumers and small business owners do more with their resources via the latest tech solutions.

Disclosure: Our site may get a share of revenue from the sale of the products featured on this page.