File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Mac OS and the fly likes password protect a .txt file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "password protect a .txt file?" Watch "password protect a .txt file?" New topic

password protect a .txt file?

Bert Bates

Joined: Oct 14, 2002
Posts: 8898
Once again showing my ignorance

It seems there are several approaches to protecting a file on OS X... does anyone have any favorite, lightweight approaches?

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

I put mine in a password protected disk image -- but that might not be what you mean by lightweight.

[Asking smart questions] [About Bear] [Books by Bear]
Bert Bates

Joined: Oct 14, 2002
Posts: 8898
Having never done that it doesn't sound lightweight, but who knows?

Any other, lighter-weight ideas?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Bert Bates wrote:... but who knows?

See for the GUI approach, or "hdiutil create -help" using the CLI.
I agree. Here's the link:
subject: password protect a .txt file?
It's not a secret anymore!