General discussion

Locked

Password protect a file

By nise_k ·
Hi friends,

Is there any way to Protect a file by setting Password for it? And, also how to access such files programatically.

Bye

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Password protect a file

by Jay Eckles In reply to Password protect a file

Clearly you would have to provide some more details about the environment you have in mind. Do you want to be able to apply a password to any arbitrary file on a PC? What OS - Windows, Linux, Mac? In this case, you'd probably use a third-party application to encrypt the files after they're created and decrypt them when needed (the key is the password). Depending on your sophistication, such a tool could be custom written and integrated into some desktop applications like Word. Some applications like Word already provide password-protection of documents at the application level. Or are you talking about password protecting a document on a web site? In that case you have a couple of choices, the best probably being good old HTTP Basicauthentication. As far as accessing the files programatically, again, it depends on how you're accessing them and where you're accessing them (not to mention what form of password protection was used). To access a password protected Word document,you'd use OLE to manipulate the document. To access a password protected web site document behind HTTP Basic, you could emulate a browser.

There are solutions for most of these situations, you just have to tell us which situation you're looking at.

Good luck.

Jay Eckles
www.jayeckles.com

Collapse -

Password protect a file

by nise_k In reply to Password protect a file

I am expecting more appropriate answer. Chk my comments on 15/04/2002.

Collapse -

Password protect a file

by nise_k In reply to Password protect a file

The OS is Win 95. And, the problem is -
Through my JSP program, I am writing few log
data into a text file. Now, I don't want anyone else to read the contents of this file. So, when someone tries to open it, it should first ask for a password.
Also, I don't want to Encrypt and Decrypt through my programs.

Collapse -

Password protect a file

by nise_k In reply to Password protect a file

This question was closed by the author

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums