How to password-lock a file?

I want to send someone a file so that they need to have the password to download or open the file and if they don't have the password they cannot open the file and wait until they get the password. I am thinking of sending it directly to their email or send it through an online file sender (a free one). This is probably not a Mac question so if someone has an idea where I can find the answer, please direct me. Thanks.

MBA v 3.2, 256GB SSD, 2.13GHz, 4GB-OTHER, Other OS, 10.6.8

Posted on Jul 22, 2012 6:58 AM

Reply
8 replies

Jul 22, 2012 12:21 PM in response to applecore_eater

You can put your file into a password protected disk image file. You create a disk image file with the Disk Utility app in the Applications/Utilities folder. These instructions are from the Disk Utility Help File:


To protect documents in a secure disk image:


  1. Choose File > New > Blank Disk Image.
  2. Type a name for the image, and then choose where you want to save it.
  3. In the Name field, type a name for the disk that appears when you open the disk image. The disk and the disk image can have the same name.
  4. Choose the size of the disk image from the Size pop-up menu. Be sure you choose a size that’s large enough to hold any changes and new documents you might add.
  5. Choose an encryption option from the Encryption pop-up menu.
  6. Use the default settings for the rest of the options: Choose Mac OS Extended (Journaled) from the Format pop-up menu. Choose “Single partition - Apple Partition Map” from the Partitions pop-up menu. Choose “read/write disk image” from the Image Format pop-up menu.
  7. Click Save.
  8. Enter a password, deselect “Remember password in my keychain,” and then click OK. Disk Utility creates the disk image and mounts its disk on your desktop. IMPORTANT:If you select “Remember password in my keychain,” anyone with access to your computer may be able to open the disk image without entering the password.
  9. Copy to the disk the documents you want to protect
  10. If you want to erase the original documents so they can’t be recovered, drag them to the Trash and choose Finder > Secure Empty Trash.


To access the documents in the disk image, double-click the disk image and enter the password. A disk with the documents appears on your desktop.


You could also use a ZIP utility to create a password protected zip file. Here is one example: iZip for Mac

Jul 22, 2012 1:16 PM in response to WZZZ

Why would this not work?


To the best of my knowledge there is no way to password protect a "file" for email or upload using just the OS.


While the minimum size of a disk image is 10 megabytes this is not usually not too large for most email servers. I had no problem with verizon. If it is a problem you can do the following:


  1. Create a password protected disk image per the original instructions.
  2. After you have copied the files to the dmg and unmounted it you can compress it using Finder > File > Compress "filename" to reduce its size.


I also suggested using a ZIP utility to create a password protected zip file.


Another alternative is to use a "download site" that has an encription/password option on there end. But that is usually and added feature in "premium" plans.

Jul 22, 2012 3:48 PM in response to Dansyacht

Yes, that works, albeit very slowly. Also, zipping it hardly compresses it any further. Zipping it goes from 10.9 to 10.8MB. Minimum is 10.5MB. Suppose it will do in a pinch. But I wonder if it would be Windows friendly?


There's this for creating password a protected zip. But it's not simple.


http://www.betalogue.com/2010/03/31/encrypted-zip/

Jul 28, 2012 4:22 AM in response to applecore_eater

I used the Terminal Window to zip the files and password protect it.


I used the instructions here: http://osxdaily.com/2012/01/07/set-zip-password-mac-os-x/


To unlock the Zip file by entering the password, I used: Ez7z which is a free download


For Windows people, they can easily unlock it by entering the password.


I don't think it really matters whether I send it by a file-uploading site, I got confused and thought that it mattered.


There are file-uploading sites where you can add a password so that the user must enter a password to download the file but I think I prefer to do the locking myself on my computer.


Thanks for all the answers. You guys are terrific.

Jul 28, 2012 8:29 PM in response to WZZZ

Please explain: what was the reason for using Ez7z and not the native OS X zip/compression?


When I tried to unlock it by clicking on the file or doubleclicking on it, there was an error message. Unlike Windows, you can't just click on the file to bring up the message asking what the password is.


Therefore I unlocked it by using Ez7z. I could have unlocked it by using commands in the Terminal Window, but I wanted an easy way for customers to unlock the file.


Windows 7 users can unlock it easily (I tested it out on Parallels Windows 7) but mac users cannot do it so easily.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to password-lock a file?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.