Available in pre-release 3.7

In application #

To encrypt a PDF in SumatraPDF:
Or:
  • open un-encrypted PDF document
  • right-click for context menu
  • Document > Encrypt PDF

From command-line #

To encrypt a PDF with password using SumatraPDF from command-line:
SumatraPDF clean -E aes-256 -U pwd foo.pdf foo-encrypted.pdf
Flags:
  • -E : encryption algorithm
  • -U <pwd> : password required to open PDF file
You can see all flags.
You can also decrypt