Skip to content

Instantly share code, notes, and snippets.

@AlexBaranowski
Created May 16, 2017 09:51
Show Gist options
  • Save AlexBaranowski/3e11051963944414b6ee4b86dc167c1e to your computer and use it in GitHub Desktop.
Save AlexBaranowski/3e11051963944414b6ee4b86dc167c1e to your computer and use it in GitHub Desktop.
Very simple encryption with password using openssl command

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment