Detect if a .doc file is password protected on Linux

253 views Asked by At

I have .doc file. I want to know is there is any shell/linux cmd that can tell whether the doc file is password protected or not.

For pdf files , I have got pdfinfo. Is there anything for .doc files.

Thanks

1

There are 1 answers

0
AudioBubble On

Install antiword. If document is password protected, the output of antiword file.doc will be Encrypted documents are not supported, otherwise it will be content of the document.