Solved

Provide Authentication for a file. Urgent!!

Posted on 2003-11-10
11
225 Views
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.
             
             
0
Comment
Question by:shridhar_hc
  • 3
  • 2
  • 2
  • +2
11 Comments
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 9720731
Hi,

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
http://www.assortedstuff.com/otherstuff/acrobat/pg10.html

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

Regards,
Koudinya
 
0
 
LVL 86

Expert Comment

by:CEHJ
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.
0
 

Author Comment

by:shridhar_hc
ID: 9722053
Hi,
     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.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

 
LVL 86

Expert Comment

by:CEHJ
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'  ;-)
0
 
LVL 2

Expert Comment

by:SuperKarateMonkey
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.
0
 

Author Comment

by:shridhar_hc
ID: 9728357
Hi,
     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.
0
 
LVL 1

Expert Comment

by:alkonaut
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.

0
 
LVL 86

Accepted Solution

by:
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
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
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.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
sudhakar_koundinya
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.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
javap bin 2 41
How to convert from xls to xlsx using java 7 57
Chrome and Firefox Java 5 52
Why doesn't this text field show up on my Applet frame? 2 20
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.

820 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