Help save net neutrality! Learn more.
Close

#16 Error: "invalid key length"

closed
nobody
None
5
2007-02-06
2006-12-06
slartidan
No

Hi there,

I just executed:
bin>Encrypt.exe -O 12345678 -keyLength 8 sp.pdf spE.pdf Exception in thread "main" java.lang.RuntimeException: Invalid key length
at org.pdfbox.pdmodel.encryption.ProtectionPolicy.setEncryptionKeyLength
(ProtectionPolicy.java:64)
at org.pdfbox.Encrypt.encrypt(Encrypt.java:197)
at org.pdfbox.Encrypt.main(Encrypt.java:65)

My key length is 8 - is 8 wrong?

thanks for your help,
slartidan

Discussion

  • Ben Litchfield

    Ben Litchfield - 2007-02-06
    • status: open --> closed
     
  • Ben Litchfield

    Ben Litchfield - 2007-02-06

    Logged In: YES
    user_id=601708
    Originator: NO

    it must be 40 or 128. I have updated the error message to now state this.

    Ben

     

Log in to post a comment.