Finderlock logoFinderlock

Finderlock

File protection that lives in Finder.

Sign in
All posts
email encryptionmacencrypt filepassword protectattachments

How to Encrypt a File to Send by Email on Mac (No Email Setup)

How to encrypt a file to send by email Mac users can do today: compare PDF passwords, zip, disk images, gpg and Finderlock, with no S/MIME or PGP setup.

9 min read

The simplest way to encrypt a file to send by email on a Mac is to encrypt the attachment itself, not the email. Password-protect a PDF in Preview, or put the file in a password-protected AES zip, and send the password through a different channel such as a phone call or messaging app. This works with any email service and any recipient, with no certificates to set up.

Encrypting the message vs. encrypting the attachment

There are two different things people mean by "encrypted email".

Encrypting the message uses S/MIME or PGP. Apple Mail supports S/MIME, but both you and the recipient need a certificate (or key pair), and you must have exchanged public keys or certificates before the first message. Both sides also need a mail client that handles it. For a one-off message to an accountant, a landlord or a client, this is rarely realistic.

Encrypting the attachment means the file is locked before it ever touches your email client. Gmail, iCloud Mail, Outlook or a company server only sees an opaque file. The recipient needs the password and something that can open the format. That is the approach the rest of this article covers.

One limit to be aware of: encrypting the attachment does not hide the email itself. The subject line, the body text, the recipient addresses and the file name are normally still readable by mail servers. Keep sensitive details out of those, and name the file something neutral.

The key rule: never send the password in the same email

If the password travels in the same message as the file, anyone who can read that message can open the file. The encryption protects nothing.

Send the password another way:

  • Read it over a phone call.
  • Send it in a messaging app, ideally not the same mailbox account.
  • Agree on it in advance in person.

Use a long, random password or a passphrase of several unrelated words. A short password on a strong cipher is still a weak lock, because attackers can guess offline against a file they have a copy of.

Method 1: Password-protect a PDF in Preview

If the file is already a PDF, or can be exported as one, this is the easiest route. Anyone on Windows, Mac, iOS or Android can open it with a normal PDF reader and the password.

  1. Open the PDF in Preview.
  2. Choose File > Export (not Save).
  3. Tick Encrypt and enter a password.
  4. Save under a new name and attach that copy.

Preview does this well for quick jobs. Its limits: it only works for PDFs, you have to export a separate copy, and you have no control over the encryption settings. Follow the full walkthrough in how to password protect a PDF on Mac.

Method 2: Password-protected zip

A zip works for any file type, or several files at once, and Windows users know how to open one. The catch is which encryption the zip uses.

The zip command built into macOS Terminal has an -e option:

zip -e documents.zip contract.docx

It prompts for a password, but zip -e uses the legacy ZipCrypto scheme, which is considered weak. It keeps out casual snooping, not a determined attacker. For anything sensitive, use a tool that writes AES-256 zip archives instead. Our guide on password protecting a zip file on Mac covers the options and how to choose a password that holds up.

Tip: whichever tool you use, the recipient may need an app that supports AES zips. Windows' built-in zip handling may not open AES-encrypted archives, so tell the recipient to install a free archiver such as 7-Zip if they get an error.

Method 3: Encrypted disk image with Disk Utility

macOS can wrap a folder in an encrypted .dmg file. This is what macOS's own manual tools offer for folders.

  1. Open Disk Utility.
  2. Choose File > New Image > Image from Folder.
  3. Select the folder, then set Encryption to 256-bit AES and choose a password.
  4. Save, then attach the .dmg.

The Terminal equivalent is:

hdiutil create -srcfolder ~/Documents/to-send -encryption AES-256 -volname "ToSend" ~/Desktop/to-send.dmg

It asks for a passphrase. The result is solid encryption and works well between two Macs. The drawback is plain: a recipient on Windows cannot open a .dmg. It also tends to be a clumsy choice for a single file.

Method 4: Terminal encryption with gpg or openssl

If you are comfortable in Terminal, symmetric encryption (one password, no keys) is fast and flexible. The recipient needs the matching tool and the password.

With GnuPG (installed separately, for example via Homebrew with brew install gnupg):

gpg --symmetric --cipher-algo AES256 report.pdf

This creates report.pdf.gpg and leaves the original alone. To decrypt:

gpg --output report-decrypted.pdf --decrypt report.pdf.gpg

With openssl:

openssl enc -aes-256-cbc -pbkdf2 -salt -in report.pdf -out report.pdf.enc
openssl enc -d -aes-256-cbc -pbkdf2 -in report.pdf.enc -out report-decrypted.pdf

Warning: the -out file is overwritten without asking. Do not point it at a file you want to keep. Also check that the file decrypts correctly before deleting the original.

The openssl that ships with macOS is LibreSSL, and the available options depend on the macOS version. If -pbkdf2 is rejected, use gpg instead. Note that aes-256-cbc does not authenticate the data, so tampering would not be detected. For more detail, see how to encrypt a file on Mac with Terminal.

This route is powerful, but it is the least friendly for the person receiving the file. A Windows user needs GnuPG or a compatible tool and has to run it.

Method 5: Protect the file with Finderlock

Finderlock is a Mac app that encrypts each protected item into its own .secured container using AES-256-GCM (Apple CryptoKit). The key is derived from your password with PBKDF2-HMAC-SHA256 (150,000 iterations, random 32-byte salt). Folders are archived first and sealed in independent 4 MB chunks.

To send a file this way:

  1. Install Finderlock and open it.
  2. Right-click the file in Finder and choose Protect (the Finder menu needs macOS 14; on macOS 13.5 you can drag the file into the app's dashboard instead).
  3. Set a password for the item.
  4. Attach the resulting .secured file to your email.
  5. Give the recipient the password by phone or messaging app.

Be clear on the limit: the recipient needs Finderlock on a Mac to open the file. For a one-off to someone on Windows, a password-protected PDF or an AES zip is simpler and you should use one of those.

Finderlock fits better in two situations:

  • Sending between Macs where both people are happy to install the app.
  • Keeping the original safe. The same protection that makes the container safe to email also keeps the file encrypted on your own disk. Locked items leave a placeholder where they were, and double-clicking it unlocks the item. There is also Touch ID on paid plans, and optional backup of encrypted containers to iCloud or Google Drive.

Everything runs locally on your Mac. The only network use is the license check, optional opt-in analytics, updates and any backups you choose. For a broader comparison of local options, see 4 ways to password protect a folder on Mac.

Comparison: which method should you use?

Method Opens on Windows Strength Effort
PDF password in Preview Yes, any PDF reader Fine for everyday documents; depends on your password Low, PDFs only
zip -e in Terminal Yes Weak (legacy ZipCrypto) Low
AES-256 zip (third-party tool) Yes, may need an archiver like 7-Zip Strong with a good password Low to medium
Encrypted disk image (.dmg) No Strong (AES-256) Medium
gpg symmetric Yes, with GnuPG installed Strong with a good password High for the recipient
Finderlock .secured No, needs Finderlock on a Mac Strong (AES-256-GCM, PBKDF2) Low for you, requires the app on both sides

A quick way to choose:

  • Recipient on Windows, single document: PDF password or AES zip.
  • Recipient on Windows, multiple files: AES zip.
  • Recipient on a Mac, one-time share: PDF, zip or disk image all work.
  • Recipient on a Mac who will receive files regularly, or you also want to store the original encrypted: Finderlock.

Attachment size limits

Every email provider caps the size of a message, and the caps differ between services and between sending and receiving. Email encoding also makes attachments larger than the file on disk. Encrypted files do not compress, so zipping after encrypting will not help, and compressing before encrypting is the only way to shrink them. If your file is large, check the sender and recipient providers' limits, or share through a cloud link instead. The encryption still applies: encrypt the file first, then upload the encrypted version and send the link and the password separately.

FAQ

Can I encrypt an email attachment in Apple Mail without a certificate?

Not with the message-level features. Apple Mail's built-in encryption is S/MIME and needs certificates. Without one, encrypt the file first (PDF password, zip, or another method above) and attach the result.

Is a password-protected zip safe to email?

It depends on the encryption. A zip made with zip -e uses weak legacy encryption. An AES-256 zip made with a suitable tool is much stronger. In both cases, the password must be strong and sent separately.

How do I send an encrypted file to someone on Windows?

Use a password-protected PDF if the file is a PDF, or an AES-encrypted zip for anything else. Avoid .dmg files and Finderlock .secured containers for Windows recipients, since neither opens there.

Is it safe to send the password by text message?

It is far better than putting it in the same email, because an attacker would need access to both channels. A phone call is stronger still. Avoid sending the password to the same mailbox that received the file.

Does encrypting the file hide the email subject and file name?

No. The subject, recipients and usually the file name remain visible to mail servers. Use a neutral file name and keep sensitive details out of the message text.

Next step

Pick the method that matches the recipient: a PDF password or AES zip for Windows, a disk image or Finderlock between Macs. Then send the password by a different channel. If you want to try Finderlock, the free plan covers 3 protected items, enough to test sending one file. Download it at finderlock.com.