Print Page | Close Window

function to check for AES-encryption

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=755
Printed Date: 17 May 24 at 10:14AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: function to check for AES-encryption
Posted By: Ingo
Subject: function to check for AES-encryption
Date Posted: 02 Jul 07 at 7:13AM
Hi!

I want to wrote a function which detects if a document is aes-encrypted. I've found few pieces of circumstantial evidence:

I want to take the filestream searching for:
( "CFM/V2" or "CFM/AESV2" or "CFM /V2" ) and ( /Length 128 ).

What are the opinions here? Is this stable and save enough or will i miss many aes-documents?

Best regards,
Ingo





Replies:
Posted By: chicks
Date Posted: 16 Aug 07 at 3:05PM
Ingo,

Have a look at pdfinfo here:

http://www.esnips.com/web/PDFTools?docsPage=4#files%20 - pdfinfo

It's a first attempt to parse a PDF's dictionary objects. It will display the encryption type for the files I've tested it on, but probably won't work for all.

Please test.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk