Foreign language characters for passwords

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

andi1234
User
Posts: 1
Joined: Wed Apr 06, 2011 8:33 am

Foreign language characters for passwords

Post by andi1234 »

Hi,

when encoding a pdf using characters from a foreign alphabet (e.g. Cyrillic), it is not possible to open the document with acrobat reader. (This only relates to an encoding with security settings earlier than acrobat 9).

The PDF Reference (version 1.7, algorithm 3.2) says: "The password string is generated from OS codepage characters by first converting the string to PDFDocEncoding. If the input is Unicode, first convert to a codepage encoding, and then to PDFDocEncoding for backward compatibility."

After some digging, I figured out that PDF-XChange Viewer is using an ASCII codepage (i.e. replacing all foreign characters with an question mark character '?'). Hence I can open the document in acrobat reader or PDF-XChange Viewer typing the correct amount of questions marks. Not very secure is it?

Adobe Acrobat on the other hand uses the windows 1251 (on windows) and ISO 8859-5 (on unix) codepages. So basically adobe is not compatible on different platforms, but at least the password is secure.

Anyhow, PDF-XChange Viewer is not at all compatible with Adobe.

By the way: If you use acrobat 9 and later (which corresponds to revision 5, AES 256), the password is encoded in unicode. Just use this setting and your pdf is secure and compatible (if you use a strong password ;).

Greets,
Andi
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Foreign language characters for passwords

Post by Stefan - PDF-XChange »

Thanks for this Andi,

I have passed it for checking to our lead Viewer developer, so we will investigate and fix this if it is really a problem on our end.

Best,
Stefan