pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1848163 - /pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java
Date Tue, 04 Dec 2018 16:07:01 GMT
Author: tilman
Date: Tue Dec  4 16:07:00 2018
New Revision: 1848163

URL: http://svn.apache.org/viewvc?rev=1848163&view=rev
Log:
PDFBOX-4394: default keylen should be 256 not 40; slight text improvement

Modified:
    pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java

Modified: pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java?rev=1848163&r1=1848162&r2=1848163&view=diff
==============================================================================
--- pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java (original)
+++ pdfbox/branches/2.0/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java Tue Dec 
4 16:07:00 2018
@@ -75,7 +75,7 @@ public final class Encrypt
             String userPassword = "";
             String ownerPassword = "";
 
-            int keyLength = 40;
+            int keyLength = 256;
 
             PDDocument document = null;
 
@@ -226,8 +226,8 @@ public final class Encrypt
     {
         String message = "Usage: java -jar pdfbox-app-x.y.z.jar Encrypt [options] <inputfile>
[outputfile]\n"
                 + "\nOptions:\n"
-                + "  -O <password>                            : Set the owner password
(ignored if cert is set)\n"
-                + "  -U <password>                            : Set the user password
(ignored if cert is set)\n"
+                + "  -O <password>                            : Set the owner password
(ignored if certFile is set)\n"
+                + "  -U <password>                            : Set the user password
(ignored if certFile is set)\n"
                 + "  -certFile <path to cert>                 : Path to X.509 certificate\n"
                 + "  -canAssemble <true|false>                : Set the assemble permission\n"
                 + "  -canExtractContent <true|false>          : Set the extraction
permission\n"
@@ -237,8 +237,8 @@ public final class Encrypt
                 + "  -canModifyAnnotations <true|false>       : Set the modify annots
permission\n"
                 + "  -canPrint <true|false>                   : Set the print permission\n"
                 + "  -canPrintDegraded <true|false>           : Set the print degraded
permission\n"
-                + "  -keyLength <length>                      : The length of the key
in bits "
-                + "(valid values: 40, 128 or 256, default is 40)\n"
+                + "  -keyLength <length>                      : Key length in bits
"
+                + "(valid values: 40, 128 or 256, default is 256)\n"
                 + "\nNote: By default all permissions are set to true!";
         
         System.err.println(message);



Mime
View raw message