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