Provide Authentication for a file. Urgent!!

Posted on 2003-11-10
Last Modified: 2010-03-31
            How to provide login and password for a pdf file, like if a person sends a file by mail to other person and if he opens the file he should see a window with boxes for login and password. If he enters the right password and loginname, he should see the file otherwise not?
              Like that I want to provide authentication for Word, Excel, Powerpoint files also. I think for word we can use Macros.
              Please suggest on this very soon.
Question by:shridhar_hc
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
LVL 14

Expert Comment

ID: 9720731

You need to set the password while creating the pdf document through acrobat writer, if you are creating the docs manually.

have a look on this link

Just I need confirmation from you..
Are you creating the documents programatically or manually?

LVL 86

Expert Comment

ID: 9720882
If you WinZip the file, you can encode it with a password. That way, you can use any type of file with one password implementation.

Author Comment

ID: 9722053
     Thank u for quick replay of my Question.
     Ya Friends, both acrobat writer & WinZip provide such authentication for pdf and any files respectively.
     But I want to make such authentication provider S/W of our own, without changing the file format & with no other extra files except file which need to be protected. This should support files such as pdf, word, excel, ppt, etc.,
     Please help & give me details on this. Waiting for response.
     Please inform this to other also such we can wide knowledge on this matter.
     Thank u.
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

LVL 86

Expert Comment

ID: 9722248
>>without changing the file format & with no other extra files except file which need to be protected.

Well of course the first goes for WinZip, but if you count the 'extra' file as the archive itself then of course the second doesn't. The trouble is, there'd be no way of doing this without at least one etra file if this is your criterion. There is nothing you can do to a file in itself to give it these 'behaviours'  ;-)

Expert Comment

ID: 9723378
How are you supplying this file?  Is this through client-server?  If so, you can use a servlet w/ security to restrict access.

Author Comment

ID: 9728357
     If without any extra file is not possible. Then we can use atleast one file more, but this should  integrated with file to be protected. Can we create Virus like file which will ask for username & password when opening the protected file.
      For example, if we create a Java file/VB file or any other for taking username & password this should integrated with the file to be protected. Then while opening the protected file the Java file/VB file should open and ask for authentication.
      We can use this security provider for files which we attach to e-mails. Please ask this problem with ur friends and inform me also.
          Thank u.

Expert Comment

ID: 9730889
What about an installer-like package? A password protected self-extracting zip file, with the protected document inside, that also opens the contained document once the self extraction is done. As a bonus you get some compression in the transfer. This will make any document a single .exe file. Somedocument.doc -> Somedocument.doc.exe.

Unfortunately, this will look a lot like a virus, both to mail servers/clients and users.

Bear in mind that the default password protection for zip files is not exactly difficult to break, it just makes it inconvenient to look at protected things. Do not use zip passwords for highly sensitive data.

LVL 86

Accepted Solution

CEHJ earned 150 total points
ID: 9731209
A self-extracting zip file is more or less what i've already suggested apart from two things:

1. it makes it slightly easier for the user
2. it makes it harder to distribute over the wire as it's an executable, for the (virus) reasons given above
LVL 14

Expert Comment

ID: 10232796
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

[paq'ed and points not refunded]

Please leave any comments here within the next seven days.
EE Cleanup Volunteer
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question