aboutsummaryrefslogtreecommitdiffstats
path: root/manual/encryption.rst
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-23 18:58:54 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commit2a2ec1c066ae6c7e7a22ef93a8ca02ac94f81cc1 (patch)
treeede284eb0bc79562b507f7391fe206b9b8479813 /manual/encryption.rst
parent564dc036072803d2ee9018f892e2d3a6570387fa (diff)
downloadqpdf-2a2ec1c066ae6c7e7a22ef93a8ca02ac94f81cc1.tar.zst
Manual: correct statement about empty owner passwords
Diffstat (limited to 'manual/encryption.rst')
-rw-r--r--manual/encryption.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/manual/encryption.rst b/manual/encryption.rst
index 269500a1..267077d5 100644
--- a/manual/encryption.rst
+++ b/manual/encryption.rst
@@ -383,13 +383,13 @@ reader treats the password as the owner password, using it to recover
the user password, and then uses the user password to retrieve the
encryption key. This is why creating a file with the same user
password and owner password with ``V`` < 5 results in a file that some
-readers will never allow you to open as the owner. Typically when a
-reader encounters a file with ``V`` < 5, it will first attempt to
-treat the empty string as a user password. If that works, the file is
-encrypted but not password-protected. If it doesn't work, then a
-password prompt is given. Creating a file with an empty owner password
-is like creating a file with the same owner and user password: there
-is no way to open the file as an owner.
+readers will never allow you to open as the owner. When an empty owner
+password is given at file creation, the user password is used as both
+the user and owner password. Typically when a reader encounters a file
+with ``V`` < 5, it will first attempt to treat the empty string as a
+user password. If that works, the file is encrypted but not
+password-protected. If it doesn't work, then a password prompt is
+given.
For ``V`` ≥ 5, the main encryption key is independently encrypted
using the user password and the owner password. There is no way to