Skip navigation

password protect a file

361 Views 2 Replies Latest reply: Feb 16, 2014 2:43 PM by bostonpops RSS
williamfrommacungie Calculating status...
Currently Being Moderated
Oct 17, 2013 8:34 AM

how can I password protect a file.

iMac, Mac OS X (10.7.4)
  • WZZZ Level 6 Level 6 (11,880 points)
    Currently Being Moderated
    Oct 17, 2013 8:43 AM (in response to williamfrommacungie)

    Create a password protected disk image and put it in that. Make sure you turn off show password in keychain.


  • bostonpops Level 1 Level 1 (0 points)
    Currently Being Moderated
    Feb 16, 2014 2:43 PM (in response to williamfrommacungie)

    I found a nifty tip to encrypt a zip file that is built into OSX.  The only issue is you have to use the command line (Terminal) which may be more than some people want to deal with.  If you don’t mind a little tinkering here is how you can encrypt your files to an encrypted zip without buying any other program or using an OSX disk image.


    1. Open up a Terminal window (the Terminal command line program is a little to techie for some)
    2. Navigate, using "cd", to the directory where the file you what to make an encrypted zip file is.
    3. Type:

              zip -e FileToEncrypt.txt


    Note: the man pages have more than you ever wanted to know about the zip command: "man zip"


    To unencrypt the new file simply double click on the file and type the password from the finder.  I have also unencrypted the files on a PC which is really nice for sharing with others.


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.