I'd like to password protect a text file. Not necessarily a .txt
file – just a file that's got text in it that I can edit with a standard text editor. I'd like to set a password and be prompted for it every time I open the file in any app. What's the best way?
MacOS – What’s the simplest way to password protect a text file
macospassworduti
Related Question
- MacOS – How to prepend to text file in AppleScript
- MacOS – AppleScript: How to write to text file in specific location (signaled by specific character)
- I there a way to set a separate password for a file (other than root)
- MacOS – “show in finder” open the file instead of opening the directory containing it
- MacOS – Edit text file in a folder owned by a different user on macOS? I have system admin password
- MacOS – What’s the easiest way to remotely access the own computer
Best Answer
You can put the file into an encrypted disk image.
In the new image dialog make sure to choose:
Because you chose encryption, you will be prompted to set a password for the disk image
You now have a password-protected disk image that you can save any kind of file in.