That sounds more like you are dealing with bytes than strings. I suggest you go back to whoever gave you the project (I'm assuming this is a course assignment) and ask for more details.
Neither do you define what in your project 'malicious data' or 'illegal activity' looks like, so we can hardly be expected to write example code for you.
/- Sam Judson : Wrox Technical Editor -/
|