Last active
August 18, 2019 16:33
-
-
Save poikilotherm/f641d46d10e1a5536910d845581d6d02 to your computer and use it in GitHub Desktop.
Encrypt all PDF files using qPDF. Disallow ALL options, don't ask for a password to open and use unknown random password from pwgen for owner.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for I in *.pdf | |
do | |
qpdf --encrypt '' `pwgen -sny1 32` 256 --accessibility=n --extract=n --print=low --assemble=n --annotate=n --form=n --modify-other=n --modify=none -- "$I" "`basename $I .pdf`.enc.pdf" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See
https://sourceforge.net/projects/pwgen-win
http://qpdf.sourceforge.net/