Ray Murphy [[EMAIL PROTECTED]] quoth:
*>Hello,
*>
*>Want to make sure I'm not missing anything here.  My
*>task is to see if a file looks like it's encrypted. 
*>I'm splitting the path/filename/extension via
*>File::Basename and checking to see if the extension is
*>..pgp or .gpg.  I'm also checking to see if the file is
*>a text file via 'if (-T $file)'.  Is there any other
*>(better) way of testing to see if a file is encrypted?
*> I don't want to call the decryption routines if the
*>file is not encrypted.

There is no simple recipe for this, no. And, what's more is that even if
you think it's encrypted you cannot be 100% sure of it and it's encryption
method without decrypting it as well...it's a ballpark quess. 

One of the most helpful methods is to do a frequency analysis on the test
of the file and match it with known tables of language frequency since
different languages have different frequencies. And...well...

e.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to