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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 8801
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: 60774

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bert Bates

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

Any other, lighter-weight ideas?
Ulf Dittmer

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

See for the GUI approach, or "hdiutil create -help" using the CLI.

Ping & DNS - my free Android networking tools app
I agree. Here's the link:
subject: password protect a .txt file?
Similar Threads
Applet File Permission !!
Writing junit test for logger class
storing images in database and retreiving it
[Urgent]Accessing properties file
getting the files from other server