We don't bite newbies here... much | |
PerlMonks |
Re: How to tell if something is encryptedby diskcrash (Hermit) |
on Apr 18, 2001 at 20:00 UTC ( [id://73546]=note: print w/replies, xml ) | Need Help?? |
This may be somewhat lame, but practical. Assuming your unencrypted text is mainly ASCII, it would be unlikely to contain many byte codes under x1F. Presumably encryption would drive the bytes all over the 0-FF map. So if it contained a significant number of bytes below 1F, it's encrypted or compressed.
-diskcrash
In Section
Seekers of Perl Wisdom
|
|