in reply to Re: pdftk encryption function
in thread pdftk encryption function

Thanks for the solution, its working.

Result of encryption is created a output pdf with password secured rite

Note: "owner_pw" contains the permission password and "user_pw" contain open document password.

And Decryption function it just remove the security password by removing owner_pw, but not user_pw

Please let me know , whether my understanding is correct.

Replies are listed 'Best First'.
Re^3: pdftk encryption function (OT)
by soonix (Chancellor) on Sep 24, 2014 at 10:42 UTC
    • there is no encryption at work with regards to the owner password. The password itself probably is encrypted, but otherwise it is only used to indicate to the reading software, which permissions are to be granted. There are PDF readers and tools that ignore these specifications (pdftk not being one of them).
    • The user password however, is in fact used to encrypt the file.
    For more on this consult Wikipedia