Encrypt openssl aes-256-cbc -in some_pdf.pdf -out encrypted.pdf Decrypt openssl aes-256-cbc -d -in encrypted.pdf -out some_pdf_decrypted.pdf