From a04a835849d501aa0c0280ddc3b91ed6c49f41c7 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 3 Jan 2013 20:45:53 -0500 Subject: [PATCH] Clarify methods to get user password --- include/qpdf/QPDF.hh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index d436c37..eab6407 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 -- libgit2 0.21.4