in reply to Re: Determine if a file is password protected
in thread Determine if a file is password protected
+1 because it's a really neat idea, but your caveat applies more widely than you might think; most PDF content is compressed, for example, and MS Office documents in the 2007+ format are literally ZIP files. So in practice it might be more useful to go straight for per-format tests.
|
---|
In Section
Seekers of Perl Wisdom