Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Open & Master passwords
  FAQ FAQ  Forum Search   Register Register  Login Login

Open & Master passwords

 Post Reply Post Reply
Author
Message
DaveH View Drop Down
Beginner
Beginner


Joined: 15 Jul 08
Location: Canada
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote DaveH Quote  Post ReplyReply Direct Link To This Post Topic: Open & Master passwords
    Posted: 14 Dec 12 at 11:01PM
I'm trying to understand what actually happens to a PDF file when you apply the Open and Master password.
 
From the API docs I gather that the file itself is encrpted using the Open password.  Ie, no PDF tool will be able to read the file unless they get the password.  Being that this is the same password prompted for to the user, people tend to use weak passwords because - well who wants to keep keying in long passwords just to open a file.  So this I think I understand.
 
Now the Master password is suppose to lock the "permissions" of the file (print, copy & paste, etc) but this is only as good as the developer since after they call the Decrypt routine with the right Open password, they have full access to everything. So what does the Master password actually do to the PDF file.  Is it stored somewhere in the file? It would have to be right? so a properly built viewer app could verify the password and respect the permission settings.
 
And then there is the Digital Signature.  Is this actually stored in the PDF doc as an encrypted attachment (allowed since v1.7 I think).
 
Thanks for any insight behind the scenes,
DaveH
 
 
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 18 Dec 12 at 2:12AM

Dave,

The Open and Master password are technically considered equal and either one of them will allow you to decrypt the encrypted PDF data.  Without either password then the PDF cannot be read nor viewed.  It is up to the PDF viewer to respect the differences between the Open and Master password.

I am not up to speed with the Digital Signature but they is all fully documented in the PDF specifications which can by found via Google.

Andrew.
Back to Top
DaveH View Drop Down
Beginner
Beginner


Joined: 15 Jul 08
Location: Canada
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote DaveH Quote  Post ReplyReply Direct Link To This Post Posted: 18 Dec 12 at 1:41PM
Thanks for the reply Andrew,
 
I've been going through the spec but it's still unclear how they protect the "perms" area of the document.  So far, it doesn't look like it's actually encrypted.  It's just stored in the open, which kind of makes sense since the reader app needs to know the settings without prompting for the master password.  Whether the reader app respects the settings is up to the developer.
 
Still digging into encyrpted attachments...
 
DaveH
 
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 18 Dec 12 at 10:52PM
Hi Dave!

You're looking on this password-case through the developer-glasses
and for a developer (you're right) the master password is worthless.
If the pdf is loaded into memory then it's unprotected.
With a user password it's different but very uncomfortable.

Cheers, Ingo
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store