|
-
May 24th, 2012, 07:06 AM
#1
Thread Starter
Fanatic Member
-
May 24th, 2012, 07:36 AM
#2
Re: Implement document level password protection
If this is a programm the you did create, you have control over what this programm expects to read from a file. Store in each file wether it is password protected and if it is also store that password. When opening that file, check if it is password protocted, if yes ask for it...., if not just read in the rest of the file.
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
May 24th, 2012, 09:00 AM
#3
Thread Starter
Fanatic Member
Re: Implement document level password protection
It is absolutely my application, but is also is able to open various file types like XML, txt, XLS/xlsx, ect and I should be able to lock them from users even if they copy them to a datakey, another computer, over the web, etc. The reason I mention this, is that I looked into simply using network and directory settings. However, if there are users that are separated by more than just a desk, the settings should be applicable regardless. This is also the reason why the settings tab on the application will not work. It can go so far as being machine specific, but as far as I know not file specific.
I am just looking for some ideas i guess. I have been looking into metadata and how to attach it to a file. I am not sure if this is an answer or not. Thank you for your response opus and I am still open to any ideas, thoughts, etc.
Thanks! 
D
Platforms of choice: Visual Studio 2005/2008 Professional : Visual Studio 2010 Enterprise : PHP - Notepad++/WAMP
Please Rate If I helped you. 
Please remember to mark threads as closed if your issue has been resolved.
Reserved Words in Access | Connection Strings
-
May 24th, 2012, 09:08 AM
#4
Re: Implement document level password protection
Since you are using file types which are commonly used with other applications, you can't add your own password protection to the file (it would disable the usage of such a file on the other applications).
In this case I'm out of this one.
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
May 24th, 2012, 09:38 AM
#5
Re: Implement document level password protection
Without trying to reinvent the wheel, I'll just use one of the compression techiques that supports passwords. There are many free available on the internet and one of them (which is also free) is the DotNetZip.
http://dotnetzip.codeplex.com/
So your algorithm goes like this:
1. When saving the file, compress it with password.
2. When opening the file, check if it is password protected and accordingly prompt user and ask for password. Then apply that password to the file and decompress it to some temporary location and open that file in your application.
3. When editing the file, use the temporary copy of the file. If the user tries to save the file in between edits (press Ctrl+S etc.), save your temporary file, then create a copy of it with password protection (as in step 1), and then replace your original file with this one.
I hope this helps
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|