diff options
author | Jay Berkenbilt <ejb@ql.org> | 2013-01-04 02:45:53 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2013-01-04 02:45:53 +0100 |
commit | a04a835849d501aa0c0280ddc3b91ed6c49f41c7 (patch) | |
tree | 7d64e720fafc17f4a29aa759cecf382c3d2dd7cd | |
parent | 9261f3b922c9374e9be9593e1bbfffcad3d78364 (diff) | |
download | qpdf-a04a835849d501aa0c0280ddc3b91ed6c49f41c7.tar.zst |
Clarify methods to get user password
With newer encryption formats, it is no longer possible to recover the
user password using the owner password.
-rw-r--r-- | include/qpdf/QPDF.hh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index d436c373..eab64072 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -345,12 +345,16 @@ class QPDF std::string& encryption_key, std::string& O, std::string& U, std::string& OE, std::string& UE, std::string& Perms); - // Return the full user password as stored in the PDF file. If - // you are attempting to recover the user password in a + // Return the full user password as stored in the PDF file. For + // files encrypted with 40-bit or 128-bit keys, the user password + // can be recovered when the file is opened using the owner + // password. This is not possible with newer encryption formats. + // If you are attempting to recover the user password in a // user-presentable form, call getTrimmedUserPassword() instead. QPDF_DLL std::string const& getPaddedUserPassword() const; - // Return human-readable form of user password. + // Return human-readable form of user password subject to same + // limitations as getPaddedUserPassword(). QPDF_DLL std::string getTrimmedUserPassword() const; // Return the previously computed or retrieved encryption key for |