in reply to Re: Re: xor encrypt-decrypt routine
in thread xor encrypt-decrypt routine

You probably finally hit a point that encrypts to a CTRL-Z which is end-of-file under Windows unless you use binmode as I suggested below.

        - tye (but my friends call me "Tye")