http://www.perlmonks.org?node_id=824555


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.

  • Comment on Re^2: Determine if a file is password protected