[Libreoffice-bugs] [Bug 70183] characters £ ì è é ò ç à ° § ù © not accepted in PDF passwords
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Jul 8 18:54:42 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=70183
--- Comment #12 from Mike Kaganski <mikekaganski at hotmail.com> ---
The relevant information from Adobe is here:
https://forums.adobe.com/thread/831473
https://forums.adobe.com/thread/489152
So, the algorithm used by LibreOffice could in theory allow using any
characters, but they would need to be converted to system 8-bit codepage
(different for Win and Mac) before using for encryption. Thus, a PDF encrypted
with non-ASCII characters would be ~impossible to open on any system with
different system locale. Thus, using the ASCII restriction is a good choice.
I tested that encoding the password as utf-8 makes the PDF unopenablw using
Adobe Acrobat Reader DC 2017.
The problem here remains only to make this user-visible and documented.
As the easiest solution for those who would like to implement this (as an
easyhack), I'd propose to add to the SfxPasswordDialog a (yellow?) label saying
something like "Only English letters, numbers other ASCII characters", which
were hidden by default, and were made visible in the
SfxPasswordDialog::AllowAsciiOnly().
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170708/624bcd9a/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list