ok, quite a few fixes and additions to the above code, but its working great - thanks for all the help here and also in #egghelp on efnet. if anyone is curious about the final script, which reroutes input and output through decrypt/crypt procedures, you're welcome to borrow the code: http://mircrypt...