Created
March 15, 2016 13:55
-
-
Save mikalv/9033a03ba94cfe7be2c3 to your computer and use it in GitHub Desktop.
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
#!/usr/local/bin/python | |
import pyPdf | |
import sys | |
def main(): | |
pdf = pyPdf.PdfFileReader(open(sys.argv[0])) | |
if pdf.getIsEncrypted(): | |
print "Kryptert" | |
else: | |
print "Ikke kryptert" | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment