From woody@chinacat.Unicom.COM Tue Jul 10 08:27:38 1990 From: woody@chinacat.Unicom.COM (Woody Baker @ Eagle Signal) Newsgroups: comp.lang.postscript Subject: Re: eexec? Summary: here are the decrypt/encrypt routines Date: 10 Jul 90 02:59:37 GMT Distribution: usa Organization: a guest of Unicom Systems Development, Austin Here are the encrypt and decrypt routines. The versions that handle files, are an adaptation of the other two, as they really did not work correctly under MS-DOS. MS-DOS 'C' attempts to be "unix compatable" and as such, when it sees a 0x0D, it converts it to a linefeed. This has a way of completely messing up the conversion of a binary file that happens to have a 0x0d in it. The file versions avoid it by using the "b" specifier in the file opening code. This allows uncooked binary code. There is one other non-portablilty. the declaration of unsigned short int 0xhhhh; will fail on an 8 bit machine. Short will be a byte, and since we are working with 16 bits here.....